Adding Python macros for EPEL 6
This commit is contained in:
parent
384c14733c
commit
cd4eeba9f1
1 changed files with 6 additions and 0 deletions
|
|
@ -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}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue