X-Git-Url: http://git.pld-linux.org/gitweb.cgi?a=blobdiff_plain;f=apache1-mod_chroot.spec;h=96d60350cbf8d84e4043670f78728432ebab70da;hb=666d609f62a3ee5763c212dc20cbe979d29e244c;hp=6896448e1f874c076ae84610fba7a0cf31122b53;hpb=5b1a01251603da64fdc4bc3c79b863f6247f092b;p=packages%2Fapache1-mod_chroot.git diff --git a/apache1-mod_chroot.spec b/apache1-mod_chroot.spec index 6896448..96d6035 100644 --- a/apache1-mod_chroot.spec +++ b/apache1-mod_chroot.spec @@ -12,6 +12,7 @@ Source0: http://core.segfault.pl/~hobbit/mod_chroot/dist/mod_chroot-%{version}.t URL: http://core.segfault.pl/~hobbit/mod_chroot/ BuildRequires: %{apxs} BuildRequires: apache1-devel >= 1.3.33-2 +BuildRequires: rpmbuild(macros) >= 1.268 Requires: apache1 >= 1.3.33-2 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) @@ -47,15 +48,11 @@ echo 'LoadModule %{mod_name}_module modules/mod_%{mod_name}.so' > \ rm -rf $RPM_BUILD_ROOT %post -if [ -f /var/lock/subsys/apache ]; then - /etc/rc.d/init.d/apache restart 1>&2 -fi +%service -q apache restart %postun if [ "$1" = "0" ]; then - if [ -f /var/lock/subsys/apache ]; then - /etc/rc.d/init.d/apache restart 1>&2 - fi + %service -q apache restart fi %files