add python-jupyter-filesystem package

This commit is contained in:
li-miaomiao_zhr 2023-08-10 10:50:00 +08:00
parent c3a4bb8bc3
commit 34c0f696ec

View File

@ -1,7 +1,7 @@
%global _empty_manifest_terminate_build 0 %global _empty_manifest_terminate_build 0
Name: python-jupyter-core Name: python-jupyter-core
Version: 5.3.1 Version: 5.3.1
Release: 1 Release: 2
Summary: Jupyter core package. A base package on which Jupyter projects rely. Summary: Jupyter core package. A base package on which Jupyter projects rely.
License: BSD-3-Clause License: BSD-3-Clause
URL: https://pypi.org/project/jupyter-core/ URL: https://pypi.org/project/jupyter-core/
@ -34,6 +34,13 @@ Provides: python3-jupyter-core-doc
%description help %description help
Jupyter core package. A base package on which Jupyter projects rely. Jupyter core package. A base package on which Jupyter projects rely.
%package -n python-jupyter-filesystem
Summary: Jupyter filesystem layout
%description -n python-jupyter-filesystem
This package provides directories required by other packages that add
extensions to Jupyter.
%prep %prep
%autosetup -n jupyter_core-%{version} %autosetup -n jupyter_core-%{version}
@ -54,9 +61,22 @@ if [ -d usr/share/man ]; then
fi fi
popd popd
mv %{buildroot}/doclist.lst . mv %{buildroot}/doclist.lst .
# Create directories for python-jupyter-filesystem package
mkdir -p %{buildroot}%{_datadir}/jupyter
mkdir %{buildroot}%{_datadir}/jupyter/kernels
mkdir -p %{buildroot}%{_datadir}/jupyter/labextensions/@jupyter
mkdir %{buildroot}%{_datadir}/jupyter/nbextensions
mkdir -p %{buildroot}%{_sysconfdir}/jupyter
mkdir %{buildroot}%{_sysconfdir}/jupyter/jupyter_notebook_config.d
mkdir %{buildroot}%{_sysconfdir}/jupyter/jupyter_server_config.d
mkdir %{buildroot}%{_sysconfdir}/jupyter/nbconfig
mkdir %{buildroot}%{_sysconfdir}/jupyter/nbconfig/common.d
mkdir %{buildroot}%{_sysconfdir}/jupyter/nbconfig/edit.d
mkdir %{buildroot}%{_sysconfdir}/jupyter/nbconfig/notebook.d
mkdir %{buildroot}%{_sysconfdir}/jupyter/nbconfig/terminal.d
mkdir %{buildroot}%{_sysconfdir}/jupyter/nbconfig/tree.d
%files -n python3-jupyter-core %files -n python3-jupyter-core
#%dir %{python3_sitelib}/*
%{_bindir}/jupyter* %{_bindir}/jupyter*
%{python3_sitelib}/__pycache__/jupyter* %{python3_sitelib}/__pycache__/jupyter*
%{python3_sitelib}/jupyter.py %{python3_sitelib}/jupyter.py
@ -66,7 +86,14 @@ mv %{buildroot}/doclist.lst .
%files help -f doclist.lst %files help -f doclist.lst
%{_docdir}/* %{_docdir}/*
%files -n python-jupyter-filesystem
%{_datadir}/jupyter
%{_sysconfdir}/jupyter
%changelog %changelog
* Thu Aug 10 2023 li-miaomiao_zhr <mmlidc@isoftstone.com> - 5.3.1-2
- add python-jupyter-filesystem package
* Mon Jul 10 2023 li-miaomiao_zhr <mmlidc@isoftstone.com> - 5.3.1-1 * Mon Jul 10 2023 li-miaomiao_zhr <mmlidc@isoftstone.com> - 5.3.1-1
- Update package to version 5.3.1 - Update package to version 5.3.1