public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-pam] rawhide: Avoid poetry-core build dependency on RHEL
@ 2026-11-05 16:06 Yaakov Selkowitz
0 siblings, 0 replies; only message in thread
From: Yaakov Selkowitz @ 2026-11-05 16:06 UTC (permalink / raw)
To: git-commits
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)
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-05 16:06 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-05 16:06 [rpms/python-pam] rawhide: Avoid poetry-core build dependency on RHEL Yaakov Selkowitz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox