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