public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Yaakov Selkowitz <yselkowi@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/python-pam] rawhide: Avoid poetry-core build dependency on RHEL
Date: Thu, 05 Nov 2026 16:06:23 GMT	[thread overview]
Message-ID: <179389478362.1.17561645574845092418.rpms-python-pam-62e87aacc4fe@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/python-pam
            Branch : rawhide
            Commit : 62e87aacc4fe00d662e8c415ca822ed0b811d563
            Author : Yaakov Selkowitz <yselkowi@redhat.com>
            Date   : 2026-11-04T09:14:20-05:00
            Stats  : +13/-1 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/python-pam/c/62e87aacc4fe00d662e8c415ca822ed0b811d563?branch=rawhide

            Log:
            Avoid poetry-core build dependency on RHEL

https://github.com/fedora-eln/eln/issues/278

---
diff --git a/python-pam.spec b/python-pam.spec
index dc39f2c..901201a 100644
--- a/python-pam.spec
+++ b/python-pam.spec
@@ -1,6 +1,9 @@
+# RHEL does not include poetry-core
+%bcond poetry %{undefined rhel}
+
 Name:           python-pam
 Version:        2.1.1
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        Pure Python interface to the Pluggable Authentication Modules system on Linux
 License:        MIT
 URL:            https://github.com/FirefighterBlu3/python-pam
@@ -26,6 +29,12 @@ authenticate a given username / password against the PAM system on Linux.
 %prep
 %autosetup -p1
 
+%if %{without poetry}
+# avoid poetry-core, use setuptools fallback
+sed -i 's/\[build-system\]/[ignore-this]/' pyproject.toml
+echo -e 'from setuptools import setup\nsetup(packages=["pam"], package_dir={"": "python-pam"})' > setup.py
+%endif
+
 # https://github.com/FirefighterBlu3/python-pam/issues/142
 # Remove reimplementation of the footgun
 rm -f python-pam/pam/pam.py
@@ -45,6 +54,9 @@ rm -f python-pam/pam/pam.py
 %license LICENSE
 
 %changelog
+* Wed Nov 04 2026 Yaakov Selkowitz <yselkowi@redhat.com> - 2.1.1-2
+- Avoid poetry-core build dependency on RHEL
+
 * Sun Nov 01 2026 Juan Orti Alcaine <jortialc@redhat.com> - 2.1.1-1
 - Version 2.1.1 (#2535813)
 

                 reply	other threads:[~2026-11-05 16:06 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=179389478362.1.17561645574845092418.rpms-python-pam-62e87aacc4fe@fedoraproject.org \
    --to=yselkowi@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