Use %{python3_pkgversion} to make specfile more universal
This commit is contained in:
@@ -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}/
|
||||
|
||||
Reference in New Issue
Block a user