]>
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 | 7 | %bcond_without sane # don't build TWAIN DLL with scanning support (through SANE) |
9d6715c4 | 8 | %bcond_without ldap # don't build LDAP DLL |
16e36f25 | 9 | %bcond_without cups # without CUPS printing support in winspool,wineps DLLs |
7a30e9d7 | 10 | # |
c504380e | 11 | # TODO: |
12 | # - support for CAPI (ISDN support; --with-capi) | |
13 | # | |
546bbb82 | 14 | # NOTE: wine detects the following SONAMES for dlopen at build time: |
16e36f25 JB |
15 | # libcrypto,libssl (wininet.dll) |
16 | # libcups (winspool.dll.so,wineps.dll.so) | |
17 | # libcurses/libncurses (wineconsole program) | |
18 | # libfontconfig (gdi32.dll.so) | |
19 | # libfreetype (wineps.dll.so,gdi32.dll.so) | |
20 | # libGL (x11drv.dll.so,ddraw.dll.so) | |
21 | # libjack (winejack.drv.so - explicit dependency in subpackage) | |
e7acaf22 | 22 | # libX11, libXext, libXi, libXrender (x11drv.dll.so) |
546bbb82 | 23 | # thus requires rebuild after change of any of the above. |
931f130b JB |
24 | # |
25 | # JACK requires ALSA | |
c226320b | 26 | %if %{without alsa} |
931f130b JB |
27 | %undefine with_jack |
28 | %endif | |
6ebf503e | 29 | |
698e86e7 | 30 | Summary: Program that lets you launch Win applications |
93e41e44 ER |
31 | Summary(es.UTF-8): Ejecuta programas Windows en Linux |
32 | Summary(pl.UTF-8): Program pozwalający uruchamiać aplikacje Windows | |
33 | Summary(pt_BR.UTF-8): Executa programas Windows no Linux | |
5c4ec57b | 34 | Name: wine |
e334b795 | 35 | Version: 1.2.3 |
9d6715c4 | 36 | Release: 3 |
46114a9a | 37 | Epoch: 1 |
528c1138 | 38 | License: LGPL |
5c4ec57b | 39 | Group: Applications/Emulators |
3bc6cdbe | 40 | Source0: http://ibiblio.org/pub/linux/system/emulators/wine/%{name}-%{version}.tar.bz2 |
e334b795 | 41 | # Source0-md5: a18ca677d1e01d1596d6692a8f3997e5 |
887fffcf | 42 | Source1: http://downloads.sourceforge.net/wine/%{name}_gecko-1.0.0-x86.cab |
f7357f09 JR |
43 | # Source1-md5: 9c5c335fc077c0558561afaf25a09e51 |
44 | Source2: %{name}-uninstaller.desktop | |
b68a79ec | 45 | Patch0: %{name}-fontcache.patch |
a0ff0658 | 46 | Patch1: %{name}-makedep.patch |
a4a10255 | 47 | Patch2: %{name}-ncurses.patch |
8b4bf701 | 48 | Patch4: %{name}-disable-valgrind.patch |
5312a936 | 49 | Patch5: %{name}-ca_certificates.patch |
84474518 | 50 | Patch6: %{name}-manpaths.patch |
51 | Patch7: 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 |
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 | |
9d6715c4 | 85 | %{?with_ldap: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 |
8df63af6 | 106 | Requires(post): /sbin/ldconfig |
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 | 228 | |
9d6715c4 ER |
229 | %package dll-ldap |
230 | Summary: Win32 LDAP API DLL for Wine. | |
231 | Group: Applications/Emulators | |
232 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
233 | ||
234 | %description dll-ldap | |
235 | Lightweight Directory Access Protocol Library. | |
236 | ||
16e36f25 JB |
237 | %package drv-alsa |
238 | Summary: ALSA driver for WINE mm.dll implementation | |
93e41e44 | 239 | Summary(pl.UTF-8): Sterownik ALSA dla implementacji mm.dll w Wine |
16e36f25 | 240 | Group: Applications/Emulators |
46114a9a | 241 | Requires: %{name} = %{epoch}:%{version}-%{release} |
16e36f25 JB |
242 | |
243 | %description drv-alsa | |
244 | ALSA driver for WINE mm.dll (multimedia system) implementation. | |
245 | ||
c967e47d JR |
246 | %description drv-alsa -l pl.UTF-8 |
247 | Sterownik ALSA dla implementacji mm.dll (systemu multimediów) w Wine. | |
16e36f25 | 248 | |
16e36f25 JB |
249 | %package drv-jack |
250 | Summary: JACK driver for WINE mm.dll implementation | |
93e41e44 | 251 | Summary(pl.UTF-8): Sterownik JACK-a dla implementacji mm.dll w Wine |
16e36f25 | 252 | Group: Applications/Emulators |
46114a9a | 253 | Requires: %{name} = %{epoch}:%{version}-%{release} |
16e36f25 JB |
254 | Requires: jack-audio-connection-kit |
255 | # dlopened by SONAME detected at build time | |
f29d6a4f AM |
256 | %ifarch %{x8664} |
257 | %{?with_jack:Requires: %{getsoname /usr/%{_lib}/libjack.so}()(64bit)} | |
258 | %else | |
42c123f0 | 259 | %{?with_jack:Requires: %{getsoname /usr/%{_lib}/libjack.so}} |
f29d6a4f | 260 | %endif |
16e36f25 JB |
261 | |
262 | %description drv-jack | |
263 | JACK driver for WINE mm.dll (multimedia system) implementation. | |
264 | ||
c967e47d JR |
265 | %description drv-jack -l pl.UTF-8 |
266 | Sterownik JACK-a dla implementacji mm.dll (systemu multimediów) w | |
b9f73ce4 | 267 | Wine. |
16e36f25 JB |
268 | |
269 | %package drv-nas | |
270 | Summary: NAS driver for WINE mm.dll implementation | |
93e41e44 | 271 | Summary(pl.UTF-8): Sterownik NAS dla implementacji mm.dll w Wine |
16e36f25 | 272 | Group: Applications/Emulators |
46114a9a | 273 | Requires: %{name} = %{epoch}:%{version}-%{release} |
16e36f25 JB |
274 | |
275 | %description drv-nas | |
276 | NAS driver for WINE mm.dll (multimedia system) implementation. | |
277 | ||
c967e47d JR |
278 | %description drv-nas -l pl.UTF-8 |
279 | Sterownik NAS dla implementacji mm.dll (systemu multimediów) w Wine. | |
16e36f25 | 280 | |
5c4ec57b | 281 | %prep |
3bc6cdbe | 282 | %setup -q |
2fbbb535 | 283 | %patch0 -p1 |
284 | %patch1 -p1 | |
ab25825d | 285 | %patch2 -p1 |
8b4bf701 | 286 | %patch4 -p1 |
5312a936 | 287 | %patch5 -p1 |
3bfef0cd | 288 | %patch6 -p1 |
aa3806d3 | 289 | %patch7 -p1 |
591d55ba | 290 | |
5c4ec57b | 291 | %build |
887fffcf ER |
292 | icotool -x --width=32 --height=32 --bit-depth=32 -o . dlls/user32/resources/oic_winlogo.ico |
293 | mv -f oic_winlogo_*.png %{name}.png | |
294 | ||
2fbbb535 | 295 | %{__autoconf} |
103d8328 | 296 | %{__autoheader} |
9d6a128d | 297 | %configure \ |
f829f028 AM |
298 | %ifarch %{x8664} |
299 | --enable-win64 \ | |
300 | %endif | |
c504380e | 301 | --with%{!?with_alsa:out}-alsa \ |
d0d61ce7 | 302 | --with-audioio \ |
303 | --without-capi \ | |
beb8121e | 304 | --with-cms \ |
d0d61ce7 | 305 | --with-coreaudio \ |
c504380e | 306 | --with%{!?with_cups:out}-cups \ |
c504380e | 307 | --with-curses \ |
02bfa308 | 308 | --with%{!?with_esd:out}-esd \ |
c504380e | 309 | --with-fontconfig \ |
310 | --with-freetype \ | |
311 | --with-glu \ | |
d0d61ce7 | 312 | --with-gnutls \ |
beb8121e | 313 | --with-gphoto \ |
d0d61ce7 | 314 | --with-gsm \ |
c504380e | 315 | --with%{!?with_jack:out}-jack \ |
316 | --with-jpeg \ | |
9d6715c4 | 317 | --with%{!?with_ldap:out}-ldap \ |
d0d61ce7 | 318 | --with-mpg123 \ |
c504380e | 319 | --with%{!?with_nas:out}-nas \ |
320 | --with-opengl \ | |
321 | --with-openssl \ | |
322 | --with-oss \ | |
323 | --with-png \ | |
d0d61ce7 | 324 | --with-pthread \ |
c504380e | 325 | --with%{!?with_sane:out}-sane \ |
beb8121e | 326 | --with-xcomposite \ |
327 | --with-xcursor \ | |
328 | --with-xinerama \ | |
329 | --with-xinput \ | |
c504380e | 330 | --with-xml \ |
beb8121e | 331 | --with-xrandr \ |
c504380e | 332 | --with-xrender \ |
333 | --with-xshape \ | |
334 | --with-xshm \ | |
335 | --with-xslt \ | |
beb8121e | 336 | --with-xxf86vm \ |
698e86e7 | 337 | --with-x |
05eb066b | 338 | %{__make} depend |
4aafdd81 | 339 | %{__make} |
e8f81a0a | 340 | |
5c4ec57b | 341 | %install |
342 | rm -rf $RPM_BUILD_ROOT | |
ffb676e0 | 343 | install -d $RPM_BUILD_ROOT{%{_mandir}/man1,%{_aclocaldir}} |
c7af491d JB |
344 | %{__make} install \ |
345 | DESTDIR=$RPM_BUILD_ROOT | |
346 | ||
887fffcf ER |
347 | install -p tools/fnt2bdf $RPM_BUILD_ROOT%{_bindir} |
348 | cp -a aclocal.m4 $RPM_BUILD_ROOT%{_aclocaldir}/wine.m4 | |
0b87866b | 349 | |
2a437456 | 350 | install -d \ |
65c325f6 | 351 | $RPM_BUILD_ROOT%{_winedir}/windows/{system,Desktop,Favorites,Fonts} \ |
352 | "$RPM_BUILD_ROOT%{_winedir}/windows/Start Menu/Programs/Startup" \ | |
a91c2692 | 353 | $RPM_BUILD_ROOT%{_winedir}/windows/{SendTo,ShellNew,system32,NetHood} \ |
354 | $RPM_BUILD_ROOT%{_winedir}/windows/{Profiles/Administrator,Recent} \ | |
355 | $RPM_BUILD_ROOT%{_winedir}/{"Program Files/Common Files","My Documents"} | |
356 | ||
a91c2692 | 357 | touch $RPM_BUILD_ROOT%{_winedir}/{autoexec.bat,config.sys,windows/win.ini} |
358 | touch $RPM_BUILD_ROOT%{_winedir}/windows/system/{shell.dll,shell32.dll} | |
359 | touch $RPM_BUILD_ROOT%{_winedir}/windows/system/{winsock.dll,wsock32.dll} | |
360 | ||
76055aa1 | 361 | cat > $RPM_BUILD_ROOT%{_winedir}/windows/system.ini <<'EOF' |
a91c2692 | 362 | [mci] |
363 | cdaudio=mcicda.drv | |
364 | sequencer=mciseq.drv | |
365 | waveaudio=mciwave.drv | |
366 | avivideo=mciavi.drv | |
367 | videodisc=mcipionr.drv | |
368 | vcr=mciviscd.drv | |
369 | MPEGVideo=mciqtz.drv | |
5c4ec57b | 370 | EOF |
371 | ||
e8f81a0a | 372 | %if %{?debug:0}%{!?debug:1} |
f1f3af79 JB |
373 | echo "Strip executable binaries and shared object files." |
374 | filelist=`find $RPM_BUILD_ROOT -type f ! -regex ".*ld-[0-9.]*so.*"` | |
375 | elfexelist=`echo $filelist | xargs -r file | \ | |
376 | awk '/ELF.*executable/ {print $1}' | cut -d: -f1` | |
377 | elfsharedlist=`echo $filelist | xargs -r file | \ | |
378 | awk '/LF.*shared object/ {print $1}' | cut -d: -f1`; \ | |
379 | if [ -n "$elfexelist" ]; then \ | |
380 | strip -R .note -R .comment $elfexelist | |
381 | fi | |
382 | if [ -n "$elfsharedlist" ]; then | |
65c325f6 | 383 | strip --strip-unneeded -R .note -R .comment $elfsharedlist |
f1f3af79 | 384 | fi |
e8f81a0a | 385 | %endif |
f1f3af79 | 386 | |
80496098 | 387 | # /sbin/chstk -e $RPM_BUILD_ROOT%{_bindir}/wine |
5c4ec57b | 388 | |
887fffcf ER |
389 | dir=$(pwd) |
390 | > files.so | |
391 | > files.programs | |
55a96819 | 392 | cd $RPM_BUILD_ROOT%{_libdir}/wine |
393 | for f in *.so; do | |
16e36f25 | 394 | case $f in |
9d6715c4 | 395 | 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|wldap32.dll.so) |
887fffcf ER |
396 | ;; |
397 | *) | |
398 | echo "%attr(755,root,root) %{_libdir}/wine/$f" >> $dir/files.so | |
16e36f25 | 399 | esac |
55a96819 | 400 | done |
401 | cd - | |
887fffcf ER |
402 | |
403 | programs="notepad regedit regsvr32 wineconsole winefile winemine winepath" | |
2f6853f9 | 404 | for p in $programs; do |
8d493411 | 405 | echo "%attr(755,root,root) %{_bindir}/$p" >> files.programs |
406 | echo "%attr(755,root,root) %{_libdir}/wine/$p.exe.so" >> files.programs | |
da274952 | 407 | echo "%{_mandir}/man1/$p.1*" >> files.programs |
8d493411 | 408 | grep -v "$p\.exe\.so$" files.so > files.so. |
409 | mv -f files.so. files.so | |
55a96819 | 410 | done |
55a96819 | 411 | |
f7357f09 | 412 | install -d $RPM_BUILD_ROOT%{_winedir}/gecko |
887fffcf | 413 | cp -a %{SOURCE1} $RPM_BUILD_ROOT%{_winedir}/gecko |
f7357f09 | 414 | |
887fffcf ER |
415 | install -d $RPM_BUILD_ROOT%{_pixmapsdir} |
416 | cp -a %{SOURCE2} $RPM_BUILD_ROOT%{_desktopdir} | |
417 | cp -a %{name}.png $RPM_BUILD_ROOT%{_pixmapsdir} | |
76055aa1 | 418 | |
5c4ec57b | 419 | %clean |
420 | rm -rf $RPM_BUILD_ROOT | |
421 | ||
8df63af6 ER |
422 | %post |
423 | /sbin/ldconfig | |
424 | %update_desktop_database | |
425 | ||
f1f3af79 JB |
426 | %postun -p /sbin/ldconfig |
427 | ||
d142aa07 | 428 | %triggerpostun -- wine < 1:0.9.12-1.9 |
ccb219e0 | 429 | rm -f /var/lock/subsys/wine |
d142aa07 JB |
430 | if [ -x /sbin/chkconfig ]; then |
431 | /sbin/chkconfig --del wine | |
432 | fi | |
433 | ||
55a96819 | 434 | %files -f files.so |
5c4ec57b | 435 | %defattr(644,root,root,755) |
64ef6fe1 | 436 | %doc README documentation/ChangeLog* AUTHORS ANNOUNCE |
12b1296e | 437 | %lang(de) %doc documentation/README.de |
438 | %lang(es) %doc documentation/README.es | |
439 | %lang(fr) %doc documentation/README.fr | |
0aac4f59 | 440 | %lang(hu) %doc documentation/README.hu |
12b1296e | 441 | %lang(it) %doc documentation/README.it |
7b9e958b | 442 | %lang(ko) %doc documentation/README.ko |
58a0e5f4 | 443 | %lang(nb) %doc documentation/README.no |
12b1296e | 444 | %lang(pt) %doc documentation/README.pt |
74de5921 | 445 | %lang(pt_BR) %doc documentation/README.pt_br |
0aac4f59 KK |
446 | %lang(ru) %doc documentation/README.ru |
447 | %lang(sv) %doc documentation/README.sv | |
448 | %lang(tr) %doc documentation/README.tr | |
82432451 | 449 | %attr(755,root,root) %{_bindir}/msiexec |
d479f953 | 450 | %attr(755,root,root) %{_bindir}/wineboot |
55a96819 | 451 | %attr(755,root,root) %{_bindir}/winedbg |
0aac4f59 | 452 | %attr(755,root,root) %{_bindir}/winecfg |
591d55ba | 453 | %attr(755,root,root) %{_bindir}/wineserver |
f829f028 AM |
454 | %ifarch %{x8664} |
455 | %attr(755,root,root) %{_bindir}/wine64 | |
456 | %else | |
457 | %attr(755,root,root) %{_bindir}/wine | |
458 | %attr(755,root,root) %{_bindir}/wine-preloader | |
459 | %endif | |
8a1d358f | 460 | %attr(755,root,root) %{_libdir}/*.so* |
861238d3 | 461 | %dir %{_libdir}/wine |
61e39970 | 462 | %dir %{_libdir}/wine/fakedlls |
463 | %{_libdir}/wine/fakedlls/*.acm | |
464 | %{_libdir}/wine/fakedlls/*.cpl | |
465 | %{_libdir}/wine/fakedlls/*.dll | |
61e39970 | 466 | %{_libdir}/wine/fakedlls/*.drv |
61e39970 | 467 | %{_libdir}/wine/fakedlls/*.ds |
468 | %{_libdir}/wine/fakedlls/*.exe | |
61e39970 | 469 | %{_libdir}/wine/fakedlls/*.ocx |
470 | %{_libdir}/wine/fakedlls/*.sys | |
471 | %{_libdir}/wine/fakedlls/*.tlb | |
f829f028 AM |
472 | %ifarch %{ix86} |
473 | %{_libdir}/wine/fakedlls/*.dll16 | |
474 | %{_libdir}/wine/fakedlls/*.drv16 | |
475 | %{_libdir}/wine/fakedlls/*.exe16 | |
476 | %{_libdir}/wine/fakedlls/*.mod16 | |
61e39970 | 477 | %{_libdir}/wine/fakedlls/*.vxd |
f829f028 | 478 | %endif |
b86f1c34 | 479 | %{_mandir}/man1/wine.1* |
da274952 AG |
480 | %{_mandir}/man1/msiexec.1* |
481 | %{_mandir}/man1/wineboot.1* | |
482 | %{_mandir}/man1/winecfg.1* | |
aa3806d3 AG |
483 | %lang(de) %{_mandir}/de/man1/wine.1* |
484 | %lang(fr) %{_mandir}/fr/man1/wine.1* | |
72ede285 | 485 | %{_mandir}/man1/winedbg.1* |
b86f1c34 | 486 | %{_mandir}/man1/wineserver.1* |
0aac4f59 | 487 | %lang(de) %{_mandir}/de/man1/wineserver.1* |
aa3806d3 | 488 | %lang(fr) %{_mandir}/fr/man1/wineserver.1* |
a91c2692 | 489 | %{_winedir} |
a6c536e0 | 490 | %{_desktopdir}/wine.desktop |
76055aa1 | 491 | %{_desktopdir}/wine-uninstaller.desktop |
887fffcf | 492 | %{_pixmapsdir}/%{name}.png |
5c4ec57b | 493 | |
55a96819 | 494 | %files programs -f files.programs |
e8f81a0a | 495 | %defattr(644,root,root,755) |
e8f81a0a | 496 | |
5c4ec57b | 497 | %files devel |
498 | %defattr(644,root,root,755) | |
d479f953 | 499 | %attr(755,root,root) %{_bindir}/fnt2bdf |
500 | %attr(755,root,root) %{_bindir}/function_grep.pl | |
d479f953 | 501 | %attr(755,root,root) %{_bindir}/widl |
55a96819 | 502 | %attr(755,root,root) %{_bindir}/winebuild |
55a96819 | 503 | %attr(755,root,root) %{_bindir}/winedump |
1ae1bca2 | 504 | %attr(755,root,root) %{_bindir}/wineg++ |
d479f953 | 505 | %attr(755,root,root) %{_bindir}/winegcc |
506 | %attr(755,root,root) %{_bindir}/winemaker | |
9a9c7643 | 507 | %attr(755,root,root) %{_bindir}/winecpp |
55a96819 | 508 | %attr(755,root,root) %{_bindir}/wmc |
d479f953 | 509 | %attr(755,root,root) %{_bindir}/wrc |
7265d9f2 JB |
510 | %{_libdir}/wine/lib*.def |
511 | # no shared variants, so not separated | |
512 | %{_libdir}/wine/lib*.def.a | |
b93e474e | 513 | %{_libdir}/wine/libadsiid.a |
7265d9f2 JB |
514 | %{_libdir}/wine/libdx*.a |
515 | %{_libdir}/wine/libstrmiids.a | |
516 | %{_libdir}/wine/libuuid.a | |
517 | %{_libdir}/wine/libwinecrt0.a | |
5c4ec57b | 518 | %{_includedir}/wine |
34f03014 | 519 | %{_mandir}/man1/widl.1* |
0aac4f59 | 520 | %{_mandir}/man1/winebuild.1* |
da274952 | 521 | %{_mandir}/man1/winecpp.1* |
34f03014 | 522 | %{_mandir}/man1/winedump.1* |
bff06719 | 523 | %{_mandir}/man1/winegcc.1* |
5ec7e550 | 524 | %{_mandir}/man1/wineg++.1* |
34f03014 | 525 | %{_mandir}/man1/winemaker.1* |
0aac4f59 | 526 | %lang(de) %{_mandir}/de/man1/winemaker.1* |
6ebf503e | 527 | %lang(fr) %{_mandir}/fr/man1/winemaker.1* |
34f03014 JB |
528 | %{_mandir}/man1/wmc.1* |
529 | %{_mandir}/man1/wrc.1* | |
2b5050a8 | 530 | %{_aclocaldir}/*.m4 |
f18f723c | 531 | |
16e36f25 JB |
532 | %files dll-d3d |
533 | %defattr(644,root,root,755) | |
534 | %attr(755,root,root) %{_libdir}/wine/d3d8.dll.so | |
535 | %attr(755,root,root) %{_libdir}/wine/d3d9.dll.so | |
16e36f25 JB |
536 | %attr(755,root,root) %{_libdir}/wine/wined3d.dll.so |
537 | ||
538 | %files dll-gl | |
539 | %defattr(644,root,root,755) | |
540 | %attr(755,root,root) %{_libdir}/wine/glu32.dll.so | |
541 | %attr(755,root,root) %{_libdir}/wine/opengl32.dll.so | |
542 | ||
543 | %if %{with sane} | |
544 | %files dll-twain | |
545 | %defattr(644,root,root,755) | |
b08b16bf | 546 | %attr(755,root,root) %{_libdir}/wine/sane.ds.so |
72878a4c | 547 | %attr(755,root,root) %{_libdir}/wine/twain*.dll.so |
16e36f25 JB |
548 | %endif |
549 | ||
9d6715c4 ER |
550 | %if %{with ldap} |
551 | %files dll-ldap | |
552 | %defattr(644,root,root,755) | |
553 | %attr(755,root,root) %{_libdir}/wine/wldap*.dll.so | |
554 | %endif | |
555 | ||
16e36f25 JB |
556 | %if %{with alsa} |
557 | %files drv-alsa | |
558 | %defattr(644,root,root,755) | |
559 | %attr(755,root,root) %{_libdir}/wine/winealsa.drv.so | |
560 | %endif | |
561 | ||
16e36f25 JB |
562 | %if %{with jack} |
563 | %files drv-jack | |
564 | %defattr(644,root,root,755) | |
565 | %attr(755,root,root) %{_libdir}/wine/winejack.drv.so | |
566 | %endif | |
567 | ||
568 | %if %{with nas} | |
569 | %files drv-nas | |
570 | %defattr(644,root,root,755) | |
571 | %attr(755,root,root) %{_libdir}/wine/winenas.drv.so | |
572 | %endif | |
573 | ||
574 | # additional dependencies in *.so not separated (yet?) from main package | |
575 | # ddraw.dll.so,x11drv.dll.so depend on X11 libs | |
576 | # ole2disp.dll.so,oleaut32.dll.so,typelib.dll.so depend on lib(un)gif,libjpeg,libX11 | |
577 | # ttydrv.dll.so depends on ncurses |