]> git.pld-linux.org Git - packages/apache-mod_vhs.git/commitdiff
- use %service
authorElan Ruusamäe <glen@pld-linux.org>
Mon, 30 Jan 2006 17:39:10 +0000 (17:39 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    apache-mod_vhs.spec -> 1.6

apache-mod_vhs.spec

index 8f03cdf848d6b40e103e4c8186bb1cce48026405..03b244aad85effa0a8734b74925b680130f199f7 100644 (file)
@@ -10,9 +10,10 @@ Group:               Networking/Daemons
 Source0:       http://www.oav.net/projects/mod_vhs/mod_vhs-%{version}.tar.gz
 # Source0-md5: 0ff70c7298e8639a00b2b0c1d90caf99
 URL:           http://www.oav.net/projects/mod_vhs/
-BuildRequires: apache-devel >= 2.0.0
 BuildRequires: %{apxs}
+BuildRequires: apache-devel >= 2.0.0
 BuildRequires: libhome-devel
+BuildRequires: rpmbuild(macros) >= 1.268
 Requires:      apache(modules-api) = %apache_modules_api
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -49,15 +50,11 @@ echo 'LoadModule %{mod_name}_module modules/mod_%{mod_name}.so' > \
 rm -rf $RPM_BUILD_ROOT
 
 %post
-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
 
 %files
This page took 0.097619 seconds and 4 git commands to generate.