From 031fc5deeb6ca4e826f94c67c38fe58238d9d445 Mon Sep 17 00:00:00 2001 From: Lumir Balhar Date: Mon, 7 Sep 2020 12:13:50 +0200 Subject: [PATCH] Use `%{python3_pkgversion}` to make specfile more universal --- python-six.spec | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/python-six.spec b/python-six.spec index f283214..e7face9 100644 --- a/python-six.spec +++ b/python-six.spec @@ -49,20 +49,20 @@ Python 2 version. %endif -%package -n python3-%{modname} +%package -n python%{python3_pkgversion}-%{modname} Summary: %{summary} -%{?python_provide:%python_provide python3-%{modname}} -BuildRequires: python3-devel -BuildRequires: python3-setuptools -BuildRequires: python3-pip -BuildRequires: python3-wheel +%{?python_provide:%python_provide python%{python3_pkgversion}-%{modname}} +BuildRequires: python%{python3_pkgversion}-devel +BuildRequires: python%{python3_pkgversion}-setuptools +BuildRequires: python%{python3_pkgversion}-pip +BuildRequires: python%{python3_pkgversion}-wheel %if %{with tests} BuildRequires: python3-pytest BuildRequires: python3-tkinter %endif -%description -n python3-%{modname} %{_description} +%description -n python%{python3_pkgversion}-%{modname} %{_description} Python 3 version. @@ -102,7 +102,7 @@ PYTHONPATH=%{buildroot}%{python3_sitelib} pytest-3 -rfsxX test_six.py %{python2_sitelib}/%{modname}.py* %endif -%files -n python3-%{modname} +%files -n python%{python3_pkgversion}-%{modname} %license LICENSE %doc README.rst documentation/index.rst %{python3_sitelib}/%{modname}-*.dist-info/