From ac2e0bf8e51e1d91a5ae9cb29519900d068d5429 Mon Sep 17 00:00:00 2001 From: Andreas Bierfert Date: Wed, 8 Feb 2006 13:35:58 +0000 Subject: [PATCH] - fix typo in script part --- wine.spec | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/wine.spec b/wine.spec index 3a27091..0f3eb1e 100644 --- a/wine.spec +++ b/wine.spec @@ -2,7 +2,7 @@ Name: wine Version: 0.9.7 -Release: 1%{?dist} +Release: 2%{?dist} Summary: A Windows 16/32/64 bit emulator Group: Applications/Emulators @@ -61,7 +61,7 @@ BuildRequires: libXi-devel Requires(post): /sbin/ldconfig, /sbin/chkconfig, /sbin/service, Requires(post): /usr/bin/update-desktop-database -Requires(preun): /sbin/chkconfig +Requires(preun): /sbin/chkconfig, /sbin/service Requires(postun): /sbin/ldconfig, /usr/bin/update-desktop-database %description @@ -253,13 +253,16 @@ rm -rf %{buildroot} %post /sbin/ldconfig +update-desktop-database &>/dev/null || : +if [ $1 = 1 ]; then /sbin/chkconfig --add wine /sbin/chkconfig --level 2345 wine on /sbin/service wine start &>/dev/null || : -update-desktop-database &>/dev/null || : +fi %preun -if test "$1" = "0"; then +if [ $1 = 0 ]; then + /sbin/service wine stop >/dev/null 2>&1 /sbin/chkconfig --del wine fi @@ -689,6 +692,10 @@ update-desktop-database &>/dev/null || : %{_libdir}/wine/*.def %changelog +* Wed Feb 08 2006 Andreas Bierfert +0.9.7-2 +- fix up post/preun scriplets (#178954) + * Thu Feb 02 2006 Andreas Bierfert 0.9.7-1 - version upgrade