From edc59055303b2608444ac8cadfdd391ecbaacda1a4d0a75363c2a59b9cac5037 Mon Sep 17 00:00:00 2001 From: Petr Gajdos Date: Fri, 18 Sep 2015 11:51:55 +0000 Subject: [PATCH] Accepting request 331626 from home:pgajdos:apache2 OBS-URL: https://build.opensuse.org/request/show/331626 OBS-URL: https://build.opensuse.org/package/show/Apache:Modules/apache2-mod_security2?expand=0&rev=70 --- apache2-mod_security2.spec | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/apache2-mod_security2.spec b/apache2-mod_security2.spec index f263e09..2cac0a0 100644 --- a/apache2-mod_security2.spec +++ b/apache2-mod_security2.spec @@ -117,6 +117,16 @@ rm -f %{buildroot}/%{usrsharedir}/rules/INSTALL %{buildroot}/%{usrsharedir}/rule mv %{buildroot}/%{usrsharedir}/rules/modsecurity_crs_10_setup.conf.example \ %{buildroot}/%{usrsharedir}/rules/modsecurity_crs_10_setup.conf +%check +set +x +mkdir -p %{apache_test_module_dir} +cp %{SOURCE2} %{apache_test_module_dir}/%{modname}-test.conf +sed -i 's:/var/log/apache2:/tmp:' %{apache_test_module_dir}/%{modname}-test.conf +sed -i 's:/usr/share:%{buildroot}/usr/share:' %{apache_test_module_dir}/%{modname}-test.conf +sed -i 's:/etc/apache2:%{buildroot}/etc/apache2:' %{apache_test_module_dir}/%{modname}-test.conf +%apache_test_module_load -m security2 -i %{modname}-test.conf +set -x + %files %defattr(-, root, root, 0755) %{apache_libexecdir}/%{modname}.so