[python-django-sahara/f20] adding backward compatibility for __python2 macro
Michael McCune
mimccune at fedoraproject.org
Mon Apr 21 17:54:29 UTC 2014
commit 72f912e134fb2f4b91d00e79e1bdf76395a0e76c
Author: Michael McCune <mimccune at redhat.com>
Date: Mon Apr 21 13:44:42 2014 -0400
adding backward compatibility for __python2 macro
python-django-sahara.spec | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)
---
diff --git a/python-django-sahara.spec b/python-django-sahara.spec
index a4fe762..b20f48d 100644
--- a/python-django-sahara.spec
+++ b/python-django-sahara.spec
@@ -1,6 +1,12 @@
+%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-django-sahara
Version: 2014.1.rc1
-Release: 1%{?dist}
+Release: 2%{?dist}
Provides: python-django-savanna = %{version}-%{release}
Obsoletes: python-django-savanna <= 2014.1.b3-3
Summary: Sahara project dashboard
@@ -46,6 +52,9 @@ rm -f tools/pip-requires
%changelog
+* Mon Apr 21 2014 Michael McCune <mimccune at redhat> - 2014.1.rc1-2
+- Adding backward compatibility for __python2 macro
+
* Mon Apr 07 2014 Michael McCune <mimccune at redhat> - 2014.1.rc1-1
- 2014.1.rc1 release and rename from python-django-savanna
More information about the scm-commits
mailing list