Fix the conditional tests-related BuildRequires for Python version

python3-devel is not installed, hence the conditional needs to be on python3.
It only "worked" with toml because toml was pulled as a transitive dependency.
This commit is contained in:
Miro Hrončok 2023-05-26 14:34:32 +02:00
parent 5ab7319ece
commit ca3771c78d

View File

@ -61,7 +61,7 @@ BuildRequires: python3dist(setuptools)
BuildRequires: python3dist(tox-current-env) >= 0.0.6 BuildRequires: python3dist(tox-current-env) >= 0.0.6
%endif %endif
BuildRequires: python3dist(wheel) BuildRequires: python3dist(wheel)
BuildRequires: (python3dist(tomli) if python3-devel < 3.11) BuildRequires: (python3dist(tomli) if python3 < 3.11)
%endif %endif
# We build on top of those: # We build on top of those: