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]
This commit is contained in:
Miro Hrončok 2023-10-02 18:47:27 +02:00
parent 6fe5e182cc
commit ff9f64c2e6

View File

@ -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