From ad78b94031eeb921f8daea7e0bbc2faf32046c57 Mon Sep 17 00:00:00 2001 From: Lumir Balhar Date: Mon, 7 Sep 2020 12:22:17 +0200 Subject: [PATCH] Use `%{python3_pkgversion}` to make specfile more universal --- python-tox-current-env.spec | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/python-tox-current-env.spec b/python-tox-current-env.spec index 1d5af2a..01edc50 100644 --- a/python-tox-current-env.spec +++ b/python-tox-current-env.spec @@ -11,18 +11,18 @@ URL: https://github.com/fedora-python/tox-current-env Source0: %{pypi_source} BuildArch: noarch -BuildRequires: python3-devel +BuildRequires: python%{python3_pkgversion}-devel BuildRequires: pyproject-rpm-macros %description The tox-current-env plugin allows to run tests in current Python environment. -%package -n python3-%{pypi_name} +%package -n python%{python3_pkgversion}-%{pypi_name} Summary: %{summary} -%{?python_provide:%python_provide python3-%{pypi_name}} +%{?python_provide:%python_provide python%{python3_pkgversion}-%{pypi_name}} -%description -n python3-%{pypi_name} +%description -n python%{python3_pkgversion}-%{pypi_name} The tox-current-env plugin allows to run tests in current Python environment. @@ -48,7 +48,7 @@ The tox-current-env plugin allows to run tests in current Python environment. # versions installed, so we skip them. -%files -n python3-%{pypi_name} +%files -n python%{python3_pkgversion}-%{pypi_name} %license LICENSE %doc README.rst %{python3_sitelib}/%{pypi_under}/