]>
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 | ||
47bd64d5 | 28 | %define gecko_ver 2.21 |
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 |
c4aead27 JK |
34 | # 1.6.x – stable |
35 | # 1.7.x – development (DEVEL branch) | |
55061442 JK |
36 | Version: 1.6.2 |
37 | Release: 1 | |
46114a9a | 38 | Epoch: 1 |
528c1138 | 39 | License: LGPL |
5c4ec57b | 40 | Group: Applications/Emulators |
beafc810 | 41 | Source0: http://downloads.sourceforge.net/wine/%{name}-%{version}.tar.bz2 |
55061442 | 42 | # Source0-md5: 0f6c56f86befe38e219090915f81f48a |
beafc810 | 43 | Source1: http://downloads.sourceforge.net/wine/%{name}_gecko-%{gecko_ver}-x86.msi |
47bd64d5 | 44 | # Source1-md5: 432eb3a2d05c3f07df67864f53c87c60 |
beafc810 | 45 | Source2: http://downloads.sourceforge.net/wine/%{name}_gecko-%{gecko_ver}-x86_64.msi |
47bd64d5 | 46 | # Source2-md5: 580bbabde1ec99ba9caa439c2dbca3f6 |
beafc810 | 47 | Source3: %{name}-uninstaller.desktop |
55061442 | 48 | Patch0: %{name}-gphoto2_bool.patch |
a0ff0658 | 49 | Patch1: %{name}-makedep.patch |
a4a10255 | 50 | Patch2: %{name}-ncurses.patch |
8b4bf701 | 51 | Patch4: %{name}-disable-valgrind.patch |
5312a936 | 52 | Patch5: %{name}-ca_certificates.patch |
84474518 | 53 | Patch6: %{name}-manpaths.patch |
54 | Patch7: desktop.patch | |
f6cf693b | 55 | Patch8: %{name}-wine64_man.patch |
1b3d8891 | 56 | URL: http://www.winehq.org/ |
0aac4f59 | 57 | BuildRequires: OpenAL-devel >= 1.1 |
489ca66c | 58 | BuildRequires: OpenGL-GLU-devel |
6547534c KK |
59 | %{?with_alsa:BuildRequires: alsa-lib-devel} |
60 | %{?with_arts:BuildRequires: artsc-devel} | |
c7af491d JB |
61 | BuildRequires: autoconf |
62 | BuildRequires: automake | |
d3c41437 | 63 | BuildRequires: bison |
beafc810 | 64 | %{?with_capi:BuildRequires: capi4k-utils-devel} |
5715e1d1 | 65 | %{?with_cups:BuildRequires: cups-devel} |
f88a3451 | 66 | BuildRequires: docbook-dtd31-sgml |
67 | BuildRequires: docbook-utils | |
5fc34681 | 68 | BuildRequires: flex |
16e36f25 | 69 | BuildRequires: fontconfig-devel |
22432818 | 70 | BuildRequires: fontforge |
5fc34681 | 71 | BuildRequires: freetype-devel >= 2.0.5 |
16b3dd87 | 72 | BuildRequires: fslint |
beafc810 | 73 | BuildRequires: gettext-devel |
734deeec | 74 | BuildRequires: giflib-devel |
c57a98fe | 75 | BuildRequires: gnutls-devel |
55061442 | 76 | %{?with_gstreamer:BuildRequires: gstreamer0.10-plugins-base-devel} |
887fffcf | 77 | BuildRequires: icoutils |
55061442 | 78 | BuildRequires: lcms2-devel |
beb8121e | 79 | BuildRequires: libgphoto2-devel |
d0d61ce7 | 80 | BuildRequires: libgsm-devel |
c504380e | 81 | BuildRequires: libjpeg-devel |
2341e633 | 82 | BuildRequires: libmpg123-devel >= 1.5.0 |
1e160e6e | 83 | BuildRequires: libtool |
0aac4f59 | 84 | BuildRequires: libv4l-devel |
fbb1220c | 85 | BuildRequires: libxslt-devel |
8a1d358f | 86 | BuildRequires: ncurses-devel |
16e36f25 | 87 | # db2* failed previously - probably openjade or opensp bug |
db80a28e | 88 | BuildRequires: libpng-devel >= 1.5 |
16e36f25 | 89 | BuildRequires: openjade >= 1:1.3.3-0.pre1 |
9d6715c4 | 90 | %{?with_ldap:BuildRequires: openldap-devel} |
16e36f25 | 91 | BuildRequires: opensp >= 1:1.5.1 |
2c81f5eb | 92 | BuildRequires: openssl-devel >= 0.9.7d |
beb8121e | 93 | BuildRequires: pkgconfig |
beafc810 | 94 | BuildRequires: prelink |
5715e1d1 | 95 | %{?with_sane:BuildRequires: sane-backends-devel} |
7057f2e9 | 96 | BuildRequires: unixODBC-devel >= 2.2.12-2 |
8b4bf701 | 97 | #BuildRequires: valgrind |
beb8121e | 98 | BuildRequires: xorg-lib-libXcomposite-devel |
99 | BuildRequires: xorg-lib-libXcursor-devel | |
c66c3406 | 100 | BuildRequires: xorg-lib-libXi-devel |
beb8121e | 101 | BuildRequires: xorg-lib-libXinerama-devel |
c66c3406 | 102 | BuildRequires: xorg-lib-libXmu-devel |
beb8121e | 103 | BuildRequires: xorg-lib-libXrandr-devel |
c66c3406 | 104 | BuildRequires: xorg-lib-libXrender-devel |
105 | BuildRequires: xorg-lib-libXxf86dga-devel | |
106 | BuildRequires: xorg-lib-libXxf86vm-devel | |
4ce8abe1 | 107 | Requires: libfreetype.so.6%{libqual} |
a85c8746 | 108 | Requires: libpng16.so.16%{libqual} |
8df63af6 | 109 | Requires(post): /sbin/ldconfig |
ae42c99e | 110 | Suggests: binfmt-detector |
be70b824 | 111 | Suggests: ca-certificates |
beafc810 | 112 | Suggests: cabextract |
a2f68044 | 113 | Conflicts: ca-certificates < 20080809-4 |
b3d3861d | 114 | # for printing needs lpr |
115 | Suggests: cups-clients | |
f96e197b | 116 | # for winelauncher |
3bddfbf2 | 117 | Suggests: xorg-app-xmessage |
f96e197b | 118 | # for ntlm_auth |
14e95129 | 119 | Suggests: samba-common >= 1:3.0.25 |
52b6007b JB |
120 | # link to wine/ntdll.dll.so, without any SONAME |
121 | Provides: libntdll.dll.so | |
7212da21 | 122 | Obsoletes: wine-doc-pdf |
93b34e12 | 123 | Obsoletes: wine-drv-arts |
beafc810 MM |
124 | Obsoletes: wine-drv-jack |
125 | Obsoletes: wine-drv-nas | |
f829f028 | 126 | ExclusiveArch: %{ix86} %{x8664} |
206eed29 | 127 | ExcludeArch: i386 |
0403821a | 128 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
5c4ec57b | 129 | |
e8f81a0a | 130 | %define _noautoreqdep libGL.so.1 libGLU.so.1 |
131 | %define no_install_post_strip 1 | |
132 | ||
e8f81a0a | 133 | %define _winedir %{_datadir}/%{name} |
6731627f | 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 |
f6cf693b JK |
273 | %ifarch %{x8664} |
274 | %patch8 -p1 | |
275 | %endif | |
591d55ba | 276 | |
5c4ec57b | 277 | %build |
887fffcf ER |
278 | icotool -x --width=32 --height=32 --bit-depth=32 -o . dlls/user32/resources/oic_winlogo.ico |
279 | mv -f oic_winlogo_*.png %{name}.png | |
280 | ||
2fbbb535 | 281 | %{__autoconf} |
103d8328 | 282 | %{__autoheader} |
9d6a128d | 283 | %configure \ |
f829f028 AM |
284 | %ifarch %{x8664} |
285 | --enable-win64 \ | |
286 | %endif | |
c504380e | 287 | --with%{!?with_alsa:out}-alsa \ |
beafc810 | 288 | --with%{!?with_capi:out}-capi \ |
beb8121e | 289 | --with-cms \ |
d0d61ce7 | 290 | --with-coreaudio \ |
c504380e | 291 | --with%{!?with_cups:out}-cups \ |
c504380e | 292 | --with-curses \ |
c504380e | 293 | --with-fontconfig \ |
294 | --with-freetype \ | |
295 | --with-glu \ | |
d0d61ce7 | 296 | --with-gnutls \ |
beb8121e | 297 | --with-gphoto \ |
d0d61ce7 | 298 | --with-gsm \ |
beafc810 | 299 | --with%{!?with_gstreamer:out}-gstreamer \ |
c504380e | 300 | --with-jpeg \ |
9d6715c4 | 301 | --with%{!?with_ldap:out}-ldap \ |
d0d61ce7 | 302 | --with-mpg123 \ |
c504380e | 303 | --with-opengl \ |
304 | --with-openssl \ | |
305 | --with-oss \ | |
306 | --with-png \ | |
d0d61ce7 | 307 | --with-pthread \ |
c504380e | 308 | --with%{!?with_sane:out}-sane \ |
beb8121e | 309 | --with-xcomposite \ |
310 | --with-xcursor \ | |
311 | --with-xinerama \ | |
312 | --with-xinput \ | |
c504380e | 313 | --with-xml \ |
beb8121e | 314 | --with-xrandr \ |
c504380e | 315 | --with-xrender \ |
316 | --with-xshape \ | |
317 | --with-xshm \ | |
318 | --with-xslt \ | |
beb8121e | 319 | --with-xxf86vm \ |
698e86e7 | 320 | --with-x |
05eb066b | 321 | %{__make} depend |
4aafdd81 | 322 | %{__make} |
e8f81a0a | 323 | |
5c4ec57b | 324 | %install |
325 | rm -rf $RPM_BUILD_ROOT | |
ffb676e0 | 326 | install -d $RPM_BUILD_ROOT{%{_mandir}/man1,%{_aclocaldir}} |
c7af491d JB |
327 | %{__make} install \ |
328 | DESTDIR=$RPM_BUILD_ROOT | |
329 | ||
16b3dd87 ER |
330 | findup -m $RPM_BUILD_ROOT%{_winedir}/fakedlls |
331 | ||
47bd64d5 | 332 | install -p tools/fnt2fon $RPM_BUILD_ROOT%{_bindir} |
887fffcf | 333 | cp -a aclocal.m4 $RPM_BUILD_ROOT%{_aclocaldir}/wine.m4 |
0b87866b | 334 | |
2a437456 | 335 | install -d \ |
65c325f6 | 336 | $RPM_BUILD_ROOT%{_winedir}/windows/{system,Desktop,Favorites,Fonts} \ |
337 | "$RPM_BUILD_ROOT%{_winedir}/windows/Start Menu/Programs/Startup" \ | |
a91c2692 | 338 | $RPM_BUILD_ROOT%{_winedir}/windows/{SendTo,ShellNew,system32,NetHood} \ |
339 | $RPM_BUILD_ROOT%{_winedir}/windows/{Profiles/Administrator,Recent} \ | |
340 | $RPM_BUILD_ROOT%{_winedir}/{"Program Files/Common Files","My Documents"} | |
341 | ||
a91c2692 | 342 | touch $RPM_BUILD_ROOT%{_winedir}/{autoexec.bat,config.sys,windows/win.ini} |
343 | touch $RPM_BUILD_ROOT%{_winedir}/windows/system/{shell.dll,shell32.dll} | |
344 | touch $RPM_BUILD_ROOT%{_winedir}/windows/system/{winsock.dll,wsock32.dll} | |
345 | ||
76055aa1 | 346 | cat > $RPM_BUILD_ROOT%{_winedir}/windows/system.ini <<'EOF' |
a91c2692 | 347 | [mci] |
348 | cdaudio=mcicda.drv | |
349 | sequencer=mciseq.drv | |
350 | waveaudio=mciwave.drv | |
351 | avivideo=mciavi.drv | |
352 | videodisc=mcipionr.drv | |
353 | vcr=mciviscd.drv | |
354 | MPEGVideo=mciqtz.drv | |
5c4ec57b | 355 | EOF |
356 | ||
80496098 | 357 | # /sbin/chstk -e $RPM_BUILD_ROOT%{_bindir}/wine |
5c4ec57b | 358 | |
887fffcf ER |
359 | dir=$(pwd) |
360 | > files.so | |
361 | > files.programs | |
55a96819 | 362 | cd $RPM_BUILD_ROOT%{_libdir}/wine |
363 | for f in *.so; do | |
16e36f25 | 364 | case $f in |
ad4623a1 | 365 | 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 |
366 | ;; |
367 | *) | |
368 | echo "%attr(755,root,root) %{_libdir}/wine/$f" >> $dir/files.so | |
16e36f25 | 369 | esac |
55a96819 | 370 | done |
371 | cd - | |
887fffcf ER |
372 | |
373 | programs="notepad regedit regsvr32 wineconsole winefile winemine winepath" | |
2f6853f9 | 374 | for p in $programs; do |
8d493411 | 375 | echo "%attr(755,root,root) %{_bindir}/$p" >> files.programs |
376 | echo "%attr(755,root,root) %{_libdir}/wine/$p.exe.so" >> files.programs | |
da274952 | 377 | echo "%{_mandir}/man1/$p.1*" >> files.programs |
8d493411 | 378 | grep -v "$p\.exe\.so$" files.so > files.so. |
379 | mv -f files.so. files.so | |
55a96819 | 380 | done |
55a96819 | 381 | |
f6cf693b JK |
382 | %ifarch %{x8664} |
383 | for langdir in "" de/ fr/ pl/ ; do | |
384 | mv $RPM_BUILD_ROOT%{_mandir}/${langdir}man1/{wine,wine64}.1 | |
385 | done | |
386 | %endif | |
387 | ||
f7357f09 | 388 | install -d $RPM_BUILD_ROOT%{_winedir}/gecko |
beafc810 | 389 | %ifnarch %{x8664} |
db80a28e | 390 | cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_winedir}/gecko |
beafc810 | 391 | %else |
db80a28e | 392 | cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_winedir}/gecko |
beafc810 | 393 | %endif |
f7357f09 | 394 | |
887fffcf | 395 | install -d $RPM_BUILD_ROOT%{_pixmapsdir} |
db80a28e ER |
396 | cp -p %{SOURCE3} $RPM_BUILD_ROOT%{_desktopdir} |
397 | cp -p %{name}.png $RPM_BUILD_ROOT%{_pixmapsdir} | |
76055aa1 | 398 | |
5c4ec57b | 399 | %clean |
400 | rm -rf $RPM_BUILD_ROOT | |
401 | ||
8df63af6 | 402 | %post |
db80a28e | 403 | /sbin/ldconfig |
8df63af6 ER |
404 | %update_desktop_database |
405 | ||
f1f3af79 JB |
406 | %postun -p /sbin/ldconfig |
407 | ||
d142aa07 | 408 | %triggerpostun -- wine < 1:0.9.12-1.9 |
ccb219e0 | 409 | rm -f /var/lock/subsys/wine |
d142aa07 JB |
410 | if [ -x /sbin/chkconfig ]; then |
411 | /sbin/chkconfig --del wine | |
412 | fi | |
413 | ||
55a96819 | 414 | %files -f files.so |
5c4ec57b | 415 | %defattr(644,root,root,755) |
47bd64d5 | 416 | %doc README AUTHORS ANNOUNCE |
12b1296e | 417 | %lang(de) %doc documentation/README.de |
418 | %lang(es) %doc documentation/README.es | |
419 | %lang(fr) %doc documentation/README.fr | |
0aac4f59 | 420 | %lang(hu) %doc documentation/README.hu |
12b1296e | 421 | %lang(it) %doc documentation/README.it |
7b9e958b | 422 | %lang(ko) %doc documentation/README.ko |
58a0e5f4 | 423 | %lang(nb) %doc documentation/README.no |
12b1296e | 424 | %lang(pt) %doc documentation/README.pt |
74de5921 | 425 | %lang(pt_BR) %doc documentation/README.pt_br |
0aac4f59 KK |
426 | %lang(ru) %doc documentation/README.ru |
427 | %lang(sv) %doc documentation/README.sv | |
428 | %lang(tr) %doc documentation/README.tr | |
82432451 | 429 | %attr(755,root,root) %{_bindir}/msiexec |
beafc810 MM |
430 | %ifnarch %{x8664} |
431 | %attr(755,root,root) %{_bindir}/wine | |
432 | %else | |
433 | %attr(755,root,root) %{_bindir}/wine64 | |
434 | %endif | |
d479f953 | 435 | %attr(755,root,root) %{_bindir}/wineboot |
55a96819 | 436 | %attr(755,root,root) %{_bindir}/winedbg |
0aac4f59 | 437 | %attr(755,root,root) %{_bindir}/winecfg |
beafc810 | 438 | %ifnarch %{x8664} |
f829f028 | 439 | %attr(755,root,root) %{_bindir}/wine-preloader |
beafc810 MM |
440 | %else |
441 | %attr(755,root,root) %{_bindir}/wine64-preloader | |
f829f028 | 442 | %endif |
beafc810 | 443 | %attr(755,root,root) %{_bindir}/wineserver |
8a1d358f | 444 | %attr(755,root,root) %{_libdir}/*.so* |
861238d3 | 445 | %dir %{_libdir}/wine |
61e39970 | 446 | %dir %{_libdir}/wine/fakedlls |
447 | %{_libdir}/wine/fakedlls/*.acm | |
448 | %{_libdir}/wine/fakedlls/*.cpl | |
449 | %{_libdir}/wine/fakedlls/*.dll | |
beafc810 MM |
450 | %ifarch %{ix86} |
451 | %{_libdir}/wine/fakedlls/*.dll16 | |
452 | %endif | |
61e39970 | 453 | %{_libdir}/wine/fakedlls/*.drv |
beafc810 MM |
454 | %ifarch %{ix86} |
455 | %{_libdir}/wine/fakedlls/*.drv16 | |
456 | %endif | |
61e39970 | 457 | %{_libdir}/wine/fakedlls/*.ds |
458 | %{_libdir}/wine/fakedlls/*.exe | |
beafc810 MM |
459 | %ifarch %{ix86} |
460 | %{_libdir}/wine/fakedlls/*.exe16 | |
461 | %{_libdir}/wine/fakedlls/*.mod16 | |
462 | %endif | |
61e39970 | 463 | %{_libdir}/wine/fakedlls/*.ocx |
464 | %{_libdir}/wine/fakedlls/*.sys | |
465 | %{_libdir}/wine/fakedlls/*.tlb | |
f829f028 | 466 | %ifarch %{ix86} |
61e39970 | 467 | %{_libdir}/wine/fakedlls/*.vxd |
f829f028 | 468 | %endif |
f6cf693b | 469 | %ifnarch %{x8664} |
b86f1c34 | 470 | %{_mandir}/man1/wine.1* |
47bd64d5 JK |
471 | %lang(de) %{_mandir}/de/man1/wine.1* |
472 | %lang(fr) %{_mandir}/fr/man1/wine.1* | |
473 | %lang(pl) %{_mandir}/pl/man1/wine.1* | |
f6cf693b JK |
474 | %else |
475 | %{_mandir}/man1/wine64.1* | |
476 | %lang(de) %{_mandir}/de/man1/wine64.1* | |
477 | %lang(fr) %{_mandir}/fr/man1/wine64.1* | |
478 | %lang(pl) %{_mandir}/pl/man1/wine64.1* | |
479 | %endif | |
da274952 AG |
480 | %{_mandir}/man1/msiexec.1* |
481 | %{_mandir}/man1/wineboot.1* | |
482 | %{_mandir}/man1/winecfg.1* | |
72ede285 | 483 | %{_mandir}/man1/winedbg.1* |
b86f1c34 | 484 | %{_mandir}/man1/wineserver.1* |
ad4623a1 AM |
485 | %lang(de) %{_mandir}/de/man1/wineserver.1* |
486 | %lang(fr) %{_mandir}/fr/man1/wineserver.1* | |
a91c2692 | 487 | %{_winedir} |
a6c536e0 | 488 | %{_desktopdir}/wine.desktop |
76055aa1 | 489 | %{_desktopdir}/wine-uninstaller.desktop |
887fffcf | 490 | %{_pixmapsdir}/%{name}.png |
5c4ec57b | 491 | |
55a96819 | 492 | %files programs -f files.programs |
e8f81a0a | 493 | %defattr(644,root,root,755) |
e8f81a0a | 494 | |
5c4ec57b | 495 | %files devel |
496 | %defattr(644,root,root,755) | |
47bd64d5 | 497 | %attr(755,root,root) %{_bindir}/fnt2fon |
d479f953 | 498 | %attr(755,root,root) %{_bindir}/function_grep.pl |
d479f953 | 499 | %attr(755,root,root) %{_bindir}/widl |
55a96819 | 500 | %attr(755,root,root) %{_bindir}/winebuild |
55a96819 | 501 | %attr(755,root,root) %{_bindir}/winedump |
1ae1bca2 | 502 | %attr(755,root,root) %{_bindir}/wineg++ |
d479f953 | 503 | %attr(755,root,root) %{_bindir}/winegcc |
504 | %attr(755,root,root) %{_bindir}/winemaker | |
9a9c7643 | 505 | %attr(755,root,root) %{_bindir}/winecpp |
55a96819 | 506 | %attr(755,root,root) %{_bindir}/wmc |
d479f953 | 507 | %attr(755,root,root) %{_bindir}/wrc |
7265d9f2 JB |
508 | %{_libdir}/wine/lib*.def |
509 | # no shared variants, so not separated | |
510 | %{_libdir}/wine/lib*.def.a | |
b93e474e | 511 | %{_libdir}/wine/libadsiid.a |
7265d9f2 | 512 | %{_libdir}/wine/libdx*.a |
beafc810 | 513 | %{_libdir}/wine/libstrmbase.a |
7265d9f2 JB |
514 | %{_libdir}/wine/libstrmiids.a |
515 | %{_libdir}/wine/libuuid.a | |
516 | %{_libdir}/wine/libwinecrt0.a | |
5c4ec57b | 517 | %{_includedir}/wine |
34f03014 | 518 | %{_mandir}/man1/widl.1* |
0aac4f59 | 519 | %{_mandir}/man1/winebuild.1* |
da274952 | 520 | %{_mandir}/man1/winecpp.1* |
34f03014 | 521 | %{_mandir}/man1/winedump.1* |
bff06719 | 522 | %{_mandir}/man1/winegcc.1* |
5ec7e550 | 523 | %{_mandir}/man1/wineg++.1* |
34f03014 | 524 | %{_mandir}/man1/winemaker.1* |
0aac4f59 | 525 | %lang(de) %{_mandir}/de/man1/winemaker.1* |
6ebf503e | 526 | %lang(fr) %{_mandir}/fr/man1/winemaker.1* |
34f03014 JB |
527 | %{_mandir}/man1/wmc.1* |
528 | %{_mandir}/man1/wrc.1* | |
2b5050a8 | 529 | %{_aclocaldir}/*.m4 |
f18f723c | 530 | |
beafc810 MM |
531 | %files dll-capi |
532 | %defattr(644,root,root,755) | |
533 | %attr(755,root,root) %{_libdir}/wine/capi2032.dll.so | |
534 | ||
16e36f25 JB |
535 | %files dll-d3d |
536 | %defattr(644,root,root,755) | |
537 | %attr(755,root,root) %{_libdir}/wine/d3d8.dll.so | |
538 | %attr(755,root,root) %{_libdir}/wine/d3d9.dll.so | |
16e36f25 JB |
539 | %attr(755,root,root) %{_libdir}/wine/wined3d.dll.so |
540 | ||
541 | %files dll-gl | |
542 | %defattr(644,root,root,755) | |
543 | %attr(755,root,root) %{_libdir}/wine/glu32.dll.so | |
544 | %attr(755,root,root) %{_libdir}/wine/opengl32.dll.so | |
545 | ||
546 | %if %{with sane} | |
547 | %files dll-twain | |
548 | %defattr(644,root,root,755) | |
b08b16bf | 549 | %attr(755,root,root) %{_libdir}/wine/sane.ds.so |
72878a4c | 550 | %attr(755,root,root) %{_libdir}/wine/twain*.dll.so |
16e36f25 JB |
551 | %endif |
552 | ||
9d6715c4 ER |
553 | %if %{with ldap} |
554 | %files dll-ldap | |
555 | %defattr(644,root,root,755) | |
556 | %attr(755,root,root) %{_libdir}/wine/wldap*.dll.so | |
557 | %endif | |
558 | ||
16e36f25 JB |
559 | %if %{with alsa} |
560 | %files drv-alsa | |
561 | %defattr(644,root,root,755) | |
562 | %attr(755,root,root) %{_libdir}/wine/winealsa.drv.so | |
563 | %endif | |
564 | ||
16e36f25 JB |
565 | # additional dependencies in *.so not separated (yet?) from main package |
566 | # ddraw.dll.so,x11drv.dll.so depend on X11 libs | |
567 | # ole2disp.dll.so,oleaut32.dll.so,typelib.dll.so depend on lib(un)gif,libjpeg,libX11 | |
568 | # ttydrv.dll.so depends on ncurses |