[python-oauthlib] Compat macros for el6.

Ralph Bean ralph at fedoraproject.org
Tue Jan 21 15:14:43 UTC 2014


commit 10e790ac8186220568e6517d7b49558badb3faf4
Author: Ralph Bean <rbean at redhat.com>
Date:   Tue Jan 21 10:14:52 2014 -0500

    Compat macros for el6.

 python-oauthlib.spec |   12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)
---
diff --git a/python-oauthlib.spec b/python-oauthlib.spec
index d8ee4b3..50c6f53 100644
--- a/python-oauthlib.spec
+++ b/python-oauthlib.spec
@@ -2,11 +2,18 @@
 %global with_python3 1
 %endif
 
+%if 0%{?rhel} && 0%{?rhel} <= 7
+%{!?__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
+
+
 %global modname oauthlib
 
 Name:               python-oauthlib
 Version:            0.6.0
-Release:            2%{?dist}
+Release:            3%{?dist}
 Summary:            An implementation of the OAuth request-signing logic
 
 Group:              Development/Libraries
@@ -107,6 +114,9 @@ popd
 %endif
 
 %changelog
+* Tue Jan 21 2014 Ralph Bean <rbean at redhat.com> - 0.6.0-3
+- Compat macros for el6.
+
 * Fri Nov 01 2013 Ralph Bean <rbean at redhat.com> - 0.6.0-2
 - Modernized python2 rpmmacros.
 


More information about the scm-commits mailing list