Author: glen                         Date: Fri Feb 24 15:26:10 2006 GMT
Module: SPECS                         Tag: AC-branch
---- Log message:
- use %service

---- Files affected:
SPECS:
   dbus.spec (1.111.2.5 -> 1.111.2.6) 

---- Diffs:

================================================================
Index: SPECS/dbus.spec
diff -u SPECS/dbus.spec:1.111.2.5 SPECS/dbus.spec:1.111.2.6
--- SPECS/dbus.spec:1.111.2.5   Fri Feb 24 16:24:49 2006
+++ SPECS/dbus.spec     Fri Feb 24 16:26:05 2006
@@ -63,7 +63,7 @@
 BuildRequires: python-devel >= 2.2
 %endif
 %{?with_qt:BuildRequires:      qt-devel >= 6:%{qt_version}}
-BuildRequires: rpmbuild(macros) >= 1.202
+BuildRequires: rpmbuild(macros) >= 1.268
 BuildRequires: sed >= 4.0
 BuildRequires: xmlto
 Requires(post,postun): /sbin/ldconfig
@@ -392,17 +392,11 @@
 
 %post
 /sbin/chkconfig --add messagebus
-if [ -f /var/lock/subsys/messagebus ]; then
-       /etc/rc.d/init.d/messagebus restart >&2
-else
-       echo "Run \"/etc/rc.d/init.d/messagebus start\" to start D-Bus daemon."
-fi
+%service messagebus restart "D-Bus daemon"
 
 %preun
 if [ "$1" = "0" ];then
-       if [ -f /var/lock/subsys/messagebus ]; then
-               /etc/rc.d/init.d/messagebus stop >&2
-       fi
+       %service messagebus stop
        /sbin/chkconfig --del messagebus
 fi
 
@@ -557,6 +551,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.111.2.6  2006/02/24 15:26:05  glen
+- use %service
+
 Revision 1.111.2.5  2006/02/24 15:24:49  glen
 - expat epoches
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/dbus.spec?r1=1.111.2.5&r2=1.111.2.6&f=u

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to