diff --git a/notebook_shim-0.2.3.tar.gz b/notebook_shim-0.2.3.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..efb6dd40908eecf497677f2bb1f1e61eb1ea86c5 Binary files /dev/null and b/notebook_shim-0.2.3.tar.gz differ diff --git a/python-notebook-shim.spec b/python-notebook-shim.spec new file mode 100644 index 0000000000000000000000000000000000000000..e338fd6d4601f5d0e4876a57d834074281d85f25 --- /dev/null +++ b/python-notebook-shim.spec @@ -0,0 +1,51 @@ +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.