python-jupyter-packaging/python-jupyter-packaging.spec

70 lines
2.1 KiB
RPMSpec
Raw Permalink Normal View History

2023-12-27 17:52:00 +08:00
%global _empty_manifest_terminate_build 0
Name: python-jupyter-packaging
Version: 0.12.3
Release: 2
Summary: Tools to help build and install Jupyter Python packages
License: BSD-3-Clause
URL: https://pypi.org/project/jupyter-packaging/
Source0: https://files.pythonhosted.org/packages/25/c5/b0e154e6403c6790bb1e66acddf9787296a8196f5b14f4bb9e4c92b6734e/jupyter_packaging-0.12.3.tar.gz
BuildArch: noarch
%description
Tools to help build and install Jupyter Python packages.
%package -n python3-jupyter-packaging
Summary: Tools to help build and install Jupyter Python packages.
Provides: python-jupyter-packaging
# Base build requires
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-pbr
BuildRequires: python3-pip
BuildRequires: python3-wheel
BuildRequires: python3-hatchling
%description -n python3-jupyter-packaging
Tools to help build and install Jupyter Python packages.
%package help
Summary: Development documents and examples for jupyter-packaging.
Provides: python3-jupyter-packaging-doc
%description help
Development documents and examples for jupyter-packaging.
%prep
%autosetup -n jupyter_packaging-%{version}
%build
%pyproject_build
%install
%pyproject_install
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-jupyter-packaging
%doc README.md
%license LICENSE
%{python3_sitelib}/jupyter_packaging
%{python3_sitelib}/jupyter_packaging*.dist-info/
%files help -f doclist.lst
%{_docdir}/*
%changelog
* Wed Dec 27 2023 Dongxing Wang <dongxing.wang_a@thundersoft.com> - 0.12.3-2
- Fix package metadata
* Fri Jul 28 2023 xlhans <xlhans@isoftstone.com> - 0.12.3-1
- Package init