diff --git a/notebook-7.1.1.tar.gz b/notebook-7.1.1.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..165df94d32b25b74fbcb35ed80df14cb84eb94f3 Binary files /dev/null and b/notebook-7.1.1.tar.gz differ diff --git a/python-notebook.spec b/python-notebook.spec new file mode 100644 index 0000000000000000000000000000000000000000..c81dead66cd95705340098d47303a9f431e7f77b --- /dev/null +++ b/python-notebook.spec @@ -0,0 +1,75 @@ +%global _empty_manifest_terminate_build 0 +Name: python-notebook +Version: 7.1.1 +Release: 1 +Summary: A web-based notebook environment for interactive computing. +License: BSD-3-Clause +URL: https://github.com/jupyter/notebook +Source0: https://files.pythonhosted.org/packages/86/6b/5c7878a717e90716a69628a4f1b1c198f422434c2499d5110b71ae4d9048/notebook-7.1.1.tar.gz +BuildArch: noarch +%description +Jupyter Notebook - A web-based notebook environment for interactive computing. + +%package -n python3-notebook +Summary: A web-based notebook environment for interactive computing. +Provides: python-notebook +# Base build requires +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pbr +BuildRequires: python3-pip +BuildRequires: python3-wheel +BuildRequires: python3-hatchling +BuildRequires: python3-hatch-jupyter-builder +BuildRequires: python3-jupyterlab +%description -n python3-notebook +Jupyter Notebook - A web-based notebook environment for interactive computing. + +%package help +Summary: Development documents and examples for notebook. +Provides: python3-notebook-doc +%description help +Development documents and examples for notebook. + +%prep +%autosetup -n notebook-%{version} + +%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.json +install -d -m755 %{buildroot}/%{_pkgdocdir} +if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi +if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi +if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi +if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi +pushd %{buildroot} +touch doclist.lst +if [ -d usr/share/man ]; then + find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst +fi +popd +mv %{buildroot}/doclist.lst . + +%files -n python3-notebook +%doc README.md +%license LICENSE +%{python3_sitelib}/notebook +%{python3_sitelib}/notebook*.dist-info/ +%{_bindir}/jupyter-notebook +%config(noreplace) %{_sysconfdir}/jupyter/jupyter_server_config.d/notebook.json +%{_datadir}/jupyter/lab/schemas/@jupyter-notebook/ +%{_datadir}/jupyter/labextensions/@jupyter-notebook/ +%{_datadir}/applications/jupyter-notebook.desktop +%{_datadir}/icons/hicolor/scalable/apps/notebook.svg + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Fri Mar 1 2024 Dongxing Wang - 7.1.1-1 +- Init package