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