Use %{python3_pkgversion}
to make specfile more universal
This commit is contained in:
parent
10ed6610d0
commit
031fc5deeb
@ -49,20 +49,20 @@ Python 2 version.
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%package -n python3-%{modname}
|
%package -n python%{python3_pkgversion}-%{modname}
|
||||||
Summary: %{summary}
|
Summary: %{summary}
|
||||||
%{?python_provide:%python_provide python3-%{modname}}
|
%{?python_provide:%python_provide python%{python3_pkgversion}-%{modname}}
|
||||||
BuildRequires: python3-devel
|
BuildRequires: python%{python3_pkgversion}-devel
|
||||||
BuildRequires: python3-setuptools
|
BuildRequires: python%{python3_pkgversion}-setuptools
|
||||||
BuildRequires: python3-pip
|
BuildRequires: python%{python3_pkgversion}-pip
|
||||||
BuildRequires: python3-wheel
|
BuildRequires: python%{python3_pkgversion}-wheel
|
||||||
|
|
||||||
%if %{with tests}
|
%if %{with tests}
|
||||||
BuildRequires: python3-pytest
|
BuildRequires: python3-pytest
|
||||||
BuildRequires: python3-tkinter
|
BuildRequires: python3-tkinter
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%description -n python3-%{modname} %{_description}
|
%description -n python%{python3_pkgversion}-%{modname} %{_description}
|
||||||
Python 3 version.
|
Python 3 version.
|
||||||
|
|
||||||
|
|
||||||
@ -102,7 +102,7 @@ PYTHONPATH=%{buildroot}%{python3_sitelib} pytest-3 -rfsxX test_six.py
|
|||||||
%{python2_sitelib}/%{modname}.py*
|
%{python2_sitelib}/%{modname}.py*
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%files -n python3-%{modname}
|
%files -n python%{python3_pkgversion}-%{modname}
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%doc README.rst documentation/index.rst
|
%doc README.rst documentation/index.rst
|
||||||
%{python3_sitelib}/%{modname}-*.dist-info/
|
%{python3_sitelib}/%{modname}-*.dist-info/
|
||||||
|
Loading…
Reference in New Issue
Block a user