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