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