!2 Package init

From: @li-miaomiao_zhr 
Reviewed-by: @xiyuanwang 
Signed-off-by: @xiyuanwang
This commit is contained in:
openeuler-ci-bot 2023-07-11 10:41:26 +00:00 committed by Gitee
commit 5cdf4deab2
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 51 additions and 0 deletions

BIN
natsort-8.4.0.tar.gz Normal file

Binary file not shown.

51
python-natsort.spec Normal file
View 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