%global srcname pytest-rerunfailures Name: python-%{srcname} Version: 6.0 Release: 1%{?dist} Summary: A py.test plugin that re-runs failed tests to eliminate flakey failures License: MPLv2.0 URL: https://github.com/pytest-dev/%{srcname} Source0: https://github.com/pytest-dev/%{srcname}/archive/%{version}/%{srcname}-%{version}.tar.gz BuildArch: noarch %description pytest-rerunfailures is a plugin for py.test that re-runs tests to eliminate intermittent failures. %package -n python%{python3_pkgversion}-%{srcname} Summary: %{summary} %{?python_provide:%python_provide python%{python3_pkgversion}-%{srcname}} BuildRequires: python%{python3_pkgversion}-devel BuildRequires: python%{python3_pkgversion}-pytest >= 3.8 Requires: python%{python3_pkgversion}-pytest >= 3.8 %description -n python%{python3_pkgversion}-%{srcname} pytest-rerunfailures is a plugin for py.test that re-runs tests to eliminate intermittent failures. %prep %autosetup -n %{srcname}-%{version} %build %py3_build %install %py3_install %check PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-%{python3_version} test_pytest_rerunfailures.py %files -n python%{python3_pkgversion}-%{srcname} %license LICENSE %doc CHANGES.rst README.rst %{python3_sitelib}/pytest_rerunfailures.py %{python3_sitelib}/__pycache__/pytest_rerunfailures.cpython-* %{python3_sitelib}/pytest_rerunfailures-%{version}-py%{python3_version}.egg-info/ %changelog * Tue Feb 12 2019 Scott K Logan - 6.0-1 - Initial package