diff --git a/icingaweb2_php-fpm.spec b/icingaweb2_php-fpm.spec index 6a1d57abc..905ef4e0f 100644 --- a/icingaweb2_php-fpm.spec +++ b/icingaweb2_php-fpm.spec @@ -179,6 +179,9 @@ Icinga Web 2 vendor library Zend %prep %setup -q +%clean +rm -rf %{buildroot} + %build %install @@ -226,9 +229,6 @@ fi %endif exit 0 -%clean -rm -rf %{buildroot} - %files %defattr(-,root,root) %{basedir}/application/controllers @@ -249,6 +249,14 @@ rm -rf %{buildroot} %{docsdir} %docdir %{docsdir} +%post +%if 0%{?suse_version} +if ! apache2ctl -M 2>/dev/null | grep -q rewrite_module; then + a2enmod rewrite >/dev/null +fi +%endif +exit 0 + %pre common if ! getent group %{icingaweb_group} >/dev/null; then