]>
Commit | Line | Data |
---|---|---|
7a30e9d7 | 1 | # |
2 | # Conditional build: | |
931f130b | 3 | %bcond_without alsa # don't build ALSA mm driver |
beafc810 MM |
4 | %bcond_without capi # don't build CAPI 2.0 (ISDN) support |
5 | %bcond_without gstreamer # don't build GStreamer filters support | |
16e36f25 | 6 | %bcond_without sane # don't build TWAIN DLL with scanning support (through SANE) |
9d6715c4 | 7 | %bcond_without ldap # don't build LDAP DLL |
16e36f25 | 8 | %bcond_without cups # without CUPS printing support in winspool,wineps DLLs |
7a30e9d7 | 9 | # |
546bbb82 | 10 | # NOTE: wine detects the following SONAMES for dlopen at build time: |
16e36f25 JB |
11 | # libcrypto,libssl (wininet.dll) |
12 | # libcups (winspool.dll.so,wineps.dll.so) | |
13 | # libcurses/libncurses (wineconsole program) | |
14 | # libfontconfig (gdi32.dll.so) | |
15 | # libfreetype (wineps.dll.so,gdi32.dll.so) | |
16 | # libGL (x11drv.dll.so,ddraw.dll.so) | |
e7acaf22 | 17 | # libX11, libXext, libXi, libXrender (x11drv.dll.so) |
db80a28e | 18 | # libpng (windowscodecs.dll: SONAME_LIBPNG in dlls/windowscodecs/pngformat.c) |
546bbb82 | 19 | # thus requires rebuild after change of any of the above. |
db80a28e | 20 | |
4ce8abe1 ER |
21 | # library qualifier in rpm generated deps |
22 | %ifarch %{x8664} ia64 ppc64 s390x sparc64 | |
23 | %define libqual ()(64bit) | |
24 | %else | |
25 | %define libqual %{nil} | |
26 | %endif | |
27 | ||
beafc810 | 28 | %define gecko_ver 1.4 |
698e86e7 | 29 | Summary: Program that lets you launch Win applications |
93e41e44 ER |
30 | Summary(es.UTF-8): Ejecuta programas Windows en Linux |
31 | Summary(pl.UTF-8): Program pozwalający uruchamiać aplikacje Windows | |
32 | Summary(pt_BR.UTF-8): Executa programas Windows no Linux | |
5c4ec57b | 33 | Name: wine |
beafc810 MM |
34 | Version: 1.4 |
35 | Release: 1 | |
46114a9a | 36 | Epoch: 1 |
528c1138 | 37 | License: LGPL |
5c4ec57b | 38 | Group: Applications/Emulators |
beafc810 MM |
39 | Source0: http://downloads.sourceforge.net/wine/%{name}-%{version}.tar.bz2 |
40 | # Source0-md5: 6594ab86a4b1fb2c09dadfb4ea7fc4af | |
41 | Source1: http://downloads.sourceforge.net/wine/%{name}_gecko-%{gecko_ver}-x86.msi | |
42 | # Source1-md5: 700aaa08724be1992cffed7b87e79a44 | |
43 | Source2: http://downloads.sourceforge.net/wine/%{name}_gecko-%{gecko_ver}-x86_64.msi | |
44 | # Source2-md5: 7b4811f667fd01d300fdff68420a9c72 | |
45 | Source3: %{name}-uninstaller.desktop | |
b68a79ec | 46 | Patch0: %{name}-fontcache.patch |
a0ff0658 | 47 | Patch1: %{name}-makedep.patch |
a4a10255 | 48 | Patch2: %{name}-ncurses.patch |
8b4bf701 | 49 | Patch4: %{name}-disable-valgrind.patch |
5312a936 | 50 | Patch5: %{name}-ca_certificates.patch |
84474518 | 51 | Patch6: %{name}-manpaths.patch |
52 | Patch7: desktop.patch | |
1b3d8891 | 53 | URL: http://www.winehq.org/ |
0aac4f59 | 54 | BuildRequires: OpenAL-devel >= 1.1 |
489ca66c | 55 | BuildRequires: OpenGL-GLU-devel |
6547534c KK |
56 | %{?with_alsa:BuildRequires: alsa-lib-devel} |
57 | %{?with_arts:BuildRequires: artsc-devel} | |
c7af491d JB |
58 | BuildRequires: autoconf |
59 | BuildRequires: automake | |
d3c41437 | 60 | BuildRequires: bison |
beafc810 | 61 | %{?with_capi:BuildRequires: capi4k-utils-devel} |
5715e1d1 | 62 | %{?with_cups:BuildRequires: cups-devel} |
f88a3451 | 63 | BuildRequires: docbook-dtd31-sgml |
64 | BuildRequires: docbook-utils | |
5fc34681 | 65 | BuildRequires: flex |
16e36f25 | 66 | BuildRequires: fontconfig-devel |
22432818 | 67 | BuildRequires: fontforge |
5fc34681 | 68 | BuildRequires: freetype-devel >= 2.0.5 |
beafc810 | 69 | BuildRequires: gettext-devel |
734deeec | 70 | BuildRequires: giflib-devel |
c57a98fe | 71 | BuildRequires: gnutls-devel |
beafc810 | 72 | %{?with_gstreamer:BuildRequires: gstreamer-plugins-base-devel} |
887fffcf | 73 | BuildRequires: icoutils |
beb8121e | 74 | BuildRequires: lcms-devel |
beb8121e | 75 | BuildRequires: libgphoto2-devel |
d0d61ce7 | 76 | BuildRequires: libgsm-devel |
c504380e | 77 | BuildRequires: libjpeg-devel |
2341e633 | 78 | BuildRequires: libmpg123-devel >= 1.5.0 |
1e160e6e | 79 | BuildRequires: libtool |
0aac4f59 | 80 | BuildRequires: libv4l-devel |
fbb1220c | 81 | BuildRequires: libxslt-devel |
8a1d358f | 82 | BuildRequires: ncurses-devel |
16e36f25 | 83 | # db2* failed previously - probably openjade or opensp bug |
db80a28e | 84 | BuildRequires: libpng-devel >= 1.5 |
16e36f25 | 85 | BuildRequires: openjade >= 1:1.3.3-0.pre1 |
9d6715c4 | 86 | %{?with_ldap:BuildRequires: openldap-devel} |
16e36f25 | 87 | BuildRequires: opensp >= 1:1.5.1 |
2c81f5eb | 88 | BuildRequires: openssl-devel >= 0.9.7d |
beb8121e | 89 | BuildRequires: pkgconfig |
beafc810 | 90 | BuildRequires: prelink |
5715e1d1 | 91 | %{?with_sane:BuildRequires: sane-backends-devel} |
7057f2e9 | 92 | BuildRequires: unixODBC-devel >= 2.2.12-2 |
8b4bf701 | 93 | #BuildRequires: valgrind |
beb8121e | 94 | BuildRequires: xorg-lib-libXcomposite-devel |
95 | BuildRequires: xorg-lib-libXcursor-devel | |
c66c3406 | 96 | BuildRequires: xorg-lib-libXi-devel |
beb8121e | 97 | BuildRequires: xorg-lib-libXinerama-devel |
c66c3406 | 98 | BuildRequires: xorg-lib-libXmu-devel |
beb8121e | 99 | BuildRequires: xorg-lib-libXrandr-devel |
c66c3406 | 100 | BuildRequires: xorg-lib-libXrender-devel |
101 | BuildRequires: xorg-lib-libXxf86dga-devel | |
102 | BuildRequires: xorg-lib-libXxf86vm-devel | |
4ce8abe1 ER |
103 | Requires: libfreetype.so.6%{libqual} |
104 | Requires: libpng15.so.15%{libqual} | |
8df63af6 | 105 | Requires(post): /sbin/ldconfig |
ae42c99e | 106 | Suggests: binfmt-detector |
be70b824 | 107 | Suggests: ca-certificates |
beafc810 | 108 | Suggests: cabextract |
a2f68044 | 109 | Conflicts: ca-certificates < 20080809-4 |
b3d3861d | 110 | # for printing needs lpr |
111 | Suggests: cups-clients | |
f96e197b | 112 | # for winelauncher |
3bddfbf2 | 113 | Suggests: xorg-app-xmessage |
f96e197b | 114 | # for ntlm_auth |
14e95129 | 115 | Suggests: samba-common >= 1:3.0.25 |
52b6007b JB |
116 | # link to wine/ntdll.dll.so, without any SONAME |
117 | Provides: libntdll.dll.so | |
7212da21 | 118 | Obsoletes: wine-doc-pdf |
93b34e12 | 119 | Obsoletes: wine-drv-arts |
beafc810 MM |
120 | Obsoletes: wine-drv-jack |
121 | Obsoletes: wine-drv-nas | |
f829f028 | 122 | ExclusiveArch: %{ix86} %{x8664} |
206eed29 | 123 | ExcludeArch: i386 |
0403821a | 124 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
5c4ec57b | 125 | |
e8f81a0a | 126 | %define _noautoreqdep libGL.so.1 libGLU.so.1 |
127 | %define no_install_post_strip 1 | |
128 | ||
e8f81a0a | 129 | %define _winedir %{_datadir}/%{name} |
6731627f | 130 | |
65c325f6 | 131 | %define getsoname() %((objdump -p %{1} 2>/dev/null || echo SONAME ERROR) | awk '/SONAME/ { print $2; s=1 }; END { if(s==0) print "ERROR" }') |
16e36f25 | 132 | |
344ce2c2 | 133 | %undefine debuginfocflags |
134 | ||
5c4ec57b | 135 | %description |
6731627f | 136 | Wine is a program which allows running Microsoft Windows programs |
a519bc4f | 137 | (including DOS, Windows 3.x and Win32 executables) on Unix. It |
138 | consists of a program loader which loads and executes a Microsoft | |
139 | Windows binary, and a library that implements Windows API calls using | |
140 | their Unix or X11 equivalents. The library may also be used for | |
141 | porting Win32 code into native Unix executables. | |
5c4ec57b | 142 | |
c967e47d | 143 | %description -l es.UTF-8 |
f33a1517 | 144 | Ejecuta programas Windows en Linux. |
145 | ||
c967e47d JR |
146 | %description -l pl.UTF-8 |
147 | Wine jest programem dzięki któremu można uruchamiać programy napisane | |
148 | dla Microsoft Windows pod systemami uniksowymi. Składa się on z | |
149 | loadera, który pozwala wczytywać i uruchamiać programy w formacie | |
150 | Microsoft Windows, oraz z biblioteki, która implementuje API Windows | |
151 | przy użyciu odpowiedników uniksowych oraz z X11. Biblioteka może być | |
152 | także wykorzystana do przenoszenia aplikacji Win32 do Uniksa. | |
5c4ec57b | 153 | |
c967e47d JR |
154 | %description -l pt_BR.UTF-8 |
155 | O Wine é um programa que permite rodar programas MS-Windows no X11. | |
f33a1517 | 156 | Ele consiste de um carregador de programa, que carrega e executa um |
c967e47d | 157 | binário MS-Windows, e de uma biblioteca de emulação que traduz as |
f33a1517 | 158 | chamadas da API para as equivalentes Unix/X11. |
159 | ||
5c4ec57b | 160 | %package devel |
7a050f82 | 161 | Summary: Wine - header files |
93e41e44 ER |
162 | Summary(es.UTF-8): Biblioteca de desarrollo de wine |
163 | Summary(pl.UTF-8): Wine - pliki nagłowkowe | |
164 | Summary(pt_BR.UTF-8): Biblioteca de desenvolvimento do wine | |
7a050f82 | 165 | Group: Development/Libraries |
46114a9a | 166 | Requires: %{name} = %{epoch}:%{version}-%{release} |
6ab2e9fc | 167 | |
5c4ec57b | 168 | %description devel |
169 | Wine - header files. | |
170 | ||
c967e47d | 171 | %description devel -l es.UTF-8 |
f33a1517 | 172 | Biblioteca de desarrollo de wine. |
173 | ||
c967e47d JR |
174 | %description devel -l pl.UTF-8 |
175 | Wine - pliki nagłówkowe. | |
5c4ec57b | 176 | |
c967e47d JR |
177 | %description devel -l pt_BR.UTF-8 |
178 | Arquivos de inclusão e bibliotecas para desenvolver aplicações com o | |
f33a1517 | 179 | WINE. |
180 | ||
e8f81a0a | 181 | %package programs |
182 | Summary: Wine - programs | |
93e41e44 | 183 | Summary(pl.UTF-8): Wine - programy |
e8f81a0a | 184 | Group: Applications |
46114a9a | 185 | Requires: %{name} = %{epoch}:%{version}-%{release} |
e8f81a0a | 186 | |
187 | %description programs | |
0a7c5d50 | 188 | Wine - programs. |
e8f81a0a | 189 | |
c967e47d | 190 | %description programs -l pl.UTF-8 |
0a7c5d50 | 191 | Wine - programy. |
e8f81a0a | 192 | |
beafc810 MM |
193 | %package dll-capi |
194 | Summary: CAPI 2.0 (ISDN) implementation DLLs for Wine | |
195 | Summary(pl.UTF-8): Biblioteki DLL z implementacją CAPI 2.0 (ISDN) dla Wine | |
196 | Group: Applications/Emulators | |
197 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
198 | ||
199 | %description dll-capi | |
200 | CAPI 2.0 (ISDN) implementation DLLs for Wine (through OpenGL). | |
201 | ||
202 | %description dll-capi -l pl.UTF-8 | |
203 | Biblioteki DLL z implementacją CAPI 2.0 (ISDN) dla Wine (poprzez | |
204 | OpenGL). | |
205 | ||
16e36f25 JB |
206 | %package dll-d3d |
207 | Summary: Direct3D implementation DLLs for Wine | |
93e41e44 | 208 | Summary(pl.UTF-8): Biblioteki DLL z implementacją Direct3D dla Wine |
16e36f25 | 209 | Group: Applications/Emulators |
46114a9a | 210 | Requires: %{name} = %{epoch}:%{version}-%{release} |
16e36f25 JB |
211 | Requires: OpenGL |
212 | ||
213 | %description dll-d3d | |
214 | Direct3D implementation DLLs for Wine (through OpenGL). | |
215 | ||
c967e47d JR |
216 | %description dll-d3d -l pl.UTF-8 |
217 | Biblioteki DLL z implementacją Direct3D dla Wine (poprzez OpenGL). | |
16e36f25 JB |
218 | |
219 | %package dll-gl | |
220 | Summary: OpenGL implementation DLLs for Wine | |
93e41e44 | 221 | Summary(pl.UTF-8): Biblioteki DLL z implementacją OpenGL dla Wine |
16e36f25 | 222 | Group: Applications/Emulators |
46114a9a | 223 | Requires: %{name} = %{epoch}:%{version}-%{release} |
16e36f25 JB |
224 | Requires: OpenGL |
225 | ||
226 | %description dll-gl | |
227 | OpenGL implementation DLLs for Wine. | |
228 | ||
c967e47d JR |
229 | %description dll-gl -l pl.UTF-8 |
230 | Biblioteki DLL z implementacją OpenGL dla Wine. | |
16e36f25 JB |
231 | |
232 | %package dll-twain | |
233 | Summary: TWAIN implementation DLL for Wine | |
93e41e44 | 234 | Summary(pl.UTF-8): Biblioteka DLL z implementacją TWAIN dla Wine |
16e36f25 | 235 | Group: Applications/Emulators |
46114a9a | 236 | Requires: %{name} = %{epoch}:%{version}-%{release} |
16e36f25 JB |
237 | |
238 | %description dll-twain | |
239 | TWAIN implementation DLL for Wine (through SANE). | |
240 | ||
c967e47d JR |
241 | %description dll-twain -l pl.UTF-8 |
242 | Biblioteka DLL z implementacją TWAIN dla Wine (poprzez SANE). | |
16e36f25 | 243 | |
9d6715c4 | 244 | %package dll-ldap |
db80a28e | 245 | Summary: Win32 LDAP API DLL for Wine |
9d6715c4 ER |
246 | Group: Applications/Emulators |
247 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
248 | ||
249 | %description dll-ldap | |
250 | Lightweight Directory Access Protocol Library. | |
251 | ||
16e36f25 JB |
252 | %package drv-alsa |
253 | Summary: ALSA driver for WINE mm.dll implementation | |
93e41e44 | 254 | Summary(pl.UTF-8): Sterownik ALSA dla implementacji mm.dll w Wine |
16e36f25 | 255 | Group: Applications/Emulators |
46114a9a | 256 | Requires: %{name} = %{epoch}:%{version}-%{release} |
16e36f25 JB |
257 | |
258 | %description drv-alsa | |
259 | ALSA driver for WINE mm.dll (multimedia system) implementation. | |
260 | ||
c967e47d JR |
261 | %description drv-alsa -l pl.UTF-8 |
262 | Sterownik ALSA dla implementacji mm.dll (systemu multimediów) w Wine. | |
16e36f25 | 263 | |
5c4ec57b | 264 | %prep |
db80a28e | 265 | %setup -q |
2fbbb535 | 266 | %patch0 -p1 |
267 | %patch1 -p1 | |
ab25825d | 268 | %patch2 -p1 |
8b4bf701 | 269 | %patch4 -p1 |
5312a936 | 270 | %patch5 -p1 |
3bfef0cd | 271 | %patch6 -p1 |
aa3806d3 | 272 | %patch7 -p1 |
591d55ba | 273 | |
5c4ec57b | 274 | %build |
887fffcf ER |
275 | icotool -x --width=32 --height=32 --bit-depth=32 -o . dlls/user32/resources/oic_winlogo.ico |
276 | mv -f oic_winlogo_*.png %{name}.png | |
277 | ||
2fbbb535 | 278 | %{__autoconf} |
103d8328 | 279 | %{__autoheader} |
9d6a128d | 280 | %configure \ |
f829f028 AM |
281 | %ifarch %{x8664} |
282 | --enable-win64 \ | |
283 | %endif | |
c504380e | 284 | --with%{!?with_alsa:out}-alsa \ |
beafc810 | 285 | --with%{!?with_capi:out}-capi \ |
beb8121e | 286 | --with-cms \ |
d0d61ce7 | 287 | --with-coreaudio \ |
c504380e | 288 | --with%{!?with_cups:out}-cups \ |
c504380e | 289 | --with-curses \ |
c504380e | 290 | --with-fontconfig \ |
291 | --with-freetype \ | |
292 | --with-glu \ | |
d0d61ce7 | 293 | --with-gnutls \ |
beb8121e | 294 | --with-gphoto \ |
d0d61ce7 | 295 | --with-gsm \ |
beafc810 | 296 | --with%{!?with_gstreamer:out}-gstreamer \ |
c504380e | 297 | --with-jpeg \ |
9d6715c4 | 298 | --with%{!?with_ldap:out}-ldap \ |
d0d61ce7 | 299 | --with-mpg123 \ |
c504380e | 300 | --with-opengl \ |
301 | --with-openssl \ | |
302 | --with-oss \ | |
303 | --with-png \ | |
d0d61ce7 | 304 | --with-pthread \ |
c504380e | 305 | --with%{!?with_sane:out}-sane \ |
beb8121e | 306 | --with-xcomposite \ |
307 | --with-xcursor \ | |
308 | --with-xinerama \ | |
309 | --with-xinput \ | |
c504380e | 310 | --with-xml \ |
beb8121e | 311 | --with-xrandr \ |
c504380e | 312 | --with-xrender \ |
313 | --with-xshape \ | |
314 | --with-xshm \ | |
315 | --with-xslt \ | |
beb8121e | 316 | --with-xxf86vm \ |
698e86e7 | 317 | --with-x |
05eb066b | 318 | %{__make} depend |
4aafdd81 | 319 | %{__make} |
e8f81a0a | 320 | |
5c4ec57b | 321 | %install |
322 | rm -rf $RPM_BUILD_ROOT | |
ffb676e0 | 323 | install -d $RPM_BUILD_ROOT{%{_mandir}/man1,%{_aclocaldir}} |
c7af491d JB |
324 | %{__make} install \ |
325 | DESTDIR=$RPM_BUILD_ROOT | |
326 | ||
887fffcf ER |
327 | install -p tools/fnt2bdf $RPM_BUILD_ROOT%{_bindir} |
328 | cp -a aclocal.m4 $RPM_BUILD_ROOT%{_aclocaldir}/wine.m4 | |
0b87866b | 329 | |
2a437456 | 330 | install -d \ |
65c325f6 | 331 | $RPM_BUILD_ROOT%{_winedir}/windows/{system,Desktop,Favorites,Fonts} \ |
332 | "$RPM_BUILD_ROOT%{_winedir}/windows/Start Menu/Programs/Startup" \ | |
a91c2692 | 333 | $RPM_BUILD_ROOT%{_winedir}/windows/{SendTo,ShellNew,system32,NetHood} \ |
334 | $RPM_BUILD_ROOT%{_winedir}/windows/{Profiles/Administrator,Recent} \ | |
335 | $RPM_BUILD_ROOT%{_winedir}/{"Program Files/Common Files","My Documents"} | |
336 | ||
a91c2692 | 337 | touch $RPM_BUILD_ROOT%{_winedir}/{autoexec.bat,config.sys,windows/win.ini} |
338 | touch $RPM_BUILD_ROOT%{_winedir}/windows/system/{shell.dll,shell32.dll} | |
339 | touch $RPM_BUILD_ROOT%{_winedir}/windows/system/{winsock.dll,wsock32.dll} | |
340 | ||
76055aa1 | 341 | cat > $RPM_BUILD_ROOT%{_winedir}/windows/system.ini <<'EOF' |
a91c2692 | 342 | [mci] |
343 | cdaudio=mcicda.drv | |
344 | sequencer=mciseq.drv | |
345 | waveaudio=mciwave.drv | |
346 | avivideo=mciavi.drv | |
347 | videodisc=mcipionr.drv | |
348 | vcr=mciviscd.drv | |
349 | MPEGVideo=mciqtz.drv | |
5c4ec57b | 350 | EOF |
351 | ||
e8f81a0a | 352 | %if %{?debug:0}%{!?debug:1} |
f1f3af79 JB |
353 | echo "Strip executable binaries and shared object files." |
354 | filelist=`find $RPM_BUILD_ROOT -type f ! -regex ".*ld-[0-9.]*so.*"` | |
355 | elfexelist=`echo $filelist | xargs -r file | \ | |
356 | awk '/ELF.*executable/ {print $1}' | cut -d: -f1` | |
357 | elfsharedlist=`echo $filelist | xargs -r file | \ | |
358 | awk '/LF.*shared object/ {print $1}' | cut -d: -f1`; \ | |
359 | if [ -n "$elfexelist" ]; then \ | |
360 | strip -R .note -R .comment $elfexelist | |
361 | fi | |
362 | if [ -n "$elfsharedlist" ]; then | |
65c325f6 | 363 | strip --strip-unneeded -R .note -R .comment $elfsharedlist |
f1f3af79 | 364 | fi |
e8f81a0a | 365 | %endif |
f1f3af79 | 366 | |
80496098 | 367 | # /sbin/chstk -e $RPM_BUILD_ROOT%{_bindir}/wine |
5c4ec57b | 368 | |
887fffcf ER |
369 | dir=$(pwd) |
370 | > files.so | |
371 | > files.programs | |
55a96819 | 372 | cd $RPM_BUILD_ROOT%{_libdir}/wine |
373 | for f in *.so; do | |
16e36f25 | 374 | case $f in |
beafc810 | 375 | d3d8.dll.so|d3d9.dll.so|d3dx8.dll.so|glu32.dll.so|opengl32.dll.so|sane.ds.so|twain.dll.so|twain_32.dll.so|winealsa.drv.so|wldap32.dll.so) |
887fffcf ER |
376 | ;; |
377 | *) | |
378 | echo "%attr(755,root,root) %{_libdir}/wine/$f" >> $dir/files.so | |
16e36f25 | 379 | esac |
55a96819 | 380 | done |
381 | cd - | |
887fffcf ER |
382 | |
383 | programs="notepad regedit regsvr32 wineconsole winefile winemine winepath" | |
2f6853f9 | 384 | for p in $programs; do |
8d493411 | 385 | echo "%attr(755,root,root) %{_bindir}/$p" >> files.programs |
386 | echo "%attr(755,root,root) %{_libdir}/wine/$p.exe.so" >> files.programs | |
da274952 | 387 | echo "%{_mandir}/man1/$p.1*" >> files.programs |
8d493411 | 388 | grep -v "$p\.exe\.so$" files.so > files.so. |
389 | mv -f files.so. files.so | |
55a96819 | 390 | done |
55a96819 | 391 | |
f7357f09 | 392 | install -d $RPM_BUILD_ROOT%{_winedir}/gecko |
beafc810 | 393 | %ifnarch %{x8664} |
db80a28e | 394 | cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_winedir}/gecko |
beafc810 | 395 | %else |
db80a28e | 396 | cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_winedir}/gecko |
beafc810 | 397 | %endif |
f7357f09 | 398 | |
887fffcf | 399 | install -d $RPM_BUILD_ROOT%{_pixmapsdir} |
db80a28e ER |
400 | cp -p %{SOURCE3} $RPM_BUILD_ROOT%{_desktopdir} |
401 | cp -p %{name}.png $RPM_BUILD_ROOT%{_pixmapsdir} | |
76055aa1 | 402 | |
5c4ec57b | 403 | %clean |
404 | rm -rf $RPM_BUILD_ROOT | |
405 | ||
8df63af6 | 406 | %post |
db80a28e | 407 | /sbin/ldconfig |
8df63af6 ER |
408 | %update_desktop_database |
409 | ||
f1f3af79 JB |
410 | %postun -p /sbin/ldconfig |
411 | ||
d142aa07 | 412 | %triggerpostun -- wine < 1:0.9.12-1.9 |
ccb219e0 | 413 | rm -f /var/lock/subsys/wine |
d142aa07 JB |
414 | if [ -x /sbin/chkconfig ]; then |
415 | /sbin/chkconfig --del wine | |
416 | fi | |
417 | ||
55a96819 | 418 | %files -f files.so |
5c4ec57b | 419 | %defattr(644,root,root,755) |
64ef6fe1 | 420 | %doc README documentation/ChangeLog* AUTHORS ANNOUNCE |
12b1296e | 421 | %lang(de) %doc documentation/README.de |
422 | %lang(es) %doc documentation/README.es | |
423 | %lang(fr) %doc documentation/README.fr | |
0aac4f59 | 424 | %lang(hu) %doc documentation/README.hu |
12b1296e | 425 | %lang(it) %doc documentation/README.it |
7b9e958b | 426 | %lang(ko) %doc documentation/README.ko |
58a0e5f4 | 427 | %lang(nb) %doc documentation/README.no |
12b1296e | 428 | %lang(pt) %doc documentation/README.pt |
74de5921 | 429 | %lang(pt_BR) %doc documentation/README.pt_br |
0aac4f59 KK |
430 | %lang(ru) %doc documentation/README.ru |
431 | %lang(sv) %doc documentation/README.sv | |
432 | %lang(tr) %doc documentation/README.tr | |
82432451 | 433 | %attr(755,root,root) %{_bindir}/msiexec |
beafc810 MM |
434 | %ifnarch %{x8664} |
435 | %attr(755,root,root) %{_bindir}/wine | |
436 | %else | |
437 | %attr(755,root,root) %{_bindir}/wine64 | |
438 | %endif | |
d479f953 | 439 | %attr(755,root,root) %{_bindir}/wineboot |
55a96819 | 440 | %attr(755,root,root) %{_bindir}/winedbg |
0aac4f59 | 441 | %attr(755,root,root) %{_bindir}/winecfg |
beafc810 | 442 | %ifnarch %{x8664} |
f829f028 | 443 | %attr(755,root,root) %{_bindir}/wine-preloader |
beafc810 MM |
444 | %else |
445 | %attr(755,root,root) %{_bindir}/wine64-preloader | |
f829f028 | 446 | %endif |
beafc810 | 447 | %attr(755,root,root) %{_bindir}/wineserver |
8a1d358f | 448 | %attr(755,root,root) %{_libdir}/*.so* |
861238d3 | 449 | %dir %{_libdir}/wine |
61e39970 | 450 | %dir %{_libdir}/wine/fakedlls |
451 | %{_libdir}/wine/fakedlls/*.acm | |
452 | %{_libdir}/wine/fakedlls/*.cpl | |
453 | %{_libdir}/wine/fakedlls/*.dll | |
beafc810 MM |
454 | %ifarch %{ix86} |
455 | %{_libdir}/wine/fakedlls/*.dll16 | |
456 | %endif | |
61e39970 | 457 | %{_libdir}/wine/fakedlls/*.drv |
beafc810 MM |
458 | %ifarch %{ix86} |
459 | %{_libdir}/wine/fakedlls/*.drv16 | |
460 | %endif | |
61e39970 | 461 | %{_libdir}/wine/fakedlls/*.ds |
462 | %{_libdir}/wine/fakedlls/*.exe | |
beafc810 MM |
463 | %ifarch %{ix86} |
464 | %{_libdir}/wine/fakedlls/*.exe16 | |
465 | %{_libdir}/wine/fakedlls/*.mod16 | |
466 | %endif | |
61e39970 | 467 | %{_libdir}/wine/fakedlls/*.ocx |
468 | %{_libdir}/wine/fakedlls/*.sys | |
469 | %{_libdir}/wine/fakedlls/*.tlb | |
f829f028 | 470 | %ifarch %{ix86} |
61e39970 | 471 | %{_libdir}/wine/fakedlls/*.vxd |
f829f028 | 472 | %endif |
b86f1c34 | 473 | %{_mandir}/man1/wine.1* |
beafc810 MM |
474 | %lang(de) %{_mandir}/de/man1/wine*.1* |
475 | %lang(fr) %{_mandir}/fr/man1/wine*.1* | |
76656d4f | 476 | #%lang(pl) %{_mandir}/pl/man1/wine*.1* |
da274952 AG |
477 | %{_mandir}/man1/msiexec.1* |
478 | %{_mandir}/man1/wineboot.1* | |
479 | %{_mandir}/man1/winecfg.1* | |
72ede285 | 480 | %{_mandir}/man1/winedbg.1* |
b86f1c34 | 481 | %{_mandir}/man1/wineserver.1* |
a91c2692 | 482 | %{_winedir} |
a6c536e0 | 483 | %{_desktopdir}/wine.desktop |
76055aa1 | 484 | %{_desktopdir}/wine-uninstaller.desktop |
887fffcf | 485 | %{_pixmapsdir}/%{name}.png |
5c4ec57b | 486 | |
55a96819 | 487 | %files programs -f files.programs |
e8f81a0a | 488 | %defattr(644,root,root,755) |
e8f81a0a | 489 | |
5c4ec57b | 490 | %files devel |
491 | %defattr(644,root,root,755) | |
d479f953 | 492 | %attr(755,root,root) %{_bindir}/fnt2bdf |
493 | %attr(755,root,root) %{_bindir}/function_grep.pl | |
d479f953 | 494 | %attr(755,root,root) %{_bindir}/widl |
55a96819 | 495 | %attr(755,root,root) %{_bindir}/winebuild |
55a96819 | 496 | %attr(755,root,root) %{_bindir}/winedump |
1ae1bca2 | 497 | %attr(755,root,root) %{_bindir}/wineg++ |
d479f953 | 498 | %attr(755,root,root) %{_bindir}/winegcc |
499 | %attr(755,root,root) %{_bindir}/winemaker | |
9a9c7643 | 500 | %attr(755,root,root) %{_bindir}/winecpp |
55a96819 | 501 | %attr(755,root,root) %{_bindir}/wmc |
d479f953 | 502 | %attr(755,root,root) %{_bindir}/wrc |
7265d9f2 JB |
503 | %{_libdir}/wine/lib*.def |
504 | # no shared variants, so not separated | |
505 | %{_libdir}/wine/lib*.def.a | |
b93e474e | 506 | %{_libdir}/wine/libadsiid.a |
7265d9f2 | 507 | %{_libdir}/wine/libdx*.a |
beafc810 | 508 | %{_libdir}/wine/libstrmbase.a |
7265d9f2 JB |
509 | %{_libdir}/wine/libstrmiids.a |
510 | %{_libdir}/wine/libuuid.a | |
511 | %{_libdir}/wine/libwinecrt0.a | |
5c4ec57b | 512 | %{_includedir}/wine |
34f03014 | 513 | %{_mandir}/man1/widl.1* |
0aac4f59 | 514 | %{_mandir}/man1/winebuild.1* |
da274952 | 515 | %{_mandir}/man1/winecpp.1* |
34f03014 | 516 | %{_mandir}/man1/winedump.1* |
bff06719 | 517 | %{_mandir}/man1/winegcc.1* |
5ec7e550 | 518 | %{_mandir}/man1/wineg++.1* |
34f03014 | 519 | %{_mandir}/man1/winemaker.1* |
0aac4f59 | 520 | %lang(de) %{_mandir}/de/man1/winemaker.1* |
6ebf503e | 521 | %lang(fr) %{_mandir}/fr/man1/winemaker.1* |
34f03014 JB |
522 | %{_mandir}/man1/wmc.1* |
523 | %{_mandir}/man1/wrc.1* | |
2b5050a8 | 524 | %{_aclocaldir}/*.m4 |
f18f723c | 525 | |
beafc810 MM |
526 | %files dll-capi |
527 | %defattr(644,root,root,755) | |
528 | %attr(755,root,root) %{_libdir}/wine/capi2032.dll.so | |
529 | ||
16e36f25 JB |
530 | %files dll-d3d |
531 | %defattr(644,root,root,755) | |
532 | %attr(755,root,root) %{_libdir}/wine/d3d8.dll.so | |
533 | %attr(755,root,root) %{_libdir}/wine/d3d9.dll.so | |
16e36f25 JB |
534 | %attr(755,root,root) %{_libdir}/wine/wined3d.dll.so |
535 | ||
536 | %files dll-gl | |
537 | %defattr(644,root,root,755) | |
538 | %attr(755,root,root) %{_libdir}/wine/glu32.dll.so | |
539 | %attr(755,root,root) %{_libdir}/wine/opengl32.dll.so | |
540 | ||
541 | %if %{with sane} | |
542 | %files dll-twain | |
543 | %defattr(644,root,root,755) | |
b08b16bf | 544 | %attr(755,root,root) %{_libdir}/wine/sane.ds.so |
72878a4c | 545 | %attr(755,root,root) %{_libdir}/wine/twain*.dll.so |
16e36f25 JB |
546 | %endif |
547 | ||
9d6715c4 ER |
548 | %if %{with ldap} |
549 | %files dll-ldap | |
550 | %defattr(644,root,root,755) | |
551 | %attr(755,root,root) %{_libdir}/wine/wldap*.dll.so | |
552 | %endif | |
553 | ||
16e36f25 JB |
554 | %if %{with alsa} |
555 | %files drv-alsa | |
556 | %defattr(644,root,root,755) | |
557 | %attr(755,root,root) %{_libdir}/wine/winealsa.drv.so | |
558 | %endif | |
559 | ||
16e36f25 JB |
560 | # additional dependencies in *.so not separated (yet?) from main package |
561 | # ddraw.dll.so,x11drv.dll.so depend on X11 libs | |
562 | # ole2disp.dll.so,oleaut32.dll.so,typelib.dll.so depend on lib(un)gif,libjpeg,libX11 | |
563 | # ttydrv.dll.so depends on ncurses |