spec: replace hardcoded python3

Signed-off-by: Frédéric Pierret (fepitre) <frederic.pierret@qubes-os.org>
This commit is contained in:
Frédéric Pierret (fepitre) 2020-08-08 21:26:58 +02:00
parent a398921a13
commit 7d3f28f886
No known key found for this signature in database
GPG Key ID: 484010B5CDC576E2

View File

@ -13,23 +13,23 @@ Source0: %{pypi_source}
BuildArch: noarch BuildArch: noarch
BuildRequires: gettext BuildRequires: gettext
BuildRequires: python3-devel BuildRequires: python%{python3_pkgversion}-devel
BuildRequires: python3-setuptools BuildRequires: python%{python3_pkgversion}-setuptools
%if %{with check} %if %{with check}
BuildRequires: python3-pytest BuildRequires: python%{python3_pkgversion}-pytest
BuildRequires: python3-sphinx >= 1:2 BuildRequires: python%{python3_pkgversion}-sphinx >= 1:2
%endif %endif
%description %description
sphinxcontrib-applehelp is a sphinx extension which outputs Apple help books. sphinxcontrib-applehelp is a sphinx extension which outputs Apple help books.
%package -n python3-%{pypi_name} %package -n python%{python3_pkgversion}-%{pypi_name}
Summary: %{summary} 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-applehelp is a sphinx extension which outputs Apple help books. sphinxcontrib-applehelp is a sphinx extension which outputs Apple help books.
@ -70,7 +70,7 @@ popd
%endif %endif
%files -n python3-%{pypi_name} -f sphinxcontrib.applehelp.lang %files -n python%{python3_pkgversion}-%{pypi_name} -f sphinxcontrib.applehelp.lang
%license LICENSE %license LICENSE
%doc README.rst %doc README.rst
%{python3_sitelib}/sphinxcontrib/ %{python3_sitelib}/sphinxcontrib/