Name: python-notebook-shim Version: 0.2.3 Release: 1 Summary: A shim layer for notebook traits and config License: BSD-3-Clause URL: https://pypi.org/project/notebook-shim/ Source: %{pypi_source notebook_shim} BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3-pip BuildRequires: python3-wheel BuildRequires: python3-hatchling %global _description %{expand: This project provides a way for JupyterLab and other frontends to switch to Jupyter Server for their Python Web application backend.} %description %_description %package -n python3-notebook-shim Summary: %{summary} Requires: python-jupyter-filesystem %description -n python3-notebook-shim %_description %prep %autosetup -p1 -n notebook_shim-%{version} sed -i "/pytest-tornasync/d" pyproject.toml %build %pyproject_build %install %pyproject_install install -m 0755 -p -d %{buildroot}%{_sysconfdir}/jupyter/jupyter_server_config.d mv -v %{buildroot}{%{_prefix},}%{_sysconfdir}/jupyter/jupyter_server_config.d/notebook_shim.json %files -n python3-notebook-shim %defattr(-,root,root) %license LICENSE %{python3_sitelib}/notebook_shim/ %{python3_sitelib}/notebook_shim*.dist-info/ %config(noreplace) %{_sysconfdir}/jupyter/jupyter_server_config.d/notebook_shim.json %doc README.md %changelog * Tue Aug 1 2023 chaozhangm - 0.2.3-1 - Initial package.