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