From edc59055303b2608444ac8cadfdd391ecbaacda1a4d0a75363c2a59b9cac5037 Mon Sep 17 00:00:00 2001 From: Petr Gajdos Date: Fri, 18 Sep 2015 11:51:55 +0000 Subject: [PATCH 1/2] 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 From 70673e661980f4156632dd54654273e8bea6496727ea2dc7e091bc19ab0c0183 Mon Sep 17 00:00:00 2001 From: Kristyna Streitova Date: Fri, 24 Mar 2017 09:57:51 +0000 Subject: [PATCH 2/2] Accepting request 482327 from home:kstreitova:branches:Apache:Modules - cleanup with spec-cleaner OBS-URL: https://build.opensuse.org/request/show/482327 OBS-URL: https://build.opensuse.org/package/show/Apache:Modules/apache2-mod_security2?expand=0&rev=71 --- apache2-mod_security2.changes | 5 +++++ apache2-mod_security2.spec | 8 ++++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/apache2-mod_security2.changes b/apache2-mod_security2.changes index 6a6b689..3d73982 100644 --- a/apache2-mod_security2.changes +++ b/apache2-mod_security2.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Mar 23 15:14:11 UTC 2017 - kstreitova@suse.com + +- cleanup with spec-cleaner + ------------------------------------------------------------------- Wed Jul 29 06:42:19 UTC 2015 - pgajdos@suse.com diff --git a/apache2-mod_security2.spec b/apache2-mod_security2.spec index 2cac0a0..285b4fe 100644 --- a/apache2-mod_security2.spec +++ b/apache2-mod_security2.spec @@ -1,7 +1,7 @@ # # spec file for package apache2-mod_security2 # -# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -121,9 +121,9 @@ mv %{buildroot}/%{usrsharedir}/rules/modsecurity_crs_10_setup.conf.example \ 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 +sed -i 's:%{_localstatedir}/log/apache2:/tmp:' %{apache_test_module_dir}/%{modname}-test.conf +sed -i 's:%{_prefix}/share:%{buildroot}%{_prefix}/share:' %{apache_test_module_dir}/%{modname}-test.conf +sed -i 's:%{_sysconfdir}/apache2:%{buildroot}%{_sysconfdir}/apache2:' %{apache_test_module_dir}/%{modname}-test.conf %apache_test_module_load -m security2 -i %{modname}-test.conf set -x