Expand the %pypi_name macro

This commit is contained in:
Karolina Surma 2023-08-28 10:27:23 +02:00
parent c9b0327f90
commit 88fb27a2dc

View File

@ -1,11 +1,9 @@
%global pypi_name sphinxcontrib-htmlhelp
# when bootstrapping sphinx, we cannot even run an import check
%bcond check 1
# RHEL does not include html5lib, without which the tests fail
%bcond tests %[%{with check} && %{undefined rhel}]
Name: python-%{pypi_name}
Name: python-sphinxcontrib-htmlhelp
Version: 2.0.4
Release: 1%{?dist}
Summary: Sphinx extension for HTML help files
@ -33,10 +31,10 @@ BuildRequires: python%{python3_pkgversion}-devel
sphinxcontrib-htmlhelp is a sphinx extension which renders HTML help files.
%package -n python%{python3_pkgversion}-%{pypi_name}
%package -n python%{python3_pkgversion}-sphinxcontrib-htmlhelp
Summary: %{summary}
%description -n python%{python3_pkgversion}-%{pypi_name}
%description -n python%{python3_pkgversion}-sphinxcontrib-htmlhelp
sphinxcontrib-htmlhelp is a sphinx extension which renders HTML help files.
@ -80,7 +78,7 @@ popd
%endif
%files -n python%{python3_pkgversion}-%{pypi_name} -f sphinxcontrib.htmlhelp.lang
%files -n python%{python3_pkgversion}-sphinxcontrib-htmlhelp -f sphinxcontrib.htmlhelp.lang
%license LICENSE
%doc README.rst
%{python3_sitelib}/sphinxcontrib/