Commit cff7d895 authored by Johannes Meyer's avatar Johannes Meyer
Browse files

Add missing php extension requirements

parent a2a52691
Pipeline #19236 passed with stages
in 8 minutes and 19 seconds
......@@ -13,10 +13,35 @@ 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/ipl
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
This project bundles all Icinga PHP libraries into one
piece and can be integrated as library into Icinga Web 2.
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment