diff --git a/python-pytest-cov.spec b/python-pytest-cov.spec index 7421c85..806fcb1 100644 --- a/python-pytest-cov.spec +++ b/python-pytest-cov.spec @@ -1,15 +1,8 @@ -%?python_enable_dependency_generator %global srcname pytest-cov -%if 0%{?fedora} >= 32 -%bcond_with python2 -%else -%bcond_without python2 -%endif - Name: python-%{srcname} Version: 2.11.1 -Release: 5%{?dist} +Release: 6%{?dist} URL: https://pypi.python.org/pypi/%{srcname} License: MIT Summary: Pytest plugin for coverage reporting @@ -23,21 +16,20 @@ BuildArch: noarch Py.test plugin for coverage reporting with support for both centralised and distributed testing, including subprocesses and multiprocessing for Python. -%package -n python%{python3_pkgversion}-%{srcname} +%package -n python3-%{srcname} Summary: Pytest plugin for coverage reporting -BuildRequires: python%{python3_pkgversion}-devel -BuildRequires: python%{python3_pkgversion}-setuptools -BuildRequires: python%{python3_pkgversion}-pytest >= 3.6 -BuildRequires: python%{python3_pkgversion}-coverage >= 4.4 +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pytest >= 3.6 +BuildRequires: python3-coverage >= 4.4 # For tests -BuildRequires: python%{python3_pkgversion}-fields -BuildRequires: python%{python3_pkgversion}-process-tests -BuildRequires: python%{python3_pkgversion}-six -BuildRequires: python%{python3_pkgversion}-virtualenv -BuildRequires: python%{python3_pkgversion}-pytest-xdist -%{?python_provide:%python_provide python%{python3_pkgversion}-%{srcname}} - -%description -n python%{python3_pkgversion}-%{srcname} +BuildRequires: python3-fields +BuildRequires: python3-process-tests +BuildRequires: python3-six +BuildRequires: python3-virtualenv +BuildRequires: python3-pytest-xdist + +%description -n python3-%{srcname} Py.test plugin for coverage reporting with support for both centralised and distributed testing, including subprocesses and multiprocessing for Python 3. @@ -57,13 +49,16 @@ export PYTHONPATH="$(pwd)"/build/lib py.test-%{python3_version} -vv \ -k "not test_dist_missing_data and not test_subprocess_with_path_aliasing and not test_dist_combine_racecondition and not central_subprocess and not dist_subprocess" -%files -n python%{python3_pkgversion}-%{srcname} +%files -n python3-%{srcname} %license LICENSE %doc AUTHORS.rst CHANGELOG.rst CONTRIBUTING.rst README.rst %{python3_sitelib}/* %changelog +* Wed Jul 28 2021 Benjamin A. Beasley - 2.11.1-6 +- Drop obsolete macros + * Fri Jul 23 2021 Fedora Release Engineering - 2.11.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild