From 490093515a32d44fb214f69138d63eaee3d13a6e Mon Sep 17 00:00:00 2001 From: Karolina Surma Date: Tue, 22 Aug 2023 15:42:11 +0200 Subject: [PATCH] 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. --- python-sphinxcontrib-devhelp.spec | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/python-sphinxcontrib-devhelp.spec b/python-sphinxcontrib-devhelp.spec index 16ba969..2485e5e 100644 --- a/python-sphinxcontrib-devhelp.spec +++ b/python-sphinxcontrib-devhelp.spec @@ -1,9 +1,7 @@ -%global pypi_name sphinxcontrib-devhelp - # when bootstrapping sphinx, we cannot run tests yet %bcond_without check -Name: python-%{pypi_name} +Name: python-sphinxcontrib-devhelp Version: 1.0.5 Release: 1%{?dist} 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. -%package -n python%{python3_pkgversion}-%{pypi_name} +%package -n python%{python3_pkgversion}-sphinxcontrib-devhelp 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. @@ -74,7 +72,7 @@ popd %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 %doc README.rst %{python3_sitelib}/sphinxcontrib/