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