BuildRequires: apache-devel >= 2.0
BuildRequires: libxslt-devel
BuildRequires: pcre-devel
+BuildRequires: rpmbuild(macros) >= 1.268
Requires(post): /sbin/ldconfig
Requires: apache(modules-api) = %apache_modules_api
Conflicts: apache-mod_xslt
%post
/sbin/ldconfig
-if [ -f /var/lock/subsys/httpd ]; then
- /etc/rc.d/init.d/httpd restart 1>&2
-fi
+%service -q httpd restart
%preun
if [ "$1" = "0" ]; then
- if [ -f /var/lock/subsys/httpd ]; then
- /etc/rc.d/init.d/httpd restart 1>&2
- fi
+ %service -q httpd restart
fi
%postun -p /sbin/ldconfig