From ff9f64c2e651e633678e9307ccfbcc6b5638f1d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Mon, 2 Oct 2023 18:47:27 +0200 Subject: [PATCH] Update BuildRequires to respect %{python3_pkgversion} This spec file is sometimes merged into "alternate Python stacks" in RHELs and it uses %{python3_pkgversion} everywhere else. Let's be consistent. [skip changelog] --- python-setuptools_scm.spec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python-setuptools_scm.spec b/python-setuptools_scm.spec index 556eb48..5494b61 100644 --- a/python-setuptools_scm.spec +++ b/python-setuptools_scm.spec @@ -20,8 +20,8 @@ BuildRequires: git-core BuildRequires: mercurial %endif # Manually listed test dependencies from tox.ini, to avoid pulling tox into RHEL -BuildRequires: python3dist(pytest) -BuildRequires: python3dist(setuptools) >= 45 +BuildRequires: python%{python3_pkgversion}dist(pytest) +BuildRequires: python%{python3_pkgversion}dist(setuptools) >= 45 # virtualenv omitted, see https://github.com/pypa/setuptools_scm/pull/940 # rich omitted, pulled in only with the [rich] extra %endif