diff --git a/icingaweb2-module-reactbundle.spec b/icingaweb2-module-reactbundle.spec index 78985047ef06ba6543063f243adb17f52f49faad..e717378cd600dd34b693776fcb1812a898652e65 100644 --- a/icingaweb2-module-reactbundle.spec +++ b/icingaweb2-module-reactbundle.spec @@ -18,9 +18,37 @@ BuildArch: noarch %global basedir %{_datadir}/icingaweb2/modules/%{module_name} +%if 0%{?fedora} || 0%{?rhel} || 0%{?amzn} +%if 0%{?rhel} == 7 +%define php_scl rh-php71 +%endif # rhel 7 +%if 0%{?rhel} == 6 +%define php_scl rh-php70 +%endif # rhel 6 +%endif # rhel os_family + +%if 0%{?php_scl:1} +%define php_scl_prefix %{php_scl}- +%endif + +%define php %{?php_scl_prefix}php + Requires: icingaweb2 >= %{icingaweb_min_version} +Requires: icingacli >= %{icingaweb_min_version} Requires: php-Icinga >= %{icingaweb_min_version} -# TODO: other dependencies + +%if 0%{?suse_version} +Requires: %{php}-pcntl +Requires: %{php}-posix +Requires: %{php}-soap +Requires: %{php}-sockets +%else # suse_version +# RedHat +Requires: %{php}-cli +Requires: %{php}-process +Requires: %{php}-pcntl +Requires: %{php}-soap +%endif # suse_version %description This module provides React as a third-party library for other Icinga Web