Added a conditional around with_python3 to support el6.

(cherry picked from commit c3d579bbf6)
This commit is contained in:
Ralph Bean 2012-04-18 14:25:40 -04:00 committed by Michel Alexandre Salim
parent 7ec06645b1
commit 26b359d213
1 changed files with 5 additions and 0 deletions

View File

@ -1,4 +1,9 @@
%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