From c8521c09531b8116ff913453ef1d2fea068a942b Mon Sep 17 00:00:00 2001 From: Frank Bergkemper Date: Mon, 7 Aug 2017 12:03:55 +0200 Subject: [PATCH] Fix to bugreport #840 To allow end users to choose the MPM way of running php7 the package should only require httpd (work also for RHEL related) and one php engine. It can recommend mod_php but this will not last long in the future. Note: SUSE's RPM supports the Recommends tag, but it was not available upstream until very recently. As a result, packages with Recommends will fail to build for OBS targets Fedora_18, RHEL_6 and CentOS_6, for example. A workaround is to exclude the Recommends tag from non-SUSE targets. Alternatively the Recommends tag could become a Requires tag so that a recommended package (foo) gets installed in any case on systems that do not support RPM Recommends. Fixes #840: bareos-webui openSUSE RPM has hard require to apache2_mod-php (5 or 7) --- packaging/obs/bareos-webui.spec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packaging/obs/bareos-webui.spec b/packaging/obs/bareos-webui.spec index 42726d8b..3312b3b0 100644 --- a/packaging/obs/bareos-webui.spec +++ b/packaging/obs/bareos-webui.spec @@ -62,8 +62,8 @@ BuildRequires: mod_php_any %define _apache_conf_dir /etc/apache2/conf.d/ %define daemon_user wwwrun %define daemon_group www -Requires: apache -Requires: mod_php_any +Requires: apache +Recommends: mod_php_any %else #if 0#{?fedora} || 0#{?rhel_version} || 0#{?centos_version} BuildRequires: httpd