From 1521b586f03ffaeac28c49acfe5bbfc902cfaa33 Mon Sep 17 00:00:00 2001 From: Karolina Surma Date: Tue, 24 Jun 2025 14:26:44 +0200 Subject: [PATCH] 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. --- python3.14.spec | 2 ++ 1 file changed, 2 insertions(+) diff --git a/python3.14.spec b/python3.14.spec index 75bb7b0..01493dd 100644 --- a/python3.14.spec +++ b/python3.14.spec @@ -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