Index: wine.spec
===================================================================
RCS file: /cvsroot/SPECS/wine.spec,v
retrieving revision 1.220.2.8.2.9
diff -u -r1.220.2.8.2.9 wine.spec
--- wine.spec	28 Oct 2006 00:32:19 -0000	1.220.2.8.2.9
+++ wine.spec	4 Nov 2006 17:16:21 -0000
@@ -7,6 +7,7 @@
 %bcond_without	nas		# don't build NAS mm driver
 %bcond_without	sane		# don't build TWAIN DLL with scanning support (through SANE)
 %bcond_without	cups		# without CUPS printing support in winspool,wineps DLLs
+%bcond_with	DIB_copy	# with client side DIB copy patch (see winebugs #3902)
 #
 # NOTE: wine detects the following SONAMES for dlopen at build time:
 #   libcrypto,libssl (wininet.dll)
@@ -39,6 +40,7 @@
 Patch1:		%{name}-makedep.patch
 Patch2:		%{name}-alsa.patch
 Patch3:		%{name}-ncurses.patch
+Patch4:		%{name}-client_side_DIB_copy.patch
 #PatchX:		%{name}-dga.patch
 URL:		http://www.winehq.org/
 BuildRequires:	OpenGL-devel
@@ -237,6 +239,9 @@
 %patch1 -p1
 %patch2 -p1
 %patch3 -p1
+%if %{with DIB_copy}
+%patch4 -p1
+%endif
 
 # turn off compilation of some tools
 sed -i -e "s|winetest \\\|\\\|;s|avitools||" programs/Makefile.in
