From 708eb1a37cde555affbc9949353c4a9e27de7042e84a5cd8a57a53e6844c6c98 Mon Sep 17 00:00:00 2001
From: Eric Schirra <ecsos@schirra.net>
Date: Thu, 17 Sep 2015 09:49:14 +0000
Subject: [PATCH 1/2] Accepting request 331658 from home:ecsos:server

enable required apache modules in spec

OBS-URL: https://build.opensuse.org/request/show/331658
OBS-URL: https://build.opensuse.org/package/show/server:php:applications/phpMyAdmin?expand=0&rev=232
---
 phpMyAdmin.changes | 5 +++++
 phpMyAdmin.spec    | 5 +++++
 2 files changed, 10 insertions(+)

diff --git a/phpMyAdmin.changes b/phpMyAdmin.changes
index b561420..c096101 100644
--- a/phpMyAdmin.changes
+++ b/phpMyAdmin.changes
@@ -1,3 +1,8 @@
+-------------------------------------------------------------------
+Thu Sep 17 09:41:30 UTC 2015 - ecsos@opensuse.org
+
+- enable required apache modules in spec at install
+
 -------------------------------------------------------------------
 Fri Sep 11 09:55:59 UTC 2015 - ecsos@opensuse.org
 
diff --git a/phpMyAdmin.spec b/phpMyAdmin.spec
index d65e1f0..35cc17e 100644
--- a/phpMyAdmin.spec
+++ b/phpMyAdmin.spec
@@ -164,6 +164,11 @@ popd
 # set PmaAbsoluteUri ### generate blowfish secret
 sed -i -e "s,@FQDN@,$(cat %{_sysconfdir}/HOSTNAME)," \
  -e "s/\\\$cfg\['blowfish_secret'\] = ''/\$cfg['blowfish_secret'] = '`pwgen -s -1 46`'/" %{pma_config}
+# enable required apache modules
+if [ -x /usr/sbin/a2enmod ]; then
+  a2enmod -q php5 || a2enmod php5
+  a2enmod -q version || a2enmod version
+fi
 %if 0%{?suse_version} < 1310
 %restart_on_update apache2
 #%%else

From 11889a169ca5e7b23a73cf1902de94f97b2ad17f7da6ebb264d9432a832f960b Mon Sep 17 00:00:00 2001
From: Eric Schirra <ecsos@schirra.net>
Date: Thu, 17 Sep 2015 09:53:20 +0000
Subject: [PATCH 2/2] Accepting request 331662 from home:ecsos:server

enable required apache modules in spec, add boo#945999

OBS-URL: https://build.opensuse.org/request/show/331662
OBS-URL: https://build.opensuse.org/package/show/server:php:applications/phpMyAdmin?expand=0&rev=233
---
 phpMyAdmin.changes | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/phpMyAdmin.changes b/phpMyAdmin.changes
index c096101..038f6d7 100644
--- a/phpMyAdmin.changes
+++ b/phpMyAdmin.changes
@@ -1,7 +1,7 @@
 -------------------------------------------------------------------
 Thu Sep 17 09:41:30 UTC 2015 - ecsos@opensuse.org
 
-- enable required apache modules in spec at install
+- boo#945999 enable required apache modules in spec at install
 
 -------------------------------------------------------------------
 Fri Sep 11 09:55:59 UTC 2015 - ecsos@opensuse.org