From b4da165ac5ea158856570fa1dc39e9c54902b0ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Mon, 20 Dec 2021 19:46:33 +0100 Subject: [PATCH] Use PEP 503 names for BuildRequires Since Fedora 33, we generate both python3dist(foo.bar) and python3dist(foo-bar) provides, but we'd like to follow PEP 503 and use only the names with dash. By using the dashes, this is not compatible with the provides generated in EPEL 8, compatibility can be achieved with the %py3_dist macro. --- python-jaraco-packaging.spec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python-jaraco-packaging.spec b/python-jaraco-packaging.spec index 3d5327f..9274a53 100644 --- a/python-jaraco-packaging.spec +++ b/python-jaraco-packaging.spec @@ -32,7 +32,7 @@ A Parent package for jaraco's parent dir and init file. %package -n python3-%{pkg_name} Summary: %{summary} Requires: python3-jaraco -Requires: python3dist(rst.linker) +Requires: python3dist(rst-linker) Requires: python3dist(six) >= 1.4 Requires: python3dist(setuptools) @@ -60,7 +60,7 @@ version or author name. Summary: jaraco.packaging documentation BuildRequires: python3dist(sphinx) -BuildRequires: python3dist(rst.linker) +BuildRequires: python3dist(rst-linker) %description -n python-%{pkg_name}-doc Documentation for jaraco.packaging