]> git.pld-linux.org Git - packages/apache1-mod_video.git/commitdiff
- use %service
authorElan Ruusamäe <glen@pld-linux.org>
Fri, 14 Apr 2006 17:15:51 +0000 (17:15 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    apache1-mod_video.spec -> 1.26

apache1-mod_video.spec

index de9a6b0dab41a98ee9dc07c0140a192db9a2cb23..cab161b0d3e1a3158225b99708bd944671b00ad3 100644 (file)
@@ -15,10 +15,11 @@ BuildRequires:      %{apxs}
 BuildRequires: apache1-devel >= 1.3.33-2
 BuildRequires: libjpeg-devel
 BuildRequires: libpng-devel
+BuildRequires: rpmbuild(macros) >= 1.268
 BuildRequires: zlib-devel
 Requires(triggerpostun):       %{apxs}
 Requires:      apache1 >= 1.3.33-2
-Obsoletes:     apache-mod_%{mod_name} <= 0.1.0
+Obsoletes:     apache-mod_video <= 0.1.0
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %define                _pkglibdir      %(%{apxs} -q LIBEXECDIR 2>/dev/null)
@@ -54,15 +55,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
 
 %triggerpostun -- apache1-mod_%{mod_name} < 0.1.0-1.1
This page took 0.064491 seconds and 4 git commands to generate.