From 10e790ac8186220568e6517d7b49558badb3faf4 Mon Sep 17 00:00:00 2001 From: Ralph Bean Date: Tue, 21 Jan 2014 10:14:52 -0500 Subject: [PATCH] Compat macros for el6. --- python-oauthlib.spec | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) 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 - 0.6.0-3 +- Compat macros for el6. + * Fri Nov 01 2013 Ralph Bean - 0.6.0-2 - Modernized python2 rpmmacros.