public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Lumir Balhar <lbalhar@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/python3.9] f44: Conditionalize rpmwheels based on Fedora version
Date: Thu, 02 Jul 2026 14:03:57 GMT	[thread overview]
Message-ID: <178300103710.1.4413454540197132363.rpms-python3.9-9caea867f481@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/python3.9
Branch : f44
Commit : 9caea867f4815c8539ebb3e3705d726017eaac21
Author : Lumir Balhar <lbalhar@redhat.com>
Date   : 2026-05-05T11:51:23+02:00
Stats  : +13/-5 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/python3.9/c/9caea867f4815c8539ebb3e3705d726017eaac21?branch=f44

Log:
Conditionalize rpmwheels based on Fedora version

---
diff --git a/python3.9.spec b/python3.9.spec
index a816687..9dea4a6 100644
--- a/python3.9.spec
+++ b/python3.9.spec
@@ -2,6 +2,15 @@
 # Top-level metadata
 # ==================
 
+# Whether to use RPM build wheels from the python-{pip,setuptools}-wheel package
+# Uses upstream bundled prebuilt wheels otherwise.
+# pip 26.1 no longer supports Python 3.9, so rpmwheels are disabled on Fedora 45+.
+%if 0%{?fedora} >= 45
+%bcond_with rpmwheels
+%else
+%bcond_without rpmwheels
+%endif
+
 %global pybasever 3.9
 
 # pybasever without the dot:
@@ -60,7 +69,11 @@ Release: 9%{?dist}
 #   typing-extensions: PSF-2.0
 #   wheel: MIT
 #   zipp: MIT
+%if %{with rpmwheels}
+License: Python-2.0.1
+%else
 License: Python-2.0.1 AND Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND ISC AND LGPL-2.1-or-later AND LGPL-3.0-or-later AND MIT AND MPL-2.0 AND PSF-2.0 AND (Apache-2.0 OR BSD-2-Clause)
+%endif
 
 # ==================================
 # Conditionals controlling the build
@@ -104,11 +117,6 @@ License: Python-2.0.1 AND Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND ISC A
 #   the two packages are built with wheels to get around the issue.
 %bcond_with bootstrap
 
-# Whether to use RPM build wheels from the python-{pip,setuptools}-wheel package
-# Uses upstream bundled prebuilt wheels otherwise.
-# pip 26.1 no longer supports Python 3.9.
-%bcond_with rpmwheels
-
 # Expensive optimizations (mainly, profile-guided optimizations)
 %bcond_without optimizations
 

                 reply	other threads:[~2026-07-02 14:03 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178300103710.1.4413454540197132363.rpms-python3.9-9caea867f481@fedoraproject.org \
    --to=lbalhar@redhat.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox