Accepting request 263657 from home:bmanojlovic:branches:systemsmanagement

- enable build for older RHEL and SLE distributions

OBS-URL: https://build.opensuse.org/request/show/263657
OBS-URL: https://build.opensuse.org/package/show/systemsmanagement/ansible?expand=0&rev=35
This commit is contained in:
Boris Manojlovic 2014-12-01 18:35:23 +00:00 committed by Git OBS Bridge
parent f899ee4726
commit b4cc875d8c
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Dec 1 18:28:18 UTC 2014 - boris@steki.net
- enable build for older RHEL and SLE distributions
-------------------------------------------------------------------
Thu Nov 27 11:17:53 UTC 2014 - boris@steki.net

View File

@ -49,7 +49,7 @@ Recommends: askpass
Requires: python-crypto2.6
%endif
# RHEL > 5
%if 0%{?rhel} && 0%{?rhel} > 5
%if 0%{?rhel} && 0%{?rhel} >= 5
BuildRequires: python-setuptools
BuildRequires: python2-devel
Requires: PyYAML
@ -62,7 +62,7 @@ Requires: python-setuptools
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
%if 0%{?suse_version} && 0%{?suse_version} <= 1110 || 0%{?rhel} == 5
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%else
BuildArch: noarch