From 96be29963d1f51c453957e09356b6f46dea097c9 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-collections.spec | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/python-jaraco-collections.spec b/python-jaraco-collections.spec index 9602294..537a28f 100644 --- a/python-jaraco-collections.spec +++ b/python-jaraco-collections.spec @@ -11,8 +11,8 @@ Source0: %{pypi_source} BuildArch: noarch BuildRequires: python3-devel -BuildRequires: python3dist(jaraco.classes) -BuildRequires: python3dist(jaraco.packaging) >= 3.2 +BuildRequires: python3dist(jaraco-classes) +BuildRequires: python3dist(jaraco-packaging) >= 3.2 BuildRequires: python3dist(setuptools) BuildRequires: python3dist(setuptools-scm) >= 1.15.0 @@ -20,13 +20,13 @@ BuildRequires: python3dist(sphinx) %if %{with tests} # test requirements -BuildRequires: python3dist(jaraco.text) +BuildRequires: python3dist(jaraco-text) BuildRequires: python3dist(pytest) >= 3.5 BuildRequires: python3dist(pytest-black-multipy) BuildRequires: python3dist(pytest-checkdocs) >= 1.2.3 BuildRequires: python3dist(pytest-cov) BuildRequires: python3dist(pytest-flake8) -BuildRequires: python3dist(rst.linker) >= 1.9 +BuildRequires: python3dist(rst-linker) >= 1.9 BuildRequires: python3dist(six) >= 1.7.0 %endif