Don't generate conditional Recommends when the wheel is built for a single Python version

This commit is contained in:
Miro Hrončok 2023-10-27 14:17:07 +02:00
parent be83e98e05
commit e03098bace

View File

@ -211,11 +211,14 @@ Requires: ca-certificates
%{bundled 3} %{bundled 3}
# This is only relevant for Pythons that are older than 3.12 and don't use their own bundled wheels # This is only relevant for Pythons that are older than 3.12 and don't use their own bundled wheels
# It is also only relevant when this wheel is shared across multiple Pythons
%if "%{python_wheel_pkg_prefix}" == "python"
%{crypt_compat_recommends 3.11} %{crypt_compat_recommends 3.11}
%{crypt_compat_recommends 3.10} %{crypt_compat_recommends 3.10}
%{crypt_compat_recommends 3.9} %{crypt_compat_recommends 3.9}
%{crypt_compat_recommends 3.8} %{crypt_compat_recommends 3.8}
%{crypt_compat_recommends 3.7} %{crypt_compat_recommends 3.7}
%endif
%description -n %{python_wheel_pkg_prefix}-%{srcname}-wheel %description -n %{python_wheel_pkg_prefix}-%{srcname}-wheel
A Python wheel of pip to use with venv. A Python wheel of pip to use with venv.