Adding Python macros for EPEL 6

This commit is contained in:
Dave Johansen 2015-06-14 19:38:30 -07:00
commit cd4eeba9f1

View file

@ -2,6 +2,12 @@
%global modname OWSLib
%global with_python3 0%{?fedora}
%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-%{modname}
Version: 0.9.0
Release: 1%{?dist}