From 5ac9a0e8cbdc1cafb74c56b045350790839b51de Mon Sep 17 00:00:00 2001 From: Guillaume Cottenceau Date: Thu, 29 Mar 2001 11:09:25 +0000 Subject: user post and preun service macros --- numlock.spec | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/numlock.spec b/numlock.spec index 8f9c2bc..bd4df8c 100644 --- a/numlock.spec +++ b/numlock.spec @@ -3,7 +3,7 @@ %define name numlock %define version 2.0 -%define release 1mdk +%define release 2mdk Summary: Numlock key locker Name: %{name} @@ -34,12 +34,10 @@ rm -rf $RPM_BUILD_ROOT make install TOP=$RPM_BUILD_ROOT INITRDDIR=%{_initrddir} %post -/sbin/chkconfig --add numlock +%_post_service numlock %preun -if [ $1 = 0 ];then - /sbin/chkconfig --del numlock -fi +%_preun_service numlock %clean rm -rf $RPM_BUILD_ROOT @@ -53,6 +51,9 @@ rm -rf $RPM_BUILD_ROOT /usr/X11R6/man/*/* %changelog +* Thu Mar 29 2001 Guillaume Cottenceau 2.0-2mdk +- user post and preun service macros + * Tue Jan 9 2001 Guillaume Cottenceau 2.0-1mdk - really fix the xinit.d file - reintegrate into CVS -- cgit v1.2.1