python-jupyter-core/python-jupyter-core.spec

106 lines
3.4 KiB
RPMSpec
Raw Normal View History

2022-04-25 20:15:11 +08:00
%global _empty_manifest_terminate_build 0
Name: python-jupyter-core
2023-07-10 12:19:54 +08:00
Version: 5.3.1
2023-08-10 10:50:00 +08:00
Release: 2
2022-04-25 20:15:11 +08:00
Summary: Jupyter core package. A base package on which Jupyter projects rely.
License: BSD-3-Clause
2023-07-10 12:19:54 +08:00
URL: https://pypi.org/project/jupyter-core/
Source0: %{url}/archive/%{version}/jupyter_core-%{version}.tar.gz
2022-11-10 11:23:03 +08:00
Patch0: 0001-add-setup.py.patch
2022-04-25 20:15:11 +08:00
BuildArch: noarch
Requires: python3-traitlets
%description
Jupyter core package. A base package on which Jupyter projects rely.
%package -n python3-jupyter-core
Summary: Jupyter core package. A base package on which Jupyter projects rely.
2022-11-10 11:23:03 +08:00
Provides: python-jupyter-core = %{version}-%{release}
2022-04-25 20:15:11 +08:00
BuildRequires: python3-devel
BuildRequires: python3-setuptools
2023-07-10 12:19:54 +08:00
BuildRequires: python3-setuptools_scm
BuildRequires: python3-pip
BuildRequires: python3-hatchling
BuildRequires: python3-wheel
2022-11-10 11:23:03 +08:00
2022-04-25 20:15:11 +08:00
%description -n python3-jupyter-core
Jupyter core package. A base package on which Jupyter projects rely.
%package help
Summary: Development documents and examples for jupyter-core
Provides: python3-jupyter-core-doc
2022-11-10 11:23:03 +08:00
2022-04-25 20:15:11 +08:00
%description help
Jupyter core package. A base package on which Jupyter projects rely.
2023-08-10 10:50:00 +08:00
%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.
2022-04-25 20:15:11 +08:00
%prep
2022-11-10 11:23:03 +08:00
%autosetup -n jupyter_core-%{version}
2022-04-25 20:15:11 +08:00
%build
2023-07-10 12:19:54 +08:00
%pyproject_build
2022-04-25 20:15:11 +08:00
%install
2023-07-10 12:19:54 +08:00
%pyproject_install
2022-04-25 20:15:11 +08:00
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 .
2023-08-10 10:50:00 +08:00
# 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
2022-04-25 20:15:11 +08:00
2023-07-10 12:19:54 +08:00
%files -n python3-jupyter-core
%{_bindir}/jupyter*
%{python3_sitelib}/__pycache__/jupyter*
%{python3_sitelib}/jupyter.py
%{python3_sitelib}/jupyter_core-*.dist-info
%{python3_sitelib}/jupyter_core/
2022-04-25 20:15:11 +08:00
%files help -f doclist.lst
%{_docdir}/*
2023-08-10 10:50:00 +08:00
%files -n python-jupyter-filesystem
%{_datadir}/jupyter
%{_sysconfdir}/jupyter
2022-04-25 20:15:11 +08:00
%changelog
2023-08-10 10:50:00 +08:00
* Thu Aug 10 2023 li-miaomiao_zhr <mmlidc@isoftstone.com> - 5.3.1-2
- add python-jupyter-filesystem package
2023-07-10 12:19:54 +08:00
* Mon Jul 10 2023 li-miaomiao_zhr <mmlidc@isoftstone.com> - 5.3.1-1
- Update package to version 5.3.1
2022-11-10 11:23:03 +08:00
* Thu Nov 10 2022 wangjunqi <wangjunqi@kylinos.cn> - 5.0.0-1
- Update package to version 5.0.0
2022-04-25 20:15:11 +08:00
* Mon Jan 10 2022 Python_Bot <Python_Bot@openeuler.org> - 4.9.1-1
- Package Spec generated
2022-11-10 11:23:03 +08:00