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