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