62 lines
1.4 KiB
RPMSpec
62 lines
1.4 KiB
RPMSpec
%global _empty_manifest_terminate_build 0
|
|
%global pypi_name natsort
|
|
|
|
Name: python-%{pypi_name}
|
|
Version: 8.4.0
|
|
Release: 2
|
|
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-devel
|
|
BuildRequires: python3-setuptools
|
|
|
|
# for test
|
|
BuildRequires: python3-coverage
|
|
BuildRequires: python3-pytest
|
|
BuildRequires: python3-pytest-cov
|
|
BuildRequires: python3-pytest-mock
|
|
BuildRequires: python3-hypothesis
|
|
|
|
%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
|
|
* Fri Jul 28 2023 Dongxing Wang <dxwangk@isoftstone.com> - 8.4.0-2
|
|
- Add build requirements
|
|
|
|
* Tue Jul 11 2023 li-miaomiao_zhr <mmlidc@isoftstone.com> - 8.4.0-1
|
|
- Package init
|