From: saq Date: Wed, 25 Jul 2001 16:30:41 +0000 (+0000) Subject: - use macros in %{pre,post}{,un} X-Git-Tag: aumix-gtk-2_7-3~5 X-Git-Url: https://git.pld-linux.org/?p=packages%2Faumix.git;a=commitdiff_plain;h=ee4056238744d739281082e3083ee86a12350b4b - use macros in %{pre,post}{,un} - need rebuilt rpm (with new macros.pld) to build these Changed files: aumix.spec -> 1.66 --- diff --git a/aumix.spec b/aumix.spec index acbb528..f896c6a 100644 --- a/aumix.spec +++ b/aumix.spec @@ -134,7 +134,8 @@ gzip -9nf AUTHORS BUGS ChangeLog NEWS README TODO %find_lang %{name} %post OSS-preserve-settings -/sbin/chkconfig --add aumix + +%chkconfig_posst if [ ! -f /var/lock/subsys/aumix ]; then echo "Run \"/etc/rc.d/init.d/aumix start\" to initialize saving/restoring" echo "sound card mixer's settings on system shutdown/startup, and then" @@ -142,12 +143,7 @@ if [ ! -f /var/lock/subsys/aumix ]; then fi %preun OSS-preserve-settings -if [ "$1" = "0" ]; then - if [ -f /var/lock/subsys/aumix ]; then - /etc/rc.d/init.d/aumix stop - fi - /sbin/chkconfig --del aumix -fi +%chkconfig_preun %clean rm -rf $RPM_BUILD_ROOT