From 98fc774a2960afc06e00d480de7b68a5bfb21236 Mon Sep 17 00:00:00 2001 From: desert-sailor Date: Wed, 27 Dec 2023 17:52:00 +0800 Subject: [PATCH] Fix the metadata --- jupyter_packaging.spec | 46 ----------------------- python-jupyter-packaging.spec | 69 +++++++++++++++++++++++++++++++++++ 2 files changed, 69 insertions(+), 46 deletions(-) delete mode 100644 jupyter_packaging.spec create mode 100644 python-jupyter-packaging.spec diff --git a/jupyter_packaging.spec b/jupyter_packaging.spec deleted file mode 100644 index 9170738..0000000 --- a/jupyter_packaging.spec +++ /dev/null @@ -1,46 +0,0 @@ -%define debug_package %{nil} -%global pypi_name jupyter_packaging - -Name: jupyter-packaging -Version: 0.12.3 -Release: 1 -Summary: Tools to help build and install Jupyter Python packages -License: BSD-3-Clause -URL: https://pypi.org/project/jupyter-packaging/ -Source0: %{url}/archive/%{version}/%{pypi_name}-%{version}.tar.gz - - -%description -Tools to help build and install Jupyter Python packages that require a pre-build step that may include JavaScript build steps. - -%package -n python3-jupyter-packaging -Summary: Tools to help build and install Jupyter Python packages -BuildRequires: python3-devel python3-setuptools python3-setuptools_scm python3-pip python3-wheel python3-hatchling - - -%{?python_provide:%python_provide python3-%{name}} - -%description -n python3-jupyter-packaging -Tools to help build and install Jupyter Python packages that require a pre-build step that may include JavaScript build steps. -%prep -%autosetup -n %{pypi_name}-%{version} -p1 - -%build -%pyproject_build - -%install -%pyproject_install - - - -%files -n python3-jupyter-packaging -%doc README.md -%license LICENSE -%{python3_sitelib}/jupyter_packaging/* -%{python3_sitelib}/jupyter_packaging-*dist-info/* - -%changelog -* Fri Jul 28 2023 xlhans - 0.12.3-1 -- Package init - - diff --git a/python-jupyter-packaging.spec b/python-jupyter-packaging.spec new file mode 100644 index 0000000..0035014 --- /dev/null +++ b/python-jupyter-packaging.spec @@ -0,0 +1,69 @@ +%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 - 0.12.3-2 +- Fix package metadata + +* Fri Jul 28 2023 xlhans - 0.12.3-1 +- Package init