From d5376c4e59050266460c712a1eeb1d1a9c33a23d 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:46:37 +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-sphinxcontrib-jsmath.spec | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/python-sphinxcontrib-jsmath.spec b/python-sphinxcontrib-jsmath.spec index 57a7e6e..3c80d92 100644 --- a/python-sphinxcontrib-jsmath.spec +++ b/python-sphinxcontrib-jsmath.spec @@ -12,12 +12,12 @@ URL: http://sphinx-doc.org/ Source0: %{pypi_source} BuildArch: noarch -BuildRequires: python3-devel -BuildRequires: python3-setuptools +BuildRequires: python%{python3_pkgversion}-devel +BuildRequires: python%{python3_pkgversion}-setuptools %if %{with check} -BuildRequires: python3-pytest -BuildRequires: python3-sphinx >= 1:2 +BuildRequires: python%{python3_pkgversion}-pytest +BuildRequires: python%{python3_pkgversion}-sphinx >= 1:2 %endif %description @@ -25,11 +25,11 @@ sphinxcontrib-jsmath is a sphinx extension which renders display math in HTML via JavaScript. -%package -n python3-%{pypi_name} +%package -n python%{python3_pkgversion}-%{pypi_name} Summary: %{summary} -%{?python_provide:%python_provide python3-%{pypi_name}} +%{?python_provide:%python_provide python%{python3_pkgversion}-%{pypi_name}} -%description -n python3-%{pypi_name} +%description -n python%{python3_pkgversion}-%{pypi_name} sphinxcontrib-jsmath is a sphinx extension which renders display math in HTML via JavaScript. @@ -52,7 +52,7 @@ via JavaScript. %endif -%files -n python3-%{pypi_name} +%files -n python%{python3_pkgversion}-%{pypi_name} %license LICENSE %doc README.rst %{python3_sitelib}/sphinxcontrib/