simplify distribution macro lines
OBS-URL: https://build.opensuse.org/package/show/systemsmanagement/ansible?expand=0&rev=7
This commit is contained in:
parent
dbe44d5188
commit
3334dc3cfa
@ -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
|
||||
#
|
||||
|
Loading…
Reference in New Issue
Block a user