SPECS: powersoftplus.spec - use %service
glen
glen at pld-linux.org
Fri Feb 8 22:49:57 CET 2008
Author: glen Date: Fri Feb 8 21:49:57 2008 GMT
Module: SPECS Tag: HEAD
---- Log message:
- use %service
---- Files affected:
SPECS:
powersoftplus.spec (1.23 -> 1.24)
---- Diffs:
================================================================
Index: SPECS/powersoftplus.spec
diff -u SPECS/powersoftplus.spec:1.23 SPECS/powersoftplus.spec:1.24
--- SPECS/powersoftplus.spec:1.23 Fri Feb 8 21:48:47 2008
+++ SPECS/powersoftplus.spec Fri Feb 8 22:49:52 2008
@@ -26,6 +26,7 @@
Patch3: %{name}-system-ftd.patch
Patch4: %{name}-nousb.patch
URL: http://www.ever.com.pl/pl/prod_psp.php
+BuildRequires: rpmbuild(macros) >= 1.268
BuildRequires: autoconf
BuildRequires: automake
%{?with_usb:BuildRequires: libftd2xx-devel >= 0.4.10}
@@ -158,17 +159,11 @@
%post
/sbin/chkconfig --add powersoftplus
-if [ -f /var/lock/subsys/powersoftplus ]; then
- /etc/rc.d/init.d/powersoftplus restart >&2
-else
- echo "Run \"/etc/rc.d/init.d/powersoftplus start\" to start powersoftplus daemon." >&2
-fi
+%service powersoftplus restart
%preun
if [ "$1" = "0" ]; then
- if [ -f /var/lock/subsys/powersoftplus ]; then
- /etc/rc.d/init.d/powersoftplus stop >&2
- fi
+ %service powersoftplus stop
/sbin/chkconfig --del powersoftplus
fi
@@ -201,6 +196,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.24 2008-02-08 21:49:52 glen
+- use %service
+
Revision 1.23 2008-02-08 20:48:47 qboosh
- sed 4 no longer used
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/powersoftplus.spec?r1=1.23&r2=1.24&f=u
More information about the pld-cvs-commit
mailing list