[python-rfc3986/epel7] Fix build on EL6

Haïkel Guémar hguemar at fedoraproject.org
Wed Mar 11 11:29:06 UTC 2015


commit 94db4c768d9c5896183bcaebd40e22c5a72566cd
Author: Haikel Guemar <hguemar at fedoraproject.org>
Date:   Wed Mar 11 12:28:54 2015 +0100

    Fix build on EL6

 python-rfc3986.spec | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
---
diff --git a/python-rfc3986.spec b/python-rfc3986.spec
index a34dcad..84138e0 100644
--- a/python-rfc3986.spec
+++ b/python-rfc3986.spec
@@ -1,4 +1,9 @@
-# Created by pyp2rpm-1.1.0b
+%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
+
 %global pypi_name rfc3986
 
 Name:           python-%{pypi_name}


More information about the scm-commits mailing list