diff --git a/ansible.spec b/ansible.spec index da425e8..4ad6119 100644 --- a/ansible.spec +++ b/ansible.spec @@ -37,7 +37,7 @@ Recommends: python-paramiko %else Requires: python-paramiko %endif -%if 0%{?suse_version} && 0%{?suse_version} <= 1110 +%if 0%{?suse_version} <= 1110 %{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} %else BuildArch: noarch @@ -46,7 +46,7 @@ BuildArch: noarch # # RHEL # -%if ( 0%{?rhel} && 0%{?rhel} <= 5 ) || ( 0%{?rhel_version} && 0%{?rhel_version} <= 505 ) +%if 0%{?rhel} <= 5 || 0%{?rhel_version} <= 505 #BuildRequires: python26-devel BuildRequires: python2-devel Requires: python26-PyYAML @@ -85,7 +85,7 @@ Requires: %{name} = %{version} # # RHEL # -%if ( 0%{?rhel} && 0%{?rhel} <= 5 ) || ( 0%{?rhel_version} && 0%{?rhel_version} <= 505 ) +%if 0%{?rhel} <= 5 || 0%{?rhel_version} <= 505 Requires: python26-keyczar Requires: python26-zmq #