From 8ff7f90f12e1614ec67466bae56fdde782d710bc 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 21:08:00 +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-pygments.spec | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/python-pygments.spec b/python-pygments.spec index 9a2cfff..42b92c4 100644 --- a/python-pygments.spec +++ b/python-pygments.spec @@ -30,19 +30,19 @@ need to prettify source code. Highlights are: %description %_description -%package -n python3-pygments -BuildRequires: python3-devel -BuildRequires: python3-setuptools +%package -n python%{python3_pkgversion}-pygments +BuildRequires: python%{python3_pkgversion}-devel +BuildRequires: python%{python3_pkgversion}-setuptools %if %{with tests} -BuildRequires: python3-pytest +BuildRequires: python%{python3_pkgversion}-pytest %endif %if %{with docs} -BuildRequires: python3-sphinx +BuildRequires: python%{python3_pkgversion}-sphinx %endif Summary: Syntax highlighting engine written in Python -%{?python_provide:%python_provide python3-pygments} +%{?python_provide:%python_provide python%{python3_pkgversion}-pygments} -%description -n python3-pygments %_description +%description -n python%{python3_pkgversion}-pygments %_description %prep %autosetup -p1 -n Pygments-%{version} @@ -69,7 +69,7 @@ make test PYTHON=%{python3} %endif -%files -n python3-pygments +%files -n python%{python3_pkgversion}-pygments %doc AUTHORS CHANGES doc/reST %license LICENSE %{python3_sitelib}/pygments/