rpms/wine/FC-3 wine.spec,1.8,1.9

Andreas Bierfert (awjb) fedora-extras-commits at redhat.com
Wed Feb 8 13:35:46 UTC 2006


Author: awjb

Update of /cvs/extras/rpms/wine/FC-3
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv31781/FC-3

Modified Files:
	wine.spec 
Log Message:
- fix typo in script part



Index: wine.spec
===================================================================
RCS file: /cvs/extras/rpms/wine/FC-3/wine.spec,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- wine.spec	2 Feb 2006 23:19:13 -0000	1.8
+++ wine.spec	8 Feb 2006 13:35:46 -0000	1.9
@@ -1,6 +1,6 @@
 Name:		wine
 Version:	0.9.7
-Release:	1%{?dist}
+Release:	2%{?dist}
 Summary:	A Windows 16/32/64 bit emulator
 
 Group:		Applications/Emulators
@@ -49,7 +49,7 @@
 
 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
@@ -240,13 +240,16 @@
 
 %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
 
@@ -676,6 +679,10 @@
 %{_libdir}/wine/*.def
 
 %changelog
+* Wed Feb 08 2006 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de>
+0.9.7-2
+- fix up post/preun scriptlets (#178954)
+
 * Thu Feb 02 2006 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de>
 0.9.7-1
 - version upgrade




More information about the scm-commits mailing list