From 1b50d52edf075c449e93d9aca65a8b7d1f8cc958 Mon Sep 17 00:00:00 2001 From: Carl George Date: Tue, 6 Oct 2020 20:06:51 -0500 Subject: [PATCH] Remove usage of python3_pkgversion macro --- python-trustme.spec | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/python-trustme.spec b/python-trustme.spec index 35b45a6..eef90d4 100644 --- a/python-trustme.spec +++ b/python-trustme.spec @@ -32,21 +32,21 @@ BuildArch: noarch %description %{common_description} -%package -n python%{python3_pkgversion}-%{pkgname} +%package -n python3-%{pkgname} Summary: %{summary} -BuildRequires: python%{python3_pkgversion}-devel -BuildRequires: python%{python3_pkgversion}-setuptools +BuildRequires: python3-devel +BuildRequires: python3-setuptools %if %{with tests} -BuildRequires: python%{python3_pkgversion}-pytest -BuildRequires: python%{python3_pkgversion}-pyOpenSSL -BuildRequires: python%{python3_pkgversion}-service-identity -BuildRequires: python%{python3_pkgversion}-cryptography -BuildRequires: python%{python3_pkgversion}-idna +BuildRequires: python3-pytest +BuildRequires: python3-pyOpenSSL +BuildRequires: python3-service-identity +BuildRequires: python3-cryptography +BuildRequires: python3-idna %endif -%{?python_provide:%python_provide python%{python3_pkgversion}-%{pkgname}} +%{?python_provide:%python_provide python3-%{pkgname}} -%description -n python%{python3_pkgversion}-%{pkgname} %{common_description} +%description -n python3-%{pkgname} %{common_description} %prep @@ -68,7 +68,7 @@ PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-%{python3_version} --verbose %endif -%files -n python%{python3_pkgversion}-%{pkgname} +%files -n python3-%{pkgname} %license LICENSE LICENSE.MIT LICENSE.APACHE2 %doc README.rst %{python3_sitelib}/%{libname}