[python-psutil/el6] Added a conditional around with_python3 to support el6.
Ralph Bean
ralph at fedoraproject.org
Thu May 3 14:07:22 UTC 2012
commit c3d579bbf62661b944e5dac0db8f84749ae39ae3
Author: Ralph Bean <rbean at redhat.com>
Date: Wed Apr 18 14:25:40 2012 -0400
Added a conditional around with_python3 to support el6.
python-psutil.spec | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)
---
diff --git a/python-psutil.spec b/python-psutil.spec
index 220f7d3..3a7e9ee 100644
--- a/python-psutil.spec
+++ b/python-psutil.spec
@@ -1,4 +1,10 @@
+
+%if 0%{?fedora} > 12 || 0%{?rhel} > 6
%global with_python3 1
+%else
+%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print (get_python_lib())")}
+%endif
+
%global short_name psutil
# Filter Python modules from Provides
@@ -9,7 +15,7 @@
Name: python-psutil
Version: 0.4.1
-Release: 2%{?dist}
+Release: 3%{?dist}
Summary: A process utilities module for Python
Group: Development/Languages
@@ -104,6 +110,9 @@ popd
%changelog
+* Wed Apr 18 2012 Ralph Bean <rbean at redhat.com> - 0.4.1-3
+- Added a conditional around with_python3 to support el6.
+
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.4.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
More information about the scm-commits
mailing list