Expand the %pypi_name macro

The name of the archive has been recently changed to contain
underscores instead of hyphens, resulting in an inconsistent macro usage.
This commit is contained in:
Karolina Surma 2023-08-22 15:42:11 +02:00
parent b08ae94a9c
commit 490093515a

View File

@ -1,9 +1,7 @@
%global pypi_name sphinxcontrib-devhelp
# when bootstrapping sphinx, we cannot run tests yet # when bootstrapping sphinx, we cannot run tests yet
%bcond_without check %bcond_without check
Name: python-%{pypi_name} Name: python-sphinxcontrib-devhelp
Version: 1.0.5 Version: 1.0.5
Release: 1%{?dist} Release: 1%{?dist}
Summary: Sphinx extension for Devhelp documents Summary: Sphinx extension for Devhelp documents
@ -26,10 +24,10 @@ BuildRequires: python%{python3_pkgversion}-devel
sphinxcontrib-devhelp is a sphinx extension which outputs Devhelp document. sphinxcontrib-devhelp is a sphinx extension which outputs Devhelp document.
%package -n python%{python3_pkgversion}-%{pypi_name} %package -n python%{python3_pkgversion}-sphinxcontrib-devhelp
Summary: %{summary} Summary: %{summary}
%description -n python%{python3_pkgversion}-%{pypi_name} %description -n python%{python3_pkgversion}-sphinxcontrib-devhelp
sphinxcontrib-devhelp is a sphinx extension which outputs Devhelp document. sphinxcontrib-devhelp is a sphinx extension which outputs Devhelp document.
@ -74,7 +72,7 @@ popd
%endif %endif
%files -n python%{python3_pkgversion}-%{pypi_name} -f sphinxcontrib.devhelp.lang %files -n python%{python3_pkgversion}-sphinxcontrib-devhelp -f sphinxcontrib.devhelp.lang
%license LICENSE %license LICENSE
%doc README.rst %doc README.rst
%{python3_sitelib}/sphinxcontrib/ %{python3_sitelib}/sphinxcontrib/