]>
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 |
8df63af6 | 35 | Release: 2 |
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 |
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 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 |
591d55ba | 282 | |
5c4ec57b | 283 | %build |
887fffcf ER |
284 | icotool -x --width=32 --height=32 --bit-depth=32 -o . dlls/user32/resources/oic_winlogo.ico |
285 | mv -f oic_winlogo_*.png %{name}.png | |
286 | ||
2fbbb535 | 287 | %{__autoconf} |
103d8328 | 288 | %{__autoheader} |
9d6a128d | 289 | %configure \ |
f829f028 AM |
290 | %ifarch %{x8664} |
291 | --enable-win64 \ | |
292 | %endif | |
c504380e | 293 | --with%{!?with_alsa:out}-alsa \ |
d0d61ce7 | 294 | --with-audioio \ |
295 | --without-capi \ | |
beb8121e | 296 | --with-cms \ |
d0d61ce7 | 297 | --with-coreaudio \ |
c504380e | 298 | --with%{!?with_cups:out}-cups \ |
c504380e | 299 | --with-curses \ |
02bfa308 | 300 | --with%{!?with_esd:out}-esd \ |
c504380e | 301 | --with-fontconfig \ |
302 | --with-freetype \ | |
303 | --with-glu \ | |
d0d61ce7 | 304 | --with-gnutls \ |
beb8121e | 305 | --with-gphoto \ |
d0d61ce7 | 306 | --with-gsm \ |
beb8121e | 307 | --with-hal \ |
c504380e | 308 | --with%{!?with_jack:out}-jack \ |
309 | --with-jpeg \ | |
310 | --with-ldap \ | |
d0d61ce7 | 311 | --with-mpg123 \ |
c504380e | 312 | --with%{!?with_nas:out}-nas \ |
313 | --with-opengl \ | |
314 | --with-openssl \ | |
315 | --with-oss \ | |
316 | --with-png \ | |
d0d61ce7 | 317 | --with-pthread \ |
c504380e | 318 | --with%{!?with_sane:out}-sane \ |
beb8121e | 319 | --with-xcomposite \ |
320 | --with-xcursor \ | |
321 | --with-xinerama \ | |
322 | --with-xinput \ | |
c504380e | 323 | --with-xml \ |
beb8121e | 324 | --with-xrandr \ |
c504380e | 325 | --with-xrender \ |
326 | --with-xshape \ | |
327 | --with-xshm \ | |
328 | --with-xslt \ | |
beb8121e | 329 | --with-xxf86vm \ |
698e86e7 | 330 | --with-x |
05eb066b | 331 | %{__make} depend |
4aafdd81 | 332 | %{__make} |
e8f81a0a | 333 | |
5c4ec57b | 334 | %install |
335 | rm -rf $RPM_BUILD_ROOT | |
ffb676e0 | 336 | install -d $RPM_BUILD_ROOT{%{_mandir}/man1,%{_aclocaldir}} |
c7af491d JB |
337 | %{__make} install \ |
338 | DESTDIR=$RPM_BUILD_ROOT | |
339 | ||
887fffcf ER |
340 | install -p tools/fnt2bdf $RPM_BUILD_ROOT%{_bindir} |
341 | cp -a aclocal.m4 $RPM_BUILD_ROOT%{_aclocaldir}/wine.m4 | |
0b87866b | 342 | |
2a437456 | 343 | install -d \ |
65c325f6 | 344 | $RPM_BUILD_ROOT%{_winedir}/windows/{system,Desktop,Favorites,Fonts} \ |
345 | "$RPM_BUILD_ROOT%{_winedir}/windows/Start Menu/Programs/Startup" \ | |
a91c2692 | 346 | $RPM_BUILD_ROOT%{_winedir}/windows/{SendTo,ShellNew,system32,NetHood} \ |
347 | $RPM_BUILD_ROOT%{_winedir}/windows/{Profiles/Administrator,Recent} \ | |
348 | $RPM_BUILD_ROOT%{_winedir}/{"Program Files/Common Files","My Documents"} | |
349 | ||
a91c2692 | 350 | touch $RPM_BUILD_ROOT%{_winedir}/{autoexec.bat,config.sys,windows/win.ini} |
351 | touch $RPM_BUILD_ROOT%{_winedir}/windows/system/{shell.dll,shell32.dll} | |
352 | touch $RPM_BUILD_ROOT%{_winedir}/windows/system/{winsock.dll,wsock32.dll} | |
353 | ||
76055aa1 | 354 | cat > $RPM_BUILD_ROOT%{_winedir}/windows/system.ini <<'EOF' |
a91c2692 | 355 | [mci] |
356 | cdaudio=mcicda.drv | |
357 | sequencer=mciseq.drv | |
358 | waveaudio=mciwave.drv | |
359 | avivideo=mciavi.drv | |
360 | videodisc=mcipionr.drv | |
361 | vcr=mciviscd.drv | |
362 | MPEGVideo=mciqtz.drv | |
5c4ec57b | 363 | EOF |
364 | ||
e8f81a0a | 365 | %if %{?debug:0}%{!?debug:1} |
f1f3af79 JB |
366 | echo "Strip executable binaries and shared object files." |
367 | filelist=`find $RPM_BUILD_ROOT -type f ! -regex ".*ld-[0-9.]*so.*"` | |
368 | elfexelist=`echo $filelist | xargs -r file | \ | |
369 | awk '/ELF.*executable/ {print $1}' | cut -d: -f1` | |
370 | elfsharedlist=`echo $filelist | xargs -r file | \ | |
371 | awk '/LF.*shared object/ {print $1}' | cut -d: -f1`; \ | |
372 | if [ -n "$elfexelist" ]; then \ | |
373 | strip -R .note -R .comment $elfexelist | |
374 | fi | |
375 | if [ -n "$elfsharedlist" ]; then | |
65c325f6 | 376 | strip --strip-unneeded -R .note -R .comment $elfsharedlist |
f1f3af79 | 377 | fi |
e8f81a0a | 378 | %endif |
f1f3af79 | 379 | |
80496098 | 380 | # /sbin/chstk -e $RPM_BUILD_ROOT%{_bindir}/wine |
5c4ec57b | 381 | |
887fffcf ER |
382 | dir=$(pwd) |
383 | > files.so | |
384 | > files.programs | |
55a96819 | 385 | cd $RPM_BUILD_ROOT%{_libdir}/wine |
386 | for f in *.so; do | |
16e36f25 | 387 | case $f in |
887fffcf ER |
388 | 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) |
389 | ;; | |
390 | *) | |
391 | echo "%attr(755,root,root) %{_libdir}/wine/$f" >> $dir/files.so | |
16e36f25 | 392 | esac |
55a96819 | 393 | done |
394 | cd - | |
887fffcf ER |
395 | |
396 | programs="notepad regedit regsvr32 wineconsole winefile winemine winepath" | |
2f6853f9 | 397 | for p in $programs; do |
8d493411 | 398 | echo "%attr(755,root,root) %{_bindir}/$p" >> files.programs |
399 | echo "%attr(755,root,root) %{_libdir}/wine/$p.exe.so" >> files.programs | |
da274952 | 400 | echo "%{_mandir}/man1/$p.1*" >> files.programs |
8d493411 | 401 | grep -v "$p\.exe\.so$" files.so > files.so. |
402 | mv -f files.so. files.so | |
55a96819 | 403 | done |
55a96819 | 404 | |
f7357f09 | 405 | install -d $RPM_BUILD_ROOT%{_winedir}/gecko |
887fffcf | 406 | cp -a %{SOURCE1} $RPM_BUILD_ROOT%{_winedir}/gecko |
f7357f09 | 407 | |
887fffcf ER |
408 | install -d $RPM_BUILD_ROOT%{_pixmapsdir} |
409 | cp -a %{SOURCE2} $RPM_BUILD_ROOT%{_desktopdir} | |
410 | cp -a %{name}.png $RPM_BUILD_ROOT%{_pixmapsdir} | |
76055aa1 | 411 | |
5c4ec57b | 412 | %clean |
413 | rm -rf $RPM_BUILD_ROOT | |
414 | ||
8df63af6 ER |
415 | %post |
416 | /sbin/ldconfig | |
417 | %update_desktop_database | |
418 | ||
f1f3af79 JB |
419 | %postun -p /sbin/ldconfig |
420 | ||
d142aa07 | 421 | %triggerpostun -- wine < 1:0.9.12-1.9 |
ccb219e0 | 422 | rm -f /var/lock/subsys/wine |
d142aa07 JB |
423 | if [ -x /sbin/chkconfig ]; then |
424 | /sbin/chkconfig --del wine | |
425 | fi | |
426 | ||
55a96819 | 427 | %files -f files.so |
5c4ec57b | 428 | %defattr(644,root,root,755) |
64ef6fe1 | 429 | %doc README documentation/ChangeLog* AUTHORS ANNOUNCE |
12b1296e | 430 | %lang(de) %doc documentation/README.de |
431 | %lang(es) %doc documentation/README.es | |
432 | %lang(fr) %doc documentation/README.fr | |
0aac4f59 | 433 | %lang(hu) %doc documentation/README.hu |
12b1296e | 434 | %lang(it) %doc documentation/README.it |
7b9e958b | 435 | %lang(ko) %doc documentation/README.ko |
58a0e5f4 | 436 | %lang(nb) %doc documentation/README.no |
12b1296e | 437 | %lang(pt) %doc documentation/README.pt |
74de5921 | 438 | %lang(pt_BR) %doc documentation/README.pt_br |
0aac4f59 KK |
439 | %lang(ru) %doc documentation/README.ru |
440 | %lang(sv) %doc documentation/README.sv | |
441 | %lang(tr) %doc documentation/README.tr | |
82432451 | 442 | %attr(755,root,root) %{_bindir}/msiexec |
d479f953 | 443 | %attr(755,root,root) %{_bindir}/wineboot |
55a96819 | 444 | %attr(755,root,root) %{_bindir}/winedbg |
0aac4f59 | 445 | %attr(755,root,root) %{_bindir}/winecfg |
591d55ba | 446 | %attr(755,root,root) %{_bindir}/wineserver |
f829f028 AM |
447 | %ifarch %{x8664} |
448 | %attr(755,root,root) %{_bindir}/wine64 | |
449 | %else | |
450 | %attr(755,root,root) %{_bindir}/wine | |
451 | %attr(755,root,root) %{_bindir}/wine-preloader | |
452 | %endif | |
8a1d358f | 453 | %attr(755,root,root) %{_libdir}/*.so* |
861238d3 | 454 | %dir %{_libdir}/wine |
61e39970 | 455 | %dir %{_libdir}/wine/fakedlls |
456 | %{_libdir}/wine/fakedlls/*.acm | |
457 | %{_libdir}/wine/fakedlls/*.cpl | |
458 | %{_libdir}/wine/fakedlls/*.dll | |
61e39970 | 459 | %{_libdir}/wine/fakedlls/*.drv |
61e39970 | 460 | %{_libdir}/wine/fakedlls/*.ds |
461 | %{_libdir}/wine/fakedlls/*.exe | |
61e39970 | 462 | %{_libdir}/wine/fakedlls/*.ocx |
463 | %{_libdir}/wine/fakedlls/*.sys | |
464 | %{_libdir}/wine/fakedlls/*.tlb | |
f829f028 AM |
465 | %ifarch %{ix86} |
466 | %{_libdir}/wine/fakedlls/*.dll16 | |
467 | %{_libdir}/wine/fakedlls/*.drv16 | |
468 | %{_libdir}/wine/fakedlls/*.exe16 | |
469 | %{_libdir}/wine/fakedlls/*.mod16 | |
61e39970 | 470 | %{_libdir}/wine/fakedlls/*.vxd |
f829f028 | 471 | %endif |
b86f1c34 | 472 | %{_mandir}/man1/wine.1* |
da274952 AG |
473 | %{_mandir}/man1/msiexec.1* |
474 | %{_mandir}/man1/wineboot.1* | |
475 | %{_mandir}/man1/winecfg.1* | |
aa3806d3 AG |
476 | %lang(de) %{_mandir}/de/man1/wine.1* |
477 | %lang(fr) %{_mandir}/fr/man1/wine.1* | |
72ede285 | 478 | %{_mandir}/man1/winedbg.1* |
b86f1c34 | 479 | %{_mandir}/man1/wineserver.1* |
0aac4f59 | 480 | %lang(de) %{_mandir}/de/man1/wineserver.1* |
aa3806d3 | 481 | %lang(fr) %{_mandir}/fr/man1/wineserver.1* |
a91c2692 | 482 | %{_winedir} |
a6c536e0 | 483 | %{_desktopdir}/wine.desktop |
76055aa1 | 484 | %{_desktopdir}/wine-uninstaller.desktop |
887fffcf | 485 | %{_pixmapsdir}/%{name}.png |
5c4ec57b | 486 | |
55a96819 | 487 | %files programs -f files.programs |
e8f81a0a | 488 | %defattr(644,root,root,755) |
e8f81a0a | 489 | |
5c4ec57b | 490 | %files devel |
491 | %defattr(644,root,root,755) | |
d479f953 | 492 | %attr(755,root,root) %{_bindir}/fnt2bdf |
493 | %attr(755,root,root) %{_bindir}/function_grep.pl | |
d479f953 | 494 | %attr(755,root,root) %{_bindir}/widl |
55a96819 | 495 | %attr(755,root,root) %{_bindir}/winebuild |
55a96819 | 496 | %attr(755,root,root) %{_bindir}/winedump |
1ae1bca2 | 497 | %attr(755,root,root) %{_bindir}/wineg++ |
d479f953 | 498 | %attr(755,root,root) %{_bindir}/winegcc |
499 | %attr(755,root,root) %{_bindir}/winemaker | |
9a9c7643 | 500 | %attr(755,root,root) %{_bindir}/winecpp |
55a96819 | 501 | %attr(755,root,root) %{_bindir}/wmc |
d479f953 | 502 | %attr(755,root,root) %{_bindir}/wrc |
7265d9f2 JB |
503 | %{_libdir}/wine/lib*.def |
504 | # no shared variants, so not separated | |
505 | %{_libdir}/wine/lib*.def.a | |
b93e474e | 506 | %{_libdir}/wine/libadsiid.a |
7265d9f2 JB |
507 | %{_libdir}/wine/libdx*.a |
508 | %{_libdir}/wine/libstrmiids.a | |
509 | %{_libdir}/wine/libuuid.a | |
510 | %{_libdir}/wine/libwinecrt0.a | |
5c4ec57b | 511 | %{_includedir}/wine |
34f03014 | 512 | %{_mandir}/man1/widl.1* |
0aac4f59 | 513 | %{_mandir}/man1/winebuild.1* |
da274952 | 514 | %{_mandir}/man1/winecpp.1* |
34f03014 | 515 | %{_mandir}/man1/winedump.1* |
bff06719 | 516 | %{_mandir}/man1/winegcc.1* |
5ec7e550 | 517 | %{_mandir}/man1/wineg++.1* |
34f03014 | 518 | %{_mandir}/man1/winemaker.1* |
0aac4f59 | 519 | %lang(de) %{_mandir}/de/man1/winemaker.1* |
6ebf503e | 520 | %lang(fr) %{_mandir}/fr/man1/winemaker.1* |
34f03014 JB |
521 | %{_mandir}/man1/wmc.1* |
522 | %{_mandir}/man1/wrc.1* | |
2b5050a8 | 523 | %{_aclocaldir}/*.m4 |
f18f723c | 524 | |
16e36f25 JB |
525 | %files dll-d3d |
526 | %defattr(644,root,root,755) | |
527 | %attr(755,root,root) %{_libdir}/wine/d3d8.dll.so | |
528 | %attr(755,root,root) %{_libdir}/wine/d3d9.dll.so | |
16e36f25 JB |
529 | %attr(755,root,root) %{_libdir}/wine/wined3d.dll.so |
530 | ||
531 | %files dll-gl | |
532 | %defattr(644,root,root,755) | |
533 | %attr(755,root,root) %{_libdir}/wine/glu32.dll.so | |
534 | %attr(755,root,root) %{_libdir}/wine/opengl32.dll.so | |
535 | ||
536 | %if %{with sane} | |
537 | %files dll-twain | |
538 | %defattr(644,root,root,755) | |
b08b16bf | 539 | %attr(755,root,root) %{_libdir}/wine/sane.ds.so |
72878a4c | 540 | %attr(755,root,root) %{_libdir}/wine/twain*.dll.so |
16e36f25 JB |
541 | %endif |
542 | ||
543 | %if %{with alsa} | |
544 | %files drv-alsa | |
545 | %defattr(644,root,root,755) | |
546 | %attr(755,root,root) %{_libdir}/wine/winealsa.drv.so | |
547 | %endif | |
548 | ||
16e36f25 JB |
549 | %if %{with jack} |
550 | %files drv-jack | |
551 | %defattr(644,root,root,755) | |
552 | %attr(755,root,root) %{_libdir}/wine/winejack.drv.so | |
553 | %endif | |
554 | ||
555 | %if %{with nas} | |
556 | %files drv-nas | |
557 | %defattr(644,root,root,755) | |
558 | %attr(755,root,root) %{_libdir}/wine/winenas.drv.so | |
559 | %endif | |
560 | ||
561 | # additional dependencies in *.so not separated (yet?) from main package | |
562 | # ddraw.dll.so,x11drv.dll.so depend on X11 libs | |
563 | # ole2disp.dll.so,oleaut32.dll.so,typelib.dll.so depend on lib(un)gif,libjpeg,libX11 | |
564 | # ttydrv.dll.so depends on ncurses |