From d4f75bc12cbc7301c64261caa4ea4850d610f2e7 Mon Sep 17 00:00:00 2001 From: Ivan Lezhnjov IV Date: Tue, 23 Jul 2013 10:45:08 -0700 Subject: [PATCH] Proper support for RHEL/CentOS 5 (the only thing it needs now is to call python26) --- packaging/rpm/ansible.spec | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packaging/rpm/ansible.spec b/packaging/rpm/ansible.spec index 99a371364b7..0da31790b99 100644 --- a/packaging/rpm/ansible.spec +++ b/packaging/rpm/ansible.spec @@ -1,3 +1,7 @@ +%if 0%{?rhel} == 5 +%define __python /usr/bin/python26 +%endif + %if 0%{?rhel} && 0%{?rhel} <= 5 %{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")} BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot