]> git.pld-linux.org Git - packages/bugzilla.git/commitdiff
- use %service
authorElan Ruusamäe <glen@pld-linux.org>
Sun, 16 Apr 2006 20:52:33 +0000 (20:52 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    bugzilla.spec -> 1.19

bugzilla.spec

index 7336ef59c99197aa0b4bb228cd968b4dc3b56d29..646ce599da864cca6e31ea9c432e5cd533906345 100644 (file)
@@ -15,6 +15,7 @@ Source1:      %{name}.conf
 Patch0:                %{name}-httpd_user.patch
 Patch1:                %{name}-chdir.patch
 URL:           http://www.bugzilla.org/
+BuildRequires: rpmbuild(macros) >= 1.268
 Requires:      mysql >= 3.23.41
 Requires:      perl-DBD-mysql
 Requires:      perl-DBI >= 1.36
@@ -64,33 +65,25 @@ rm -rf $RPM_BUILD_ROOT
 if [ -f /etc/httpd/%{name}.conf.rpmsave ]; then
        cp -f %{_sysconfdir}/apache.conf{,.rpmnew}
        mv -f /etc/httpd/%{name}.conf.rpmsave %{_sysconfdir}/apache.conf
-       if [ -f /var/lock/subsys/httpd ]; then
-               /etc/rc.d/init.d/httpd reload 1>&2
-       fi
+       %service -q httpd reload
 fi
 
 # nuke very-old config location (this mostly for Ra)
 if [ ! -d /etc/httpd/httpd.conf ]; then
        sed -i -e "/^Include.*%{name}.conf/d" /etc/httpd/httpd.conf
-       if [ -f /var/lock/subsys/httpd ]; then
-               /etc/rc.d/init.d/httpd reload 1>&2
-       fi
+       %service -q httpd reload
 fi
 
 # place new config location, as trigger puts config only on first install, do it here.
 # apache1
 if [ -d /etc/apache/conf.d ]; then
        ln -sf %{_sysconfdir}/apache.conf /etc/apache/conf.d/99_%{name}.conf
-       if [ -f /var/lock/subsys/apache ]; then
-               /etc/rc.d/init.d/apache reload 1>&2
-       fi
+       %service -q apache reload
 fi
 # apache2
 if [ -d /etc/httpd/httpd.conf ]; then
        ln -sf %{_sysconfdir}/apache.conf /etc/httpd/httpd.conf/99_%{name}.conf
-       if [ -f /var/lock/subsys/httpd ]; then
-               /etc/rc.d/init.d/httpd reload 1>&2
-       fi
+       %service -q httpd reload
 fi
 
 %triggerin -- apache1 >= 1.3.33-2
This page took 0.098331 seconds and 4 git commands to generate.