icingaweb2: Add conflicting dependency with PHP < 5.6.0
Only conflicts will prohibit an installation of older PHP. The dependency relation via mod_php_any >= x.x.x is not resolved with the actual required version...
This commit is contained in:
parent
5b38709e45
commit
6f429209dd
|
@ -48,6 +48,10 @@ Packager: Icinga Team <info@icinga.com>
|
|||
%define php_runtime mod_php_any
|
||||
%define php_common %{php}
|
||||
%define php_cli %{php}
|
||||
# conflict with older PHP on SLES and openSUSE
|
||||
Conflicts: php < %{php_version}
|
||||
Conflicts: php5 < %{php_version}
|
||||
Conflicts: php53
|
||||
%endif
|
||||
|
||||
%{?amzn:Requires(pre): shadow-utils}
|
||||
|
@ -120,6 +124,13 @@ Requires: %{name}-common = %{version}-%{release}
|
|||
Requires: php-Icinga = %{version}-%{release}
|
||||
Requires: bash-completion
|
||||
Requires: %{php_cli} >= %{php_version}
|
||||
%if 0%{?suse_version}
|
||||
# conflict with older PHP on SLES and openSUSE
|
||||
Conflicts: php < %{php_version}
|
||||
Conflicts: php5 < %{php_version}
|
||||
Conflicts: php53
|
||||
%endif
|
||||
|
||||
|
||||
%description -n icingacli
|
||||
Icinga CLI
|
||||
|
|
Loading…
Reference in New Issue