]> git.pld-linux.org Git - packages/WebChess.git/blobdiff - WebChess.spec
- use %service
[packages/WebChess.git] / WebChess.spec
index f42759f972e24c7faf04b0ae1bd133589a3fc4f0..8edbf2471cf7d5cc16c1d15f4ad64ec2a8b09078 100644 (file)
@@ -14,6 +14,7 @@ Requires:     php
 Requires:      php-mysql
 Requires:      php-pcre
 Requires:      webserver
+BuildRequires: rpmbuild(macros) >= 1.268
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -57,9 +58,7 @@ if [ -f /etc/httpd/httpd.conf ] && ! grep -q "^Include.*%{name}.conf" /etc/httpd
 elif [ -d /etc/httpd/httpd.conf ]; then
        ln -sf /etc/httpd/%{name}.conf /etc/httpd/httpd.conf/99_%{name}.conf
 fi
-if [ -f /var/lock/subsys/httpd ]; then
-       /usr/sbin/apachectl restart 1>&2
-fi
+%service -q httpd reload
 
 %preun
 if [ "$1" = "0" ]; then
@@ -70,9 +69,7 @@ if [ "$1" = "0" ]; then
                grep -v "^Include.*%{name}.conf" /etc/httpd/httpd.conf > \
                        /etc/httpd/httpd.conf.tmp
                mv -f /etc/httpd/httpd.conf.tmp /etc/httpd/httpd.conf
-               if [ -f /var/lock/subsys/httpd ]; then
-                       /usr/sbin/apachectl restart 1>&2
-               fi
+               %service -q httpd reload
        fi
 fi
 
This page took 0.084819 seconds and 4 git commands to generate.