Add missing php extension requirements

This commit is contained in:
Johannes Meyer 2021-07-20 14:03:21 +02:00
parent a2a5269194
commit cff7d8950e

View File

@ -13,10 +13,35 @@ URL: https://icinga.com
Source0: https://github.com/Icinga/%{module_name}/archive/v%{version}.tar.gz Source0: https://github.com/Icinga/%{module_name}/archive/v%{version}.tar.gz
BuildArch: noarch 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/ipl %global basedir %{_datadir}/icinga-php/ipl
Requires: icinga-php-common Requires: icinga-php-common
# php extension requirements
Requires: %{php}-intl
%{?rhel:Requires: %{php}-pdo}
%{?suse_version:Requires: %{php}-gettext %{php}-json %{php}-openssl}
%if 0%{?rhel} >= 8 || 0%{?fedora} >= 30
Requires: %{php}-json
%endif
%description %description
This project bundles all Icinga PHP libraries into one This project bundles all Icinga PHP libraries into one
piece and can be integrated as library into Icinga Web 2. piece and can be integrated as library into Icinga Web 2.