[python-oslo-sphinx/f22] Fix Build on EL6
Haïkel Guémar
hguemar at fedoraproject.org
Wed Mar 4 13:50:46 UTC 2015
commit 6d9a9eed26e3ee5b73969c210653d7c8fa4c0999
Author: Haikel Guemar <hguemar at fedoraproject.org>
Date: Wed Mar 4 14:50:35 2015 +0100
Fix Build on EL6
python-oslo-sphinx.spec | 5 +++++
1 file changed, 5 insertions(+)
---
diff --git a/python-oslo-sphinx.spec b/python-oslo-sphinx.spec
index fd32035..1f78c1b 100644
--- a/python-oslo-sphinx.spec
+++ b/python-oslo-sphinx.spec
@@ -1,3 +1,8 @@
+%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 oslosphinx
Name: python-oslo-sphinx
More information about the scm-commits
mailing list