SPECS: pmud.spec - use %service, fix chkconfig deps
glen
glen at pld-linux.org
Thu Apr 20 19:16:05 CEST 2006
Author: glen Date: Thu Apr 20 17:16:05 2006 GMT
Module: SPECS Tag: HEAD
---- Log message:
- use %service, fix chkconfig deps
---- Files affected:
SPECS:
pmud.spec (1.16 -> 1.17)
---- Diffs:
================================================================
Index: SPECS/pmud.spec
diff -u SPECS/pmud.spec:1.16 SPECS/pmud.spec:1.17
--- SPECS/pmud.spec:1.16 Sat May 14 12:50:18 2005
+++ SPECS/pmud.spec Thu Apr 20 19:16:00 2006
@@ -12,13 +12,15 @@
Patch0: %{name}-pwrctl.patch
Patch1: %{name}-fcntl.patch
URL: http://linuxppc.jvc.nl/
-Requires: chkconfig
+BuildRequires: rpmbuild(macros) >= 1.268
+Requires(post,preun): /sbin/chkconfig
Requires: dev >= 2.8.0-22
Requires: hdparm
+Requires: rc-scripts
Provides: apmd
+Obsoletes: apmd
ExclusiveArch: ppc
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-Obsoletes: apmd
%description
pmud is a daemon which periodically polls the PMU (power manager) and
@@ -65,17 +67,11 @@
%post
/sbin/chkconfig --add pmud
-if [ -f /var/lock/subsys/pmud ]; then
- /etc/rc.d/init.d/pmud restart >&2
-else
- echo "Run \"/etc/rc.d/init.d/pmud start\" to start pmud daemon."
-fi
+%service pmud restart "pmud daemon"
%preun
if [ "$1" = "0" ]; then
- if [ -f /var/lock/subsys/pmud ]; then
- /etc/rc.d/init.d/pmud stop >&2
- fi
+ %service pmud stop
/sbin/chkconfig --del pmud
fi
@@ -84,7 +80,7 @@
%doc BUGS CHANGES INSTALL README THANKS TODO pwrctl-local
%attr(755,root,root) %{_sbindir}/*
%attr(755,root,root) %{_bindir}/*
-%attr(644,root,root) /etc/sysconfig/power
+%attr(644,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/power
%attr(754,root,root) /etc/rc.d/init.d/pmud
%attr(755,root,root) %{_sysconfdir}/power/pwrctl
%{_mandir}/man8/*
@@ -95,6 +91,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.17 2006/04/20 17:16:00 glen
+- use %service, fix chkconfig deps
+
Revision 1.16 2005/05/14 10:50:18 arekm
- pwrctl is a bash script
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/pmud.spec?r1=1.16&r2=1.17&f=u
More information about the pld-cvs-commit
mailing list