From f0b75f2c21ec0f9ffe129cc2dfbc4fe17b1de4cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Hrn=C4=8Diar?= Date: Thu, 4 Jan 2024 12:54:41 +0100 Subject: [PATCH] Require python3-rpm-generators even when bootstrapping non-main Pythons --- python3.13.spec | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/python3.13.spec b/python3.13.spec index 1f704af..1a9a5f8 100644 --- a/python3.13.spec +++ b/python3.13.spec @@ -325,6 +325,9 @@ BuildRequires: %{python_wheel_pkg_prefix}-wheel-wheel # upgrading the main python3 to a new Python version, this would pull in the # old version instead. BuildRequires: python%{pybasever} +%endif + +%if %{without bootstrap} || %{without main_python} # for proper automatic provides BuildRequires: python3-rpm-generators %endif @@ -561,7 +564,8 @@ Recommends: %{pkgname}-pip # tox users are likely to need the devel subpackage Supplements: tox -%if %{without bootstrap} +%if %{without bootstrap} || %{without main_python} +# Generators run on the main Python 3 so we cannot require them when bootstrapping it Requires: (python3-rpm-generators if rpm-build) %endif