Add minimal version limits on setuptools/pip wheels

Fedora 37+ has setuptools 62.6+ and pip 22.2.2+
Fedora 36 is patched in:
https://src.fedoraproject.org/rpms/python-setuptools/pull-request/86
https://src.fedoraproject.org/rpms/python-pip/pull-request/117
This commit is contained in:
Miro Hrončok 2022-11-16 17:48:22 +01:00
parent c12d924ecf
commit 5fcd231389
1 changed files with 6 additions and 4 deletions

View File

@ -247,8 +247,10 @@ BuildRequires: /usr/bin/dtrace
BuildRequires: /usr/sbin/ifconfig
%if %{with rpmwheels}
BuildRequires: %{python_wheel_pkg_prefix}-setuptools-wheel
BuildRequires: %{python_wheel_pkg_prefix}-pip-wheel
# Newer versions in Fedora 37 support Python 3.12
# Versions in Fedora 36 were patched to add the support, in the versions listed bellow
BuildRequires: %{python_wheel_pkg_prefix}-setuptools-wheel >= 59.6.0-3
BuildRequires: %{python_wheel_pkg_prefix}-pip-wheel >= 21.3.1-4
%endif
%if %{without bootstrap}
@ -446,8 +448,8 @@ This package contains /usr/bin/python - the "python" command that runs Python 3.
Summary: Python runtime libraries
%if %{with rpmwheels}
Requires: %{python_wheel_pkg_prefix}-setuptools-wheel
Requires: %{python_wheel_pkg_prefix}-pip-wheel
Requires: %{python_wheel_pkg_prefix}-setuptools-wheel >= 59.6.0-3
Requires: %{python_wheel_pkg_prefix}-pip-wheel >= 21.3.1-4
%else
Provides: bundled(python3dist(pip)) = %{pip_version}
Provides: bundled(python3dist(setuptools)) = %{setuptools_version}