From cd4eeba9f1c8f38d579f6272f310b4a6c06feec5 Mon Sep 17 00:00:00 2001 From: Dave Johansen Date: Sun, 14 Jun 2015 19:38:30 -0700 Subject: [PATCH] Adding Python macros for EPEL 6 --- python-OWSLib.spec | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/python-OWSLib.spec b/python-OWSLib.spec index 3bcac9e..4cd0c1d 100644 --- a/python-OWSLib.spec +++ b/python-OWSLib.spec @@ -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}