From f36a9789508fcd21d8ebe1429720699d5aadbe4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Pierret=20=28fepitre=29?= Date: Sat, 8 Aug 2020 22:26:52 +0200 Subject: [PATCH] spec: replace hardcoded python3 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Frédéric Pierret (fepitre) --- python-sortedcontainers.spec | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/python-sortedcontainers.spec b/python-sortedcontainers.spec index 85f5457..91d9847 100644 --- a/python-sortedcontainers.spec +++ b/python-sortedcontainers.spec @@ -18,30 +18,30 @@ pure-Python, and fast as C-extensions. %description %{_description} -%package -n python3-%{srcname} +%package -n python%{python3_pkgversion}-%{srcname} Summary: %{summary} -%{?python_provide:%python_provide python3-%{srcname}} +%{?python_provide:%python_provide python%{python3_pkgversion}-%{srcname}} -BuildRequires: python3-devel -BuildRequires: python3-setuptools +BuildRequires: python%{python3_pkgversion}-devel +BuildRequires: python%{python3_pkgversion}-setuptools %bcond_without tests %if %{with tests} -BuildRequires: python3-pytest -BuildRequires: python3-matplotlib -BuildRequires: python3-numpy -BuildRequires: python3-scipy +BuildRequires: python%{python3_pkgversion}-pytest +BuildRequires: python%{python3_pkgversion}-matplotlib +BuildRequires: python%{python3_pkgversion}-numpy +BuildRequires: python%{python3_pkgversion}-scipy %endif %bcond_without docs %if %{with docs} -BuildRequires: python3-sphinx +BuildRequires: python%{python3_pkgversion}-sphinx BuildRequires: dvipng BuildRequires: tex(anyfontsize.sty) BuildRequires: tex(bm.sty) %endif -%description -n python3-%{srcname} %{_description} +%description -n python%{python3_pkgversion}-%{srcname} %{_description} %package -n python-%{srcname}-doc @@ -79,7 +79,7 @@ popd %endif -%files -n python3-%{srcname} +%files -n python%{python3_pkgversion}-%{srcname} %license LICENSE %doc README.rst %{python3_sitelib}/%{srcname}