Package init
This commit is contained in:
parent
b112f3ff18
commit
ae52eda753
BIN
natsort-8.4.0.tar.gz
Normal file
BIN
natsort-8.4.0.tar.gz
Normal file
Binary file not shown.
51
python-natsort.spec
Normal file
51
python-natsort.spec
Normal file
@ -0,0 +1,51 @@
|
|||||||
|
%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
|
||||||
Loading…
x
Reference in New Issue
Block a user