Compat macros for el6.

This commit is contained in:
Ralph Bean 2014-01-21 10:14:52 -05:00
parent 7b15e92570
commit 10e790ac81

View File

@ -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@redhat.com> - 0.6.0-3
- Compat macros for el6.
* Fri Nov 01 2013 Ralph Bean <rbean@redhat.com> - 0.6.0-2
- Modernized python2 rpmmacros.