/[packages]/cauldron/wine/releases/1:1.5.13/1.mga3/SPECS/wine.spec
ViewVC logotype

Contents of /cauldron/wine/releases/1:1.5.13/1.mga3/SPECS/wine.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 287344 - (show annotations) (download)
Sun Sep 2 16:38:46 2012 UTC (11 years, 6 months ago) by dams
Original Path: cauldron/wine/current/SPECS/wine.spec
File size: 16369 byte(s)
new version 1.5.12
1 %ifarch x86_64
2 %define wine wine64
3 %define mark64 ()(64bit)
4 %else
5 %define wine wine
6 %define mark64 %{nil}
7 %endif
8 %define lib_name_orig lib%{name}
9 %define lib_major 1
10 %define lib_name %mklibname %{name} %{lib_major}
11 %define lib_name_devel %{mklibname -d wine}
12
13 # On 32-bit we have
14 # wine32 - those 32-bit binaries that are also used on 64-bit for 32-bit support
15 # wine - all other files (requires 'wine32')
16 # On 64-bit we have
17 # wine64 - all 64-bit files (suggests 'wine32')
18 # - Anssi 07/2010
19
20 # When altering these, make sure corresponding wine-gecko/wine-mono is
21 # submitted, or notify their maintainer about the new version:
22 %define gecko_version 1.7
23 %define mono_version 0.0.4
24
25 Name: wine
26 Version: 1.5.12
27 %define pre 0
28 %define rel 1
29 %if %pre
30 Release: %mkrel 0.%pre.%rel
31 %define o_ver %version-%pre
32 %else
33 Release: %mkrel %rel
34 %define o_ver %version
35 %endif
36 Epoch: 1
37 Summary: WINE Is Not An Emulator - runs MS Windows programs
38 License: LGPLv2+
39 Group: Emulators
40 URL: http://www.winehq.com/
41 Source0: http://prdownloads.sourceforge.net/wine/%{name}-%{o_ver}.tar.bz2
42 Source1: http://prdownloads.sourceforge.net/wine/%{name}-%{o_ver}.tar.bz2.sign
43
44 # RH stuff
45 Source2: %{name}.init
46 Patch0: %{name}-1.0-rc3-fix-conflicts-with-openssl.patch
47 Patch1: %{name}-1.1.7-chinese-font-substitutes.patch
48 # (Anssi 05/2008) Adds:
49 # a: => /media/floppy (/mnt/floppy on 2007.1 and older)
50 # d: => $HOME (at config_dir creation time, not refreshed if $HOME changes;
51 # note that Wine also provides $HOME in My Documents)
52 # com4 => /dev/ttyUSB0 (replaces /dev/ttyS3)
53 Patch108: %{name}-mgaconf.patch
54
55 # (anssi) Wine needs GCC 4.4+ on x86_64 for MS ABI support. Note also that
56 # 64-bit wine cannot run 32-bit programs without wine32.
57 %ifarch x86_64
58 BuildRequires: gcc >= 4.4
59 %endif
60 BuildRequires: bison flex
61 BuildRequires: gpm-devel
62 BuildRequires: perl-devel
63 BuildRequires: ncurses-devel
64 BuildRequires: cups-devel
65 BuildRequires: sane-devel
66 BuildRequires: lcms-devel
67 BuildRequires: autoconf
68 BuildRequires: docbook-utils docbook-dtd-sgml sgml-tools
69 BuildRequires: pulseaudio-devel
70 BuildRequires: libmpg123-devel
71 BuildRequires: openal-devel
72 BuildRequires: icoutils
73 BuildRequires: libalsa-devel
74 BuildRequires: gstreamer0.10-devel libgstreamer0.10-plugins-base-devel
75 BuildRequires: isdn4k-utils-devel
76 BuildRequires: glibc-static-devel
77 BuildRequires: chrpath
78 BuildRequires: ungif-devel xpm-devel
79 BuildRequires: tiff-devel
80 BuildRequires: librsvg
81 BuildRequires: imagemagick
82 BuildRequires: gphoto2-devel
83 BuildRequires: desktop-file-utils
84 BuildRequires: openldap-devel
85 BuildRequires: libxslt-devel
86 BuildRequires: dbus-devel
87 BuildRequires: valgrind-devel
88 BuildRequires: gsm-devel
89 BuildRequires: unixODBC-devel
90 BuildRequires: gnutls-devel
91 BuildRequires: prelink
92 BuildRequires: gettext-devel
93 BuildRequires: mesaglu-devel
94 BuildRequires: libv4l-devel
95 BuildRequires: libxcursor-devel libxcomposite-devel
96 BuildRequires: libxinerama-devel libxrandr-devel
97 BuildRequires: libx11-devel libxrender-devel
98 BuildRequires: libxext-devel libsm-devel
99 BuildRequires: fontforge fontconfig-devel freetype2-devel
100 %if %mgaversion >= 3
101 BuildRequires: osmesa-devel
102 BuildRequires: opencl-devel
103 %endif
104
105 %define desc Wine is a program which allows running Microsoft Windows programs \
106 (including DOS, Windows 3.x and Win32 executables) on Unix. It \
107 consists of a program loader which loads and executes a Microsoft \
108 Windows binary, and a library (called Winelib) that implements Windows \
109 API calls using their Unix or X11 equivalents. The library may also \
110 be used for porting Win32 code into native Unix executables.
111
112 %ifarch x86_64
113 %package -n %{wine}
114 Summary: WINE Is Not An Emulator - runs MS Windows programs
115 Group: Emulators
116 Suggests: %{name}32 = %{epoch}:%{version}-%{release}
117 Suggests: %{name}64-gecko = %gecko_version
118 %else
119 # on 32-bit we always want wine32 package
120 Requires: %{name}32 = %{epoch}:%{version}-%{release}
121 %endif
122
123 Provides: %{wine}-utils = %{epoch}:%{version}-%{release} %{wine}-full = %{epoch}:%{version}-%{release}
124 Provides: %{lib_name}-capi = %{epoch}:%{version}-%{release} %{lib_name}-twain = %{epoch}:%{version}-%{release}
125 Provides: %{lib_name} = %{epoch}:%{version}-%{release}
126 Provides: wine-bin = %{epoch}:%{version}-%{release}
127 Obsoletes: %{wine}-utils %{wine}-full %{lib_name}-capi %{lib_name}-twain
128 Obsoletes: %{lib_name} <= %{epoch}:%{version}-%{release}
129 Suggests: sane-frontends
130 %define dlopenreq() %([ -e %{_libdir}/lib%{1}.so ] && objdump -p %{_libdir}/lib%{1}.so | grep SONAME | awk '{ print $2 "%{mark64}" }' || echo %{name})
131 # wine dlopen's these, so let's add the dependencies ourself
132 # Adding these here is especially important with wine, since wine32 is
133 # commonly one of the few 32-bit components on a 64-bit installation, so
134 # these packages might not necessarily be pulled by anything else.
135 # grep WINE_CHECK_SONAME configure.ac :) (though note that some of those
136 # results are in autoreq already) - (Anssi 08/2012)
137 Requires: %dlopenreq freetype
138 Requires: %dlopenreq asound
139 Requires: %dlopenreq fontconfig
140 Requires: %dlopenreq ncurses
141 Requires: %dlopenreq Xrender
142 Requires: %dlopenreq png
143 Requires: %dlopenreq Xcursor
144 Requires: %dlopenreq Xi
145 Requires: %dlopenreq Xxf86vm
146 Requires: %dlopenreq Xrandr
147 Requires: %dlopenreq Xinerama
148 Requires: %dlopenreq Xcomposite
149 Requires: %dlopenreq xslt
150 Requires: %dlopenreq dbus-1
151 Requires: %dlopenreq gnutls
152 Requires: %dlopenreq sane
153 Requires: %dlopenreq v4l1
154 Requires: %dlopenreq cups
155 Requires: %dlopenreq ssl
156 Requires: %dlopenreq crypto
157 Requires: %dlopenreq gsm
158 Requires: %dlopenreq jpeg
159 Requires: %dlopenreq tiff
160 Requires: %dlopenreq odbc
161 %if %mgaversion >= 3
162 Requires: %dlopenreq OSMesa
163 %endif
164 #Requires: %dlopenreq capi20 # ISDN support - unlikely to be needed
165 # (Anssi) If not installed, wine pops up a dialog on first start proposing to
166 # download pre-built binaries (unlike wine-gecko, same wine-mono works with
167 # both wine and wine64):
168 Suggests: wine-mono = %mono_version
169 Requires(post): desktop-file-utils
170 Requires(postun): desktop-file-utils
171 Requires(post): desktop-common-data
172 Requires(postun): desktop-common-data
173 Requires(preun): rpm-helper
174 Requires(post): rpm-helper
175 %ifarch %{ix86}
176 Conflicts: %{name}64
177 %else
178 Conflicts: %{name}
179 %endif
180
181 %description
182 %desc
183
184 %ifarch x86_64
185 %description -n %{wine}
186 %desc
187
188 This package contains the Win64 version of Wine. You need the wine32
189 package from the 32-bit repository to be able to run 32-bit applications.
190 %endif
191
192 %ifarch %ix86
193 %package -n wine32
194 Summary: 32-bit support for Wine
195 Group: Emulators
196 # This is not an EVR-specific requirement, as otherwise on x86_64 urpmi could
197 # resolve the dependency to wine64 even on upgrades, and therefore replace
198 # wine+wine32 installation with a wine32+wine64 installation. - Anssi
199 Requires: %{name}-bin
200 Conflicts: %{name} < 1:1.2-0.rc7.1
201 Conflicts: %{name}64 < 1:1.2-0.rc7.1
202 # (Anssi) If wine-gecko is not installed, wine pops up a dialog on first
203 # start proposing to download wine-gecko from sourceforge, while recommending
204 # to use distribution packages instead. Therefore suggest wine-gecko here:
205 Suggests: %{name}-gecko = %gecko_version
206
207 %description -n wine32
208 Wine is a program which allows running Microsoft Windows programs
209 (including DOS, Windows 3.x and Win32 executables) on Unix.
210
211 This package contains the files needed to support 32-bit Windows
212 programs.
213 %endif
214
215 %package -n %{wine}-devel
216 Summary: Static libraries and headers for %{name}
217 Group: Development/C
218 Requires: %{wine} = %{epoch}:%{version}
219 Provides: %{lib_name_devel} = %{epoch}:%{version}-%{release}
220 Provides: %{lib_name_orig}-devel = %{epoch}:%{version}-%{release}
221 Obsoletes: %{lib_name_devel} <= %{epoch}:%{version}-%{release}
222 Obsoletes: %{mklibname -d wine 1} < %{epoch}:%{version}
223 %ifarch %{ix86}
224 Conflicts: %{name}64-devel
225 %else
226 Conflicts: %{name}-devel
227 %endif
228
229 %description -n %{wine}-devel
230 Wine is a program which allows running Microsoft Windows programs
231 (including DOS, Windows 3.x and Win32 executables) on Unix.
232
233 %{wine}-devel contains the libraries and header files needed to
234 develop programs which make use of wine.
235
236 %prep
237 %setup -q -n %name-%o_ver
238 %patch1 -p0 -b .chinese
239 %patch108 -p1 -b .conf
240
241 GECKO_VERSION=$(sed -rn 's,^#define\s+GECKO_VERSION\s+"([^"]*)".*$,\1,p' dlls/appwiz.cpl/addons.c)
242 [ "$GECKO_VERSION" = "%gecko_version" ] || { echo %{name}-gecko version mismatch; exit 1; }
243 MONO_VERSION=$(sed -rn 's,^#define\s+MONO_VERSION\s+"([^"]*)".*$,\1,p' dlls/appwiz.cpl/addons.c)
244 [ "$MONO_VERSION" = "%mono_version" ] || { echo wine-mono version mismatch; exit 1; }
245
246 %build
247 autoreconf
248 %configure2_5x --with-x \
249 --with-pulse \
250 %ifarch x86_64
251 --enable-win64
252 %endif
253
254 %make depend
255 %make
256
257 %install
258 %makeinstall_std LDCONFIG=/bin/true
259
260 # Danny: dirty:
261 #install -m755 tools/fnt2bdf -D %{buildroot}%{_bindir}/fnt2bdf
262
263 # Allow users to launch Windows programs by just clicking on the .exe file...
264 install -m755 %{SOURCE2} -D %{buildroot}%{_initrddir}/%{name}
265
266 mkdir -p %{buildroot}%{_sysconfdir}/xdg/menus/applications-merged
267 cat > %{buildroot}%{_sysconfdir}/xdg/menus/applications-merged/%{_real_vendor}-%{name}.menu <<EOF
268 <!DOCTYPE Menu PUBLIC "-//freedesktop//DTD Menu 1.0//EN"
269 "http://www.freedesktop.org/standards/menu-spec/menu-1.0.dtd">
270 <Menu>
271 <Name>Applications</Name>
272 <Menu>
273 <Name>Tools</Name>
274 <Menu>
275 <Name>Emulators</Name>
276 <Menu>
277 <Name>Wine</Name>
278 <Directory>%{name}.directory</Directory>
279 <Include>
280 <Category>X-MandrivaLinux-MoreApplications-Emulators-Wine</Category>
281 </Include>
282 </Menu>
283 </Menu>
284 </Menu>
285 </Menu>
286 EOF
287
288 mkdir -p %{buildroot}%{_datadir}/desktop-directories
289 cat > %{buildroot}%{_datadir}/desktop-directories/%{name}.directory <<EOF
290 [Desktop Entry]
291 Name=Wine
292 Icon=%{name}
293 Type=Directory
294 EOF
295
296 mkdir -p %{buildroot}%{_datadir}/applications/
297 for i in winecfg:Configurator \
298 notepad:Notepad \
299 winefile:File\ Manager \
300 regedit:Registry\ Editor \
301 winemine:Minesweeper \
302 wineboot:Reboot \
303 "wineconsole cmd":Command\ Line \
304 "wine uninstaller:Wine Software Uninstaller";
305 do cat > %{buildroot}%{_datadir}/applications/%{name}-`echo $i|cut -d: -f1`.desktop << EOF
306 [Desktop Entry]
307 Name=`echo $i|cut -d: -f2`
308 Comment=`echo $i|cut -d: -f2`
309 Exec=`echo $i|cut -d: -f1`
310 Icon=%{name}
311 Terminal=false
312 Type=Application
313 Categories=X-MandrivaLinux-MoreApplications-Emulators-Wine;
314 EOF
315 done
316
317 # Categories=Emulator does nothing and is added as a workaround to kde #27700
318 desktop-file-install --vendor="" \
319 --add-mime-type=application/x-zip-compressed \
320 --remove-mime-type=application/x-zip-compressed \
321 --add-category=Emulator \
322 --dir %{buildroot}%{_datadir}/applications %{buildroot}%{_datadir}/applications/%{name}.desktop
323
324 %ifarch x86_64
325 # fix the binary name
326 sed -i 's,Exec=wine ,Exec=wine64 ,' %{buildroot}%{_datadir}/applications/%{name}.desktop
327 %endif
328
329 mkdir -p %{buildroot}%{_datadir}/icons/hicolor/scalable/apps
330 install -p -m 644 dlls/user32/resources/oic_winlogo.svg \
331 %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/wine.svg
332 sed -i -e '3s/368/64/' %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/wine.svg
333
334 install -p -m 644 programs/notepad/notepad.svg \
335 %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/notepad.svg
336 sed -i -e '3s/368/64/' %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/notepad.svg
337
338 install -p -m 644 programs/regedit/regedit.svg \
339 %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/regedit.svg
340 sed -i -e '3s/368/64/' %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/regedit.svg
341
342 install -p -m 644 programs/msiexec/msiexec.svg \
343 %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/msiexec.svg
344 sed -i -e '3s/368/64/' %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/msiexec.svg
345
346 install -p -m 644 programs/winecfg/winecfg.svg \
347 %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/winecfg.svg
348 sed -i -e '3s/368/64/' %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/winecfg.svg
349
350 install -p -m 644 programs/winefile/winefile.svg \
351 %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/winefile.svg
352 sed -i -e '3s/368/64/' %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/winefile.svg
353
354 install -p -m 644 programs/winemine/winemine.svg \
355 %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/winemine.svg
356 sed -i -e '3s/368/64/' %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/winemine.svg
357
358 install -p -m 644 programs/winhlp32/winhelp.svg \
359 %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/winhelp.svg
360 sed -i -e '3s/368/64/' %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/winhelp.svg
361
362 install -p -m 644 programs/wordpad/wordpad.svg \
363 %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/wordpad.svg
364 sed -i -e '3s/368/64/' %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/wordpad.svg
365
366 # change the icons in the respective .desktop files, in order:
367 sed -i 's,Icon=%{name},Icon=notepad,' %{buildroot}%{_datadir}/applications/wine-notepad.desktop
368 sed -i 's,Icon=%{name},Icon=winefile,' %{buildroot}%{_datadir}/applications/wine-winefile.desktop
369 sed -i 's,Icon=%{name},Icon=regedit,' %{buildroot}%{_datadir}/applications/wine-regedit.desktop
370 sed -i 's,Icon=%{name},Icon=winemine,' %{buildroot}%{_datadir}/applications/wine-winemine.desktop
371 sed -i 's,Icon=%{name},Icon=msiexec,' "%{buildroot}%{_datadir}/applications/wine-wine uninstaller.desktop"
372
373 %ifarch x86_64
374 chrpath -d %{buildroot}%{_bindir}/{wine64,wineserver,wmc,wrc} %{buildroot}%{_libdir}/%{name}/*.so
375 %else
376 chrpath -d %{buildroot}%{_bindir}/{wine,wineserver,wmc,wrc} %{buildroot}%{_libdir}/%{name}/*.so
377 %endif
378
379 %ifarch x86_64
380 cat > README.install.urpmi <<EOF
381 This is the Win64 version of Wine. This version can only be used to run
382 64-bit Windows applications as is. For running 32-bit Windows applications,
383 you need to also install the 'wine32' package from the 32-bit repository.
384 EOF
385 %endif
386
387 %preun -n %{wine}
388 %_preun_service %{name}
389
390 %post -n %{wine}
391 %_post_service %{name}
392
393 %files -n %{wine}
394 %doc ANNOUNCE AUTHORS README
395 %ifarch x86_64
396 %doc README.install.urpmi
397 %{_bindir}/%{name}64
398 %{_bindir}/%{name}64-preloader
399 %endif
400 %{_initrddir}/%{name}
401 %{_bindir}/winecfg
402 %{_bindir}/wineconsole*
403 %{_bindir}/wineserver
404 %{_bindir}/wineboot
405 %{_bindir}/function_grep.pl
406 #%{_bindir}/wineprefixcreate
407 %{_bindir}/msiexec
408 %{_bindir}/notepad
409 %{_bindir}/regedit
410 %{_bindir}/winemine
411 %{_bindir}/winepath
412 %{_bindir}/regsvr32
413 %{_bindir}/winefile
414 %{_mandir}/man1/wine.1*
415 %lang(de) %{_mandir}/de.UTF-8/man1/wine.1*
416 %lang(de) %{_mandir}/de.UTF-8/man1/winemaker.1*
417 %lang(de) %{_mandir}/de.UTF-8/man1/wineserver.1*
418 %lang(fr) %{_mandir}/fr.UTF-8/man1/*
419 %lang(pl) %{_mandir}/pl.UTF-8/man1/wine.1*
420 %{_mandir}/man1/wineserver.1*
421 %{_mandir}/man1/msiexec.1*
422 %{_mandir}/man1/notepad.1*
423 %{_mandir}/man1/regedit.1*
424 %{_mandir}/man1/regsvr32.1*
425 %{_mandir}/man1/wineboot.1*
426 %{_mandir}/man1/winecfg.1*
427 %{_mandir}/man1/wineconsole.1*
428 %{_mandir}/man1/winecpp.1*
429 %{_mandir}/man1/winefile.1*
430 %{_mandir}/man1/winemine.1*
431 %{_mandir}/man1/winepath.1*
432 %dir %{_datadir}/%{name}
433 %{_datadir}/%{name}/generic.ppd
434 %{_datadir}/%{name}/%{name}.inf
435 %{_datadir}/%{name}/l_intl.nls
436 %{_datadir}/applications/*.desktop
437 %{_sysconfdir}/xdg/menus/applications-merged/%{_real_vendor}-%{name}.menu
438 %{_datadir}/desktop-directories/%{name}.directory
439 %dir %{_datadir}/wine/fonts
440 %{_datadir}/wine/fonts/*
441 %{_datadir}/icons/hicolor/scalable/apps/*svg
442
443 %ifarch %{ix86}
444 %files -n wine32
445 %{_bindir}/wine
446 %{_bindir}/wine-preloader
447 %endif
448
449 %{_libdir}/libwine*.so.%{lib_major}*
450 %dir %{_libdir}/%{name}
451 %{_libdir}/%{name}/*.cpl.so
452 %{_libdir}/%{name}/*.drv.so
453 %{_libdir}/%{name}/*.dll.so
454 %{_libdir}/%{name}/*.exe.so
455 %{_libdir}/%{name}/*.acm.so
456 %{_libdir}/%{name}/*.ocx.so
457 %ifarch %{ix86}
458 %{_libdir}/%{name}/*.vxd.so
459 %{_libdir}/%{name}/*16.so
460 %endif
461 %{_libdir}/%{name}/*.tlb.so
462 %{_libdir}/%{name}/*.ds.so
463 %{_libdir}/%{name}/*.sys.so
464 %{_libdir}/%{name}/fakedlls
465
466 %files -n %{wine}-devel
467 %{_libdir}/%{name}/*.a
468 %{_libdir}/libwine*.so
469 %{_libdir}/%{name}/*.def
470 %{_includedir}/*
471 #%{_bindir}/fnt2bdf
472 %{_bindir}/wmc
473 %{_bindir}/wrc
474 %{_bindir}/winebuild
475 %{_bindir}/winegcc
476 %{_bindir}/wineg++
477 %{_bindir}/winecpp
478 %{_bindir}/widl
479 %{_bindir}/winedbg
480 %{_bindir}/winemaker
481 %{_bindir}/winedump
482 %{_mandir}/man1/wmc.1*
483 %{_mandir}/man1/wrc.1*
484 %{_mandir}/man1/winebuild.1*
485 %{_mandir}/man1/winemaker.1*
486 %{_mandir}/man1/winedump.1*
487 %{_mandir}/man1/widl.1*
488 %{_mandir}/man1/winedbg.1*
489 %{_mandir}/man1/wineg++.1*
490 %{_mandir}/man1/winegcc.1*

  ViewVC Help
Powered by ViewVC 1.1.30