Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/bareos/bareos-webui.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrank Bergkemper <frank.bergkemper@bareos.com>2017-08-07 13:03:55 +0300
committerFrank Bergkemper <frank.bergkemper@bareos.com>2017-08-07 13:11:48 +0300
commitc8521c09531b8116ff913453ef1d2fea068a942b (patch)
treea86e1a80edf4f615421179db1a0345207465aa70
parent399c35c63210424dc377891faf0cd3d752338aea (diff)
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)
-rw-r--r--packaging/obs/bareos-webui.spec4
1 files changed, 2 insertions, 2 deletions
diff --git a/packaging/obs/bareos-webui.spec b/packaging/obs/bareos-webui.spec
index 42726d8..3312b3b 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