Define %python3_pkgversion based on the Python's status

Main Python should retain the value '3', non-main the major-minor one.
We need that to request the correctly versioned wheels for EPEL builds.
This commit is contained in:
Karolina Surma 2025-06-24 11:26:09 +02:00
commit c6f6c7c522

View file

@ -140,9 +140,11 @@ Provides: bundled(python3dist(zipp)) = 3.19.2
%if %{with main_python}
%global pkgname python3
%global exename python3
%global python3_pkgversion 3
%else
%global pkgname python%{pybasever}
%global exename python%{pybasever}
%global python3_pkgversion %{pybasever}
%endif
# ABIFLAGS, LDVERSION and SOABI are in the upstream configure.ac