diff --git a/ansible.spec b/ansible.spec index 4ad6119..978090a 100644 --- a/ansible.spec +++ b/ansible.spec @@ -46,7 +46,7 @@ BuildArch: noarch # # RHEL # -%if 0%{?rhel} <= 5 || 0%{?rhel_version} <= 505 +%if ( 0%{?rhel} && 0%{?rhel} <= 5 ) || ( 0%{?rhel_version} && 0%{?rhel_version} <= 505 ) #BuildRequires: python26-devel BuildRequires: python2-devel Requires: python26-PyYAML @@ -85,7 +85,7 @@ Requires: %{name} = %{version} # # RHEL # -%if 0%{?rhel} <= 5 || 0%{?rhel_version} <= 505 +%if ( 0%{?rhel} && 0%{?rhel} <= 5 ) || ( 0%{?rhel_version} && 0%{?rhel_version} <= 505 ) Requires: python26-keyczar Requires: python26-zmq #