From 019a0f74e87654b2b8b0d84c93635f3b6ce2d86b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Pierret=20=28fepitre=29?= Date: Sat, 8 Aug 2020 22:25:10 +0200 Subject: [PATCH] spec: replace hardcoded python3 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Frédéric Pierret (fepitre) --- python-coverage.spec | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/python-coverage.spec b/python-coverage.spec index fea8f8f..c2a0eab 100644 --- a/python-coverage.spec +++ b/python-coverage.spec @@ -48,14 +48,14 @@ have been executed. %endif -%package -n python3-coverage +%package -n python%{python3_pkgversion}-coverage Summary: Code coverage testing module for Python 3 -BuildRequires: python3-devel -BuildRequires: python3-setuptools +BuildRequires: python%{python3_pkgversion}-devel +BuildRequires: python%{python3_pkgversion}-setuptools # As the "coverage" executable requires the setuptools at runtime (#556290), # so the "python3-coverage" executable requires python3-setuptools: -Requires: python3-setuptools -%{?python_provide:%python_provide python3-coverage} +Requires: python%{python3_pkgversion}-setuptools +%{?python_provide:%python_provide python%{python3_pkgversion}-coverage} Provides: bundled(js-jquery) = 1.11.1 Provides: bundled(js-jquery-debounce) = 1.1 Provides: bundled(js-jquery-hotkeys) = 0.8 @@ -63,7 +63,7 @@ Provides: bundled(js-jquery-isonscreen) = 1.2.0 Provides: bundled(js-jquery-tablesorter) Conflicts: python2-coverage < 4.5.4-2 -%description -n python3-coverage +%description -n python%{python3_pkgversion}-coverage Coverage.py is a Python 3 module that measures code coverage during Python execution. It uses the code analysis tools and tracing hooks provided in the Python standard library to determine which lines are executable, and which @@ -111,7 +111,7 @@ popd %{python2_sitearch}/coverage*.egg-info/ %endif -%files -n python3-coverage +%files -n python%{python3_pkgversion}-coverage %license LICENSE.txt NOTICE.txt %doc README.rst %{_bindir}/coverage