63 lines
1.3 KiB
RPMSpec
63 lines
1.3 KiB
RPMSpec
%global pypi_name fasteners
|
|
|
|
#%%if 0%{?rhel} >= 8
|
|
%bcond_with pytests
|
|
#%%else
|
|
#%%bcond_without pytests
|
|
#%%endif
|
|
|
|
Name: python-%{pypi_name}
|
|
Version: 0.14.1
|
|
Release: 20%{?dist}
|
|
Summary: A python package that provides useful locks
|
|
|
|
License: ASL 2.0
|
|
URL: https://github.com/harlowja/fasteners
|
|
Source0: https://codeload.github.com/harlowja/fasteners/tar.gz/%{version}#/%{pypi_name}-%{version}.tar.gz
|
|
Patch0: fasteners-monotonic.patch
|
|
BuildArch: noarch
|
|
|
|
%description
|
|
A python package that provides useful locks.
|
|
|
|
|
|
%package -n python3-%{pypi_name}
|
|
Summary: A python package that provides useful locks
|
|
%{?python_provide:%python_provide python3-%{pypi_name}}
|
|
|
|
BuildRequires: python3-six
|
|
BuildRequires: python3-devel
|
|
# tests
|
|
BuildRequires: python3-testtools
|
|
BuildRequires: python3-nose
|
|
Requires: python3-six
|
|
|
|
%description -n python3-%{pypi_name}
|
|
A python package that provides useful locks.
|
|
|
|
|
|
%prep
|
|
%autosetup -p1 -n %{pypi_name}-%{version}
|
|
|
|
|
|
%build
|
|
%py3_build
|
|
|
|
|
|
%install
|
|
%py3_install
|
|
|
|
%check
|
|
nosetests-%{python3_version}
|
|
|
|
%files -n python3-%{pypi_name}
|
|
%doc README.rst
|
|
%license LICENSE
|
|
%{python3_sitelib}/%{pypi_name}/
|
|
%{python3_sitelib}/%{pypi_name}-*.egg-info/
|
|
|
|
|
|
%changelog
|
|
* Fri Oct 30 2020 jiangxinyu <jiangxinyu@kylinos.cn> - 0.14.1-21
|
|
- Init python3-fasteners project
|