!5 add python-jupyter-filesystem package

From: @li-miaomiao_zhr 
Reviewed-by: @yangzhao_kl 
Signed-off-by: @yangzhao_kl
This commit is contained in:
openeuler-ci-bot 2023-08-10 06:15:04 +00:00 committed by Gitee
commit 027dbdadee
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -1,7 +1,7 @@
%global _empty_manifest_terminate_build 0
Name: python-jupyter-core
Version: 5.3.1
Release: 1
Release: 2
Summary: Jupyter core package. A base package on which Jupyter projects rely.
License: BSD-3-Clause
URL: https://pypi.org/project/jupyter-core/
@ -34,6 +34,13 @@ Provides: python3-jupyter-core-doc
%description help
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
%autosetup -n jupyter_core-%{version}
@ -54,9 +61,22 @@ if [ -d usr/share/man ]; then
fi
popd
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
#%dir %{python3_sitelib}/*
%{_bindir}/jupyter*
%{python3_sitelib}/__pycache__/jupyter*
%{python3_sitelib}/jupyter.py
@ -66,7 +86,14 @@ mv %{buildroot}/doclist.lst .
%files help -f doclist.lst
%{_docdir}/*
%files -n python-jupyter-filesystem
%{_datadir}/jupyter
%{_sysconfdir}/jupyter
%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
- Update package to version 5.3.1