[python-dulwich/el6] readd def.
Fabian Affolter
fab at fedoraproject.org
Mon Mar 23 22:25:29 UTC 2015
commit 42442bb6e47f0e876d2aa2790a5c4c0bd8de1067
Author: Fabian Affolter <fabian at affolter-engineering.ch>
Date: Mon Mar 23 23:25:14 2015 +0100
readd def.
python-dulwich.spec | 6 ++++++
1 file changed, 6 insertions(+)
---
diff --git a/python-dulwich.spec b/python-dulwich.spec
index 333821a..0aef6dd 100644
--- a/python-dulwich.spec
+++ b/python-dulwich.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
+
%global srcname dulwich
%filter_provides_in %{python_sitearch}
More information about the scm-commits
mailing list