mirror of
https://git.icinga.com/packaging/rpm-icinga-php-thirdparty.git
synced 2025-07-22 13:34:24 +02:00
Add missing php extension requirements
(cherry picked from commit 9db220e54a203246fcf0c728d850accee82b66a6)
This commit is contained in:
parent
f0e9c004ba
commit
2aae27a64f
@ -13,10 +13,36 @@ URL: https://icinga.com
|
||||
Source0: https://github.com/Icinga/%{module_name}/archive/v%{version}.tar.gz
|
||||
BuildArch: noarch
|
||||
|
||||
# Define php runtime identifier
|
||||
%if 0%{?fedora} || 0%{?rhel} || 0%{?amzn}
|
||||
%if 0%{?rhel} == 7
|
||||
%define php_scl rh-php73
|
||||
%endif
|
||||
|
||||
%if 0%{?php_scl:1}
|
||||
%define php_scl_prefix %{php_scl}-
|
||||
%endif
|
||||
|
||||
%define php %{?php_scl_prefix}php
|
||||
%endif
|
||||
|
||||
%if 0%{?suse_version}
|
||||
%define php php
|
||||
%endif
|
||||
|
||||
%global basedir %{_datadir}/icinga-php/vendor
|
||||
|
||||
Requires: icinga-php-common
|
||||
|
||||
# php extension requirements
|
||||
Requires: %{php}-soap
|
||||
Requires: %{php}-sockets
|
||||
Requires: %{php}-curl
|
||||
%{?suse_version:Requires: %{php}-json}
|
||||
%if 0%{?rhel} >= 8 || 0%{?fedora} >= 30
|
||||
Requires: %{php}-json
|
||||
%endif
|
||||
|
||||
%description
|
||||
This package bundles all 3rd party PHP libraries
|
||||
used by Icinga Web products into one piece,
|
||||
|
Loading…
x
Reference in New Issue
Block a user