Use `%{python3_pkgversion}` to make specfile more universal

epel9
Lumir Balhar 4 years ago
parent ea2e8a28d4
commit ad78b94031

@ -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}/

Loading…
Cancel
Save