!3 Fix the metadata
From: @desert-sailor Reviewed-by: @yangzhao_kl Signed-off-by: @yangzhao_kl
This commit is contained in:
commit
e1d1727a67
@ -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 <xlhans@isoftstone.com> - 0.12.3-1
|
|
||||||
- Package init
|
|
||||||
|
|
||||||
|
|
||||||
69
python-jupyter-packaging.spec
Normal file
69
python-jupyter-packaging.spec
Normal file
@ -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 <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
|
||||||
Loading…
x
Reference in New Issue
Block a user