SPECS: wine.spec - added triggerpostun to unregister wine service ...

qboosh qboosh at pld-linux.org
Tue May 16 21:01:26 CEST 2006


Author: qboosh                       Date: Tue May 16 19:01:26 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- added triggerpostun to unregister wine service on upgrade

---- Files affected:
SPECS:
   wine.spec (1.235 -> 1.236) 

---- Diffs:

================================================================
Index: SPECS/wine.spec
diff -u SPECS/wine.spec:1.235 SPECS/wine.spec:1.236
--- SPECS/wine.spec:1.235	Mon May 15 19:21:43 2006
+++ SPECS/wine.spec	Tue May 16 21:01:21 2006
@@ -72,8 +72,6 @@
 BuildRequires:	xorg-lib-libXrender-devel
 BuildRequires:	xorg-lib-libXxf86dga-devel
 BuildRequires:	xorg-lib-libXxf86vm-devel
-Requires(post):	/sbin/ldconfig
-Requires(post,preun):	/sbin/chkconfig
 Requires:	binfmt-detector
 # link to wine/ntdll.dll.so, without any SONAME
 Provides:	libntdll.dll.so
@@ -337,20 +335,17 @@
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%post
-/sbin/ldconfig
-
-# how to remove this correctly?
-#%preun
-#if [ "$1" = "0" ]; then
-#	if [ -f /var/lock/subsys/wine ]; then
-#		/etc/rc.d/init.d/wine stop >&2
-#	fi
-#	/sbin/chkconfig --del wine
-#fi
-
+%post	-p /sbin/ldconfig
 %postun -p /sbin/ldconfig
 
+%triggerpostun -- wine < 1:0.9.12-1.9
+if [ -f /var/lock/subsys/wine ]; then
+	/etc/rc.d/init.d/wine stop >&2
+fi
+if [ -x /sbin/chkconfig ]; then
+	/sbin/chkconfig --del wine
+fi
+
 %files -f files.so
 %defattr(644,root,root,755)
 %doc README DEVELOPERS-HINTS ChangeLog AUTHORS ANNOUNCE
@@ -474,6 +469,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.236  2006/05/16 19:01:21  qboosh
+- added triggerpostun to unregister wine service on upgrade
+
 Revision 1.235  2006/05/15 17:21:43  wolf
 - 0.9.13
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/wine.spec?r1=1.235&r2=1.236&f=u



More information about the pld-cvs-commit mailing list