52 lines
1.1 KiB
RPMSpec
52 lines
1.1 KiB
RPMSpec
|
|
%global _empty_manifest_terminate_build 0
|
||
|
|
%global pypi_name natsort
|
||
|
|
|
||
|
|
Name: python-%{pypi_name}
|
||
|
|
Version: 8.4.0
|
||
|
|
Release: 1
|
||
|
|
Summary: Simple yet flexible natural sorting in Python.
|
||
|
|
License: MIT
|
||
|
|
URL: https://pypi.org/project/natsort/
|
||
|
|
Source0: %{url}/archive/%{version}/%{pypi_name}-%{version}.tar.gz
|
||
|
|
BuildArch: noarch
|
||
|
|
|
||
|
|
BuildRequires: python3-setuptools
|
||
|
|
#BuildRequires: python3-setuptools_scm
|
||
|
|
|
||
|
|
%description
|
||
|
|
Simple yet flexible natural sorting in Python.
|
||
|
|
|
||
|
|
%package -n python3-%{pypi_name}
|
||
|
|
Summary: Simple yet flexible natural sorting in Python.
|
||
|
|
BuildArch: noarch
|
||
|
|
%{?python_provide:%python_provide python3-%{pypi_name}}
|
||
|
|
|
||
|
|
%description -n python3-%{pypi_name}
|
||
|
|
Simple yet flexible natural sorting in Python.
|
||
|
|
|
||
|
|
%prep
|
||
|
|
%autosetup -n %{pypi_name}-%{version} -p1
|
||
|
|
rm -rf *.egg-info
|
||
|
|
|
||
|
|
%build
|
||
|
|
%py3_build
|
||
|
|
|
||
|
|
|
||
|
|
%install
|
||
|
|
%py3_install
|
||
|
|
|
||
|
|
|
||
|
|
%check
|
||
|
|
%{__python3} setup.py test
|
||
|
|
|
||
|
|
%files -n python3-%{pypi_name}
|
||
|
|
%doc README.rst
|
||
|
|
%license LICENSE
|
||
|
|
%{_bindir}/natsort
|
||
|
|
%{python3_sitelib}/natsort-*.egg-info/
|
||
|
|
%{python3_sitelib}/natsort/
|
||
|
|
|
||
|
|
%changelog
|
||
|
|
* Tue Jul 11 2023 li-miaomiao_zhr <mmlidc@isoftstone.com> - 8.4.0-1
|
||
|
|
- Package init
|