%global pypi_name fasteners %bcond_with pytests Name: python-%{pypi_name} Version: 0.14.1 Release: 21 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-nose2 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 nose2-%{python3_version} %files -n python3-%{pypi_name} %doc README.rst %license LICENSE %{python3_sitelib}/%{pypi_name}/ %{python3_sitelib}/%{pypi_name}-*.egg-info/ %changelog * Tue Feb 15 2022 liqiuyu - 0.14.1-21 - change the BuildRequires:python3-nose to python3-nose2 * Fri Oct 30 2020 jiangxinyu - 0.14.1-20 - Init python3-fasteners project