URL: http://www.worldvisions.ca/~apenwarr/apmd/
BuildRequires: XFree86-devel
BuildRequires: libtool
+BuildRequires: rpmbuild(macros) >= 1.268
BuildRequires: sed >= 4.0
Requires(post,preun): /sbin/chkconfig
Requires: %{name}-libs = %{epoch}:%{version}-%{release}
%post
/sbin/chkconfig --add apmd
-if [ -f /var/lock/subsys/apmd ]; then
- /etc/rc.d/init.d/apmd restart 1>&2
-else
- echo "Run \"/etc/rc.d/init.d/apmd start\" to start apmd daemon."
-fi
+%service apmd restart "apmd daemon"
%preun
if [ "$1" = "0" ]; then
- if [ -f /var/lock/subsys/apmd ]; then
- /etc/rc.d/init.d/apmd stop 1>&2
- fi
+ %service apmd stop
/sbin/chkconfig --del apmd
fi