Macronize the Python version of the bundled provides

We build it in alternative Python stacks and want it to pick up
the redefined %{python3_pkgversion}. For main Python it
evaluates to 3, meaning no change in Fedora proper.
It will result in a smaller diff when creating alternative package definitions.

[skip changelog]
This commit is contained in:
Karolina Surma 2025-06-19 14:08:00 +02:00
commit 1ae9237431

View file

@ -178,7 +178,7 @@ BuildRequires: ca-certificates
Requires: ca-certificates
# Virtual provides for the packages bundled by pip:
%{bundled 3}
%{bundled %{python3_pkgversion}}
Provides: pip = %{version}-%{release}
Conflicts: python-pip < %{version}-%{release}
@ -195,7 +195,7 @@ Summary: The pip wheel
Requires: ca-certificates
# Virtual provides for the packages bundled by pip:
%{bundled 3}
%{bundled %{python3_pkgversion}}
# 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