[python-pam] Add support for EPEL6

Juan Orti jorti at fedoraproject.org
Tue Aug 12 13:22:17 UTC 2014


commit b7f386a5e441e8b6e7859c445c38bd76bc26708c
Author: Juan Orti Alcaine <juan.orti at miceliux.com>
Date:   Tue Aug 12 15:22:16 2014 +0200

    Add support for EPEL6

 python-pam.spec |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)
---
diff --git a/python-pam.spec b/python-pam.spec
index a482c47..f513a66 100644
--- a/python-pam.spec
+++ b/python-pam.spec
@@ -1,6 +1,12 @@
+%if 0%{?rhel} && 0%{?rhel} <= 6
+%{!?__python2: %global __python2 /usr/bin/python2}
+%{!?python2_sitelib: %global python2_sitelib %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
+%{!?python2_sitearch: %global python2_sitearch %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
+%endif
+
 Name:           python-pam
 Version:        0.1.4
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        Pure Python interface to the Pluggable Authentication Modules system on Linux
 
 Group:          Development/Libraries
@@ -30,6 +36,9 @@ authenticate a given username / password against the PAM system on Linux.
 %{python2_sitelib}/pam-*.egg-info
 
 %changelog
+* Tue Aug 12 2014 Juan Orti Alcaine <jorti at fedoraproject.org> - 0.1.4-2
+- Add support for EPEL6.
+
 * Wed Jun 11 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.1.4-1
 - Bug #1104258 update to 0.1.4
 


More information about the scm-commits mailing list