[python-saharaclient] adding macros to define __python2 on rhel6 and earlier
Michael McCune
mimccune at fedoraproject.org
Thu Apr 17 17:10:30 UTC 2014
commit e9d68c5864b9439523a59035b09d9bfad24f0712
Author: Michael McCune <mimccune at redhat.com>
Date: Thu Apr 17 12:52:58 2014 -0400
adding macros to define __python2 on rhel6 and earlier
python-saharaclient.spec | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/python-saharaclient.spec b/python-saharaclient.spec
index d0cd107..6516753 100644
--- a/python-saharaclient.spec
+++ b/python-saharaclient.spec
@@ -1,3 +1,9 @@
+%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-saharaclient
Version: 0.7.0
Release: 1%{?dist}
More information about the scm-commits
mailing list