]>
Commit | Line | Data |
---|---|---|
7a30e9d7 | 1 | # |
2 | # Conditional build: | |
931f130b | 3 | %bcond_without alsa # don't build ALSA mm driver |
beafc810 MM |
4 | %bcond_without capi # don't build CAPI 2.0 (ISDN) support |
5 | %bcond_without gstreamer # don't build GStreamer filters support | |
16e36f25 | 6 | %bcond_without sane # don't build TWAIN DLL with scanning support (through SANE) |
9d6715c4 | 7 | %bcond_without ldap # don't build LDAP DLL |
16e36f25 | 8 | %bcond_without cups # without CUPS printing support in winspool,wineps DLLs |
7a30e9d7 | 9 | # |
546bbb82 | 10 | # NOTE: wine detects the following SONAMES for dlopen at build time: |
16e36f25 JB |
11 | # libcrypto,libssl (wininet.dll) |
12 | # libcups (winspool.dll.so,wineps.dll.so) | |
13 | # libcurses/libncurses (wineconsole program) | |
14 | # libfontconfig (gdi32.dll.so) | |
15 | # libfreetype (wineps.dll.so,gdi32.dll.so) | |
16 | # libGL (x11drv.dll.so,ddraw.dll.so) | |
e7acaf22 | 17 | # libX11, libXext, libXi, libXrender (x11drv.dll.so) |
546bbb82 | 18 | # thus requires rebuild after change of any of the above. |
931f130b | 19 | # |
beafc810 | 20 | %define gecko_ver 1.4 |
698e86e7 | 21 | Summary: Program that lets you launch Win applications |
93e41e44 ER |
22 | Summary(es.UTF-8): Ejecuta programas Windows en Linux |
23 | Summary(pl.UTF-8): Program pozwalający uruchamiać aplikacje Windows | |
24 | Summary(pt_BR.UTF-8): Executa programas Windows no Linux | |
5c4ec57b | 25 | Name: wine |
beafc810 MM |
26 | Version: 1.4 |
27 | Release: 1 | |
46114a9a | 28 | Epoch: 1 |
528c1138 | 29 | License: LGPL |
5c4ec57b | 30 | Group: Applications/Emulators |
beafc810 MM |
31 | Source0: http://downloads.sourceforge.net/wine/%{name}-%{version}.tar.bz2 |
32 | # Source0-md5: 6594ab86a4b1fb2c09dadfb4ea7fc4af | |
33 | Source1: http://downloads.sourceforge.net/wine/%{name}_gecko-%{gecko_ver}-x86.msi | |
34 | # Source1-md5: 700aaa08724be1992cffed7b87e79a44 | |
35 | Source2: http://downloads.sourceforge.net/wine/%{name}_gecko-%{gecko_ver}-x86_64.msi | |
36 | # Source2-md5: 7b4811f667fd01d300fdff68420a9c72 | |
37 | Source3: %{name}-uninstaller.desktop | |
b68a79ec | 38 | Patch0: %{name}-fontcache.patch |
a0ff0658 | 39 | Patch1: %{name}-makedep.patch |
a4a10255 | 40 | Patch2: %{name}-ncurses.patch |
8b4bf701 | 41 | Patch4: %{name}-disable-valgrind.patch |
5312a936 | 42 | Patch5: %{name}-ca_certificates.patch |
84474518 | 43 | Patch6: %{name}-manpaths.patch |
44 | Patch7: desktop.patch | |
1b3d8891 | 45 | URL: http://www.winehq.org/ |
0aac4f59 | 46 | BuildRequires: OpenAL-devel >= 1.1 |
489ca66c | 47 | BuildRequires: OpenGL-GLU-devel |
6547534c KK |
48 | %{?with_alsa:BuildRequires: alsa-lib-devel} |
49 | %{?with_arts:BuildRequires: artsc-devel} | |
c7af491d JB |
50 | BuildRequires: autoconf |
51 | BuildRequires: automake | |
d3c41437 | 52 | BuildRequires: bison |
beafc810 | 53 | %{?with_capi:BuildRequires: capi4k-utils-devel} |
5715e1d1 | 54 | %{?with_cups:BuildRequires: cups-devel} |
f88a3451 | 55 | BuildRequires: docbook-dtd31-sgml |
56 | BuildRequires: docbook-utils | |
5fc34681 | 57 | BuildRequires: flex |
16e36f25 | 58 | BuildRequires: fontconfig-devel |
22432818 | 59 | BuildRequires: fontforge |
5fc34681 | 60 | BuildRequires: freetype-devel >= 2.0.5 |
beafc810 | 61 | BuildRequires: gettext-devel |
734deeec | 62 | BuildRequires: giflib-devel |
c57a98fe | 63 | BuildRequires: gnutls-devel |
beafc810 | 64 | %{?with_gstreamer:BuildRequires: gstreamer-plugins-base-devel} |
887fffcf | 65 | BuildRequires: icoutils |
beb8121e | 66 | BuildRequires: lcms-devel |
beb8121e | 67 | BuildRequires: libgphoto2-devel |
d0d61ce7 | 68 | BuildRequires: libgsm-devel |
c504380e | 69 | BuildRequires: libjpeg-devel |
2341e633 | 70 | BuildRequires: libmpg123-devel >= 1.5.0 |
1e160e6e | 71 | BuildRequires: libtool |
0aac4f59 | 72 | BuildRequires: libv4l-devel |
fbb1220c | 73 | BuildRequires: libxslt-devel |
8a1d358f | 74 | BuildRequires: ncurses-devel |
16e36f25 JB |
75 | # db2* failed previously - probably openjade or opensp bug |
76 | BuildRequires: openjade >= 1:1.3.3-0.pre1 | |
9d6715c4 | 77 | %{?with_ldap:BuildRequires: openldap-devel} |
16e36f25 | 78 | BuildRequires: opensp >= 1:1.5.1 |
2c81f5eb | 79 | BuildRequires: openssl-devel >= 0.9.7d |
beb8121e | 80 | BuildRequires: pkgconfig |
beafc810 | 81 | BuildRequires: prelink |
5715e1d1 | 82 | %{?with_sane:BuildRequires: sane-backends-devel} |
7057f2e9 | 83 | BuildRequires: unixODBC-devel >= 2.2.12-2 |
8b4bf701 | 84 | #BuildRequires: valgrind |
beb8121e | 85 | BuildRequires: xorg-lib-libXcomposite-devel |
86 | BuildRequires: xorg-lib-libXcursor-devel | |
c66c3406 | 87 | BuildRequires: xorg-lib-libXi-devel |
beb8121e | 88 | BuildRequires: xorg-lib-libXinerama-devel |
c66c3406 | 89 | BuildRequires: xorg-lib-libXmu-devel |
beb8121e | 90 | BuildRequires: xorg-lib-libXrandr-devel |
c66c3406 | 91 | BuildRequires: xorg-lib-libXrender-devel |
92 | BuildRequires: xorg-lib-libXxf86dga-devel | |
93 | BuildRequires: xorg-lib-libXxf86vm-devel | |
a2f68044 | 94 | Requires: libfreetype.so.6 |
8df63af6 | 95 | Requires(post): /sbin/ldconfig |
ae42c99e | 96 | Suggests: binfmt-detector |
be70b824 | 97 | Suggests: ca-certificates |
beafc810 | 98 | Suggests: cabextract |
a2f68044 | 99 | Conflicts: ca-certificates < 20080809-4 |
b3d3861d | 100 | # for printing needs lpr |
101 | Suggests: cups-clients | |
f96e197b | 102 | # for winelauncher |
3bddfbf2 | 103 | Suggests: xorg-app-xmessage |
f96e197b | 104 | # for ntlm_auth |
14e95129 | 105 | Suggests: samba-common >= 1:3.0.25 |
52b6007b JB |
106 | # link to wine/ntdll.dll.so, without any SONAME |
107 | Provides: libntdll.dll.so | |
7212da21 | 108 | Obsoletes: wine-doc-pdf |
93b34e12 | 109 | Obsoletes: wine-drv-arts |
beafc810 MM |
110 | Obsoletes: wine-drv-jack |
111 | Obsoletes: wine-drv-nas | |
f829f028 | 112 | ExclusiveArch: %{ix86} %{x8664} |
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 | |
beafc810 MM |
183 | %package dll-capi |
184 | Summary: CAPI 2.0 (ISDN) implementation DLLs for Wine | |
185 | Summary(pl.UTF-8): Biblioteki DLL z implementacją CAPI 2.0 (ISDN) dla Wine | |
186 | Group: Applications/Emulators | |
187 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
188 | ||
189 | %description dll-capi | |
190 | CAPI 2.0 (ISDN) implementation DLLs for Wine (through OpenGL). | |
191 | ||
192 | %description dll-capi -l pl.UTF-8 | |
193 | Biblioteki DLL z implementacją CAPI 2.0 (ISDN) dla Wine (poprzez | |
194 | OpenGL). | |
195 | ||
16e36f25 JB |
196 | %package dll-d3d |
197 | Summary: Direct3D implementation DLLs for Wine | |
93e41e44 | 198 | Summary(pl.UTF-8): Biblioteki DLL z implementacją Direct3D dla Wine |
16e36f25 | 199 | Group: Applications/Emulators |
46114a9a | 200 | Requires: %{name} = %{epoch}:%{version}-%{release} |
16e36f25 JB |
201 | Requires: OpenGL |
202 | ||
203 | %description dll-d3d | |
204 | Direct3D implementation DLLs for Wine (through OpenGL). | |
205 | ||
c967e47d JR |
206 | %description dll-d3d -l pl.UTF-8 |
207 | Biblioteki DLL z implementacją Direct3D dla Wine (poprzez OpenGL). | |
16e36f25 JB |
208 | |
209 | %package dll-gl | |
210 | Summary: OpenGL implementation DLLs for Wine | |
93e41e44 | 211 | Summary(pl.UTF-8): Biblioteki DLL z implementacją OpenGL dla Wine |
16e36f25 | 212 | Group: Applications/Emulators |
46114a9a | 213 | Requires: %{name} = %{epoch}:%{version}-%{release} |
16e36f25 JB |
214 | Requires: OpenGL |
215 | ||
216 | %description dll-gl | |
217 | OpenGL implementation DLLs for Wine. | |
218 | ||
c967e47d JR |
219 | %description dll-gl -l pl.UTF-8 |
220 | Biblioteki DLL z implementacją OpenGL dla Wine. | |
16e36f25 JB |
221 | |
222 | %package dll-twain | |
223 | Summary: TWAIN implementation DLL for Wine | |
93e41e44 | 224 | Summary(pl.UTF-8): Biblioteka DLL z implementacją TWAIN dla Wine |
16e36f25 | 225 | Group: Applications/Emulators |
46114a9a | 226 | Requires: %{name} = %{epoch}:%{version}-%{release} |
16e36f25 JB |
227 | |
228 | %description dll-twain | |
229 | TWAIN implementation DLL for Wine (through SANE). | |
230 | ||
c967e47d JR |
231 | %description dll-twain -l pl.UTF-8 |
232 | Biblioteka DLL z implementacją TWAIN dla Wine (poprzez SANE). | |
16e36f25 | 233 | |
9d6715c4 ER |
234 | %package dll-ldap |
235 | Summary: Win32 LDAP API DLL for Wine. | |
236 | Group: Applications/Emulators | |
237 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
238 | ||
239 | %description dll-ldap | |
240 | Lightweight Directory Access Protocol Library. | |
241 | ||
16e36f25 JB |
242 | %package drv-alsa |
243 | Summary: ALSA driver for WINE mm.dll implementation | |
93e41e44 | 244 | Summary(pl.UTF-8): Sterownik ALSA dla implementacji mm.dll w Wine |
16e36f25 | 245 | Group: Applications/Emulators |
46114a9a | 246 | Requires: %{name} = %{epoch}:%{version}-%{release} |
16e36f25 JB |
247 | |
248 | %description drv-alsa | |
249 | ALSA driver for WINE mm.dll (multimedia system) implementation. | |
250 | ||
c967e47d JR |
251 | %description drv-alsa -l pl.UTF-8 |
252 | Sterownik ALSA dla implementacji mm.dll (systemu multimediów) w Wine. | |
16e36f25 | 253 | |
5c4ec57b | 254 | %prep |
beafc810 | 255 | %setup -q -n %{name}-%{version} |
2fbbb535 | 256 | %patch0 -p1 |
257 | %patch1 -p1 | |
ab25825d | 258 | %patch2 -p1 |
8b4bf701 | 259 | %patch4 -p1 |
5312a936 | 260 | %patch5 -p1 |
3bfef0cd | 261 | %patch6 -p1 |
aa3806d3 | 262 | %patch7 -p1 |
591d55ba | 263 | |
5c4ec57b | 264 | %build |
887fffcf ER |
265 | icotool -x --width=32 --height=32 --bit-depth=32 -o . dlls/user32/resources/oic_winlogo.ico |
266 | mv -f oic_winlogo_*.png %{name}.png | |
267 | ||
2fbbb535 | 268 | %{__autoconf} |
103d8328 | 269 | %{__autoheader} |
9d6a128d | 270 | %configure \ |
f829f028 AM |
271 | %ifarch %{x8664} |
272 | --enable-win64 \ | |
273 | %endif | |
c504380e | 274 | --with%{!?with_alsa:out}-alsa \ |
beafc810 | 275 | --with%{!?with_capi:out}-capi \ |
beb8121e | 276 | --with-cms \ |
d0d61ce7 | 277 | --with-coreaudio \ |
c504380e | 278 | --with%{!?with_cups:out}-cups \ |
c504380e | 279 | --with-curses \ |
c504380e | 280 | --with-fontconfig \ |
281 | --with-freetype \ | |
282 | --with-glu \ | |
d0d61ce7 | 283 | --with-gnutls \ |
beb8121e | 284 | --with-gphoto \ |
d0d61ce7 | 285 | --with-gsm \ |
beafc810 | 286 | --with%{!?with_gstreamer:out}-gstreamer \ |
c504380e | 287 | --with-jpeg \ |
9d6715c4 | 288 | --with%{!?with_ldap:out}-ldap \ |
d0d61ce7 | 289 | --with-mpg123 \ |
c504380e | 290 | --with-opengl \ |
291 | --with-openssl \ | |
292 | --with-oss \ | |
293 | --with-png \ | |
d0d61ce7 | 294 | --with-pthread \ |
c504380e | 295 | --with%{!?with_sane:out}-sane \ |
beb8121e | 296 | --with-xcomposite \ |
297 | --with-xcursor \ | |
298 | --with-xinerama \ | |
299 | --with-xinput \ | |
c504380e | 300 | --with-xml \ |
beb8121e | 301 | --with-xrandr \ |
c504380e | 302 | --with-xrender \ |
303 | --with-xshape \ | |
304 | --with-xshm \ | |
305 | --with-xslt \ | |
beb8121e | 306 | --with-xxf86vm \ |
698e86e7 | 307 | --with-x |
05eb066b | 308 | %{__make} depend |
4aafdd81 | 309 | %{__make} |
e8f81a0a | 310 | |
5c4ec57b | 311 | %install |
312 | rm -rf $RPM_BUILD_ROOT | |
ffb676e0 | 313 | install -d $RPM_BUILD_ROOT{%{_mandir}/man1,%{_aclocaldir}} |
c7af491d JB |
314 | %{__make} install \ |
315 | DESTDIR=$RPM_BUILD_ROOT | |
316 | ||
887fffcf ER |
317 | install -p tools/fnt2bdf $RPM_BUILD_ROOT%{_bindir} |
318 | cp -a aclocal.m4 $RPM_BUILD_ROOT%{_aclocaldir}/wine.m4 | |
0b87866b | 319 | |
2a437456 | 320 | install -d \ |
65c325f6 | 321 | $RPM_BUILD_ROOT%{_winedir}/windows/{system,Desktop,Favorites,Fonts} \ |
322 | "$RPM_BUILD_ROOT%{_winedir}/windows/Start Menu/Programs/Startup" \ | |
a91c2692 | 323 | $RPM_BUILD_ROOT%{_winedir}/windows/{SendTo,ShellNew,system32,NetHood} \ |
324 | $RPM_BUILD_ROOT%{_winedir}/windows/{Profiles/Administrator,Recent} \ | |
325 | $RPM_BUILD_ROOT%{_winedir}/{"Program Files/Common Files","My Documents"} | |
326 | ||
a91c2692 | 327 | touch $RPM_BUILD_ROOT%{_winedir}/{autoexec.bat,config.sys,windows/win.ini} |
328 | touch $RPM_BUILD_ROOT%{_winedir}/windows/system/{shell.dll,shell32.dll} | |
329 | touch $RPM_BUILD_ROOT%{_winedir}/windows/system/{winsock.dll,wsock32.dll} | |
330 | ||
76055aa1 | 331 | cat > $RPM_BUILD_ROOT%{_winedir}/windows/system.ini <<'EOF' |
a91c2692 | 332 | [mci] |
333 | cdaudio=mcicda.drv | |
334 | sequencer=mciseq.drv | |
335 | waveaudio=mciwave.drv | |
336 | avivideo=mciavi.drv | |
337 | videodisc=mcipionr.drv | |
338 | vcr=mciviscd.drv | |
339 | MPEGVideo=mciqtz.drv | |
5c4ec57b | 340 | EOF |
341 | ||
e8f81a0a | 342 | %if %{?debug:0}%{!?debug:1} |
f1f3af79 JB |
343 | echo "Strip executable binaries and shared object files." |
344 | filelist=`find $RPM_BUILD_ROOT -type f ! -regex ".*ld-[0-9.]*so.*"` | |
345 | elfexelist=`echo $filelist | xargs -r file | \ | |
346 | awk '/ELF.*executable/ {print $1}' | cut -d: -f1` | |
347 | elfsharedlist=`echo $filelist | xargs -r file | \ | |
348 | awk '/LF.*shared object/ {print $1}' | cut -d: -f1`; \ | |
349 | if [ -n "$elfexelist" ]; then \ | |
350 | strip -R .note -R .comment $elfexelist | |
351 | fi | |
352 | if [ -n "$elfsharedlist" ]; then | |
65c325f6 | 353 | strip --strip-unneeded -R .note -R .comment $elfsharedlist |
f1f3af79 | 354 | fi |
e8f81a0a | 355 | %endif |
f1f3af79 | 356 | |
80496098 | 357 | # /sbin/chstk -e $RPM_BUILD_ROOT%{_bindir}/wine |
5c4ec57b | 358 | |
887fffcf ER |
359 | dir=$(pwd) |
360 | > files.so | |
361 | > files.programs | |
55a96819 | 362 | cd $RPM_BUILD_ROOT%{_libdir}/wine |
363 | for f in *.so; do | |
16e36f25 | 364 | case $f in |
beafc810 | 365 | 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|wldap32.dll.so) |
887fffcf ER |
366 | ;; |
367 | *) | |
368 | echo "%attr(755,root,root) %{_libdir}/wine/$f" >> $dir/files.so | |
16e36f25 | 369 | esac |
55a96819 | 370 | done |
371 | cd - | |
887fffcf ER |
372 | |
373 | programs="notepad regedit regsvr32 wineconsole winefile winemine winepath" | |
2f6853f9 | 374 | for p in $programs; do |
8d493411 | 375 | echo "%attr(755,root,root) %{_bindir}/$p" >> files.programs |
376 | echo "%attr(755,root,root) %{_libdir}/wine/$p.exe.so" >> files.programs | |
da274952 | 377 | echo "%{_mandir}/man1/$p.1*" >> files.programs |
8d493411 | 378 | grep -v "$p\.exe\.so$" files.so > files.so. |
379 | mv -f files.so. files.so | |
55a96819 | 380 | done |
55a96819 | 381 | |
f7357f09 | 382 | install -d $RPM_BUILD_ROOT%{_winedir}/gecko |
beafc810 | 383 | %ifnarch %{x8664} |
887fffcf | 384 | cp -a %{SOURCE1} $RPM_BUILD_ROOT%{_winedir}/gecko |
beafc810 MM |
385 | %else |
386 | cp -a %{SOURCE2} $RPM_BUILD_ROOT%{_winedir}/gecko | |
387 | %endif | |
f7357f09 | 388 | |
887fffcf | 389 | install -d $RPM_BUILD_ROOT%{_pixmapsdir} |
beafc810 | 390 | cp -a %{SOURCE3} $RPM_BUILD_ROOT%{_desktopdir} |
887fffcf | 391 | cp -a %{name}.png $RPM_BUILD_ROOT%{_pixmapsdir} |
76055aa1 | 392 | |
5c4ec57b | 393 | %clean |
394 | rm -rf $RPM_BUILD_ROOT | |
395 | ||
8df63af6 ER |
396 | %post |
397 | /sbin/ldconfig | |
398 | %update_desktop_database | |
399 | ||
f1f3af79 JB |
400 | %postun -p /sbin/ldconfig |
401 | ||
d142aa07 | 402 | %triggerpostun -- wine < 1:0.9.12-1.9 |
ccb219e0 | 403 | rm -f /var/lock/subsys/wine |
d142aa07 JB |
404 | if [ -x /sbin/chkconfig ]; then |
405 | /sbin/chkconfig --del wine | |
406 | fi | |
407 | ||
55a96819 | 408 | %files -f files.so |
5c4ec57b | 409 | %defattr(644,root,root,755) |
64ef6fe1 | 410 | %doc README documentation/ChangeLog* AUTHORS ANNOUNCE |
12b1296e | 411 | %lang(de) %doc documentation/README.de |
412 | %lang(es) %doc documentation/README.es | |
413 | %lang(fr) %doc documentation/README.fr | |
0aac4f59 | 414 | %lang(hu) %doc documentation/README.hu |
12b1296e | 415 | %lang(it) %doc documentation/README.it |
7b9e958b | 416 | %lang(ko) %doc documentation/README.ko |
58a0e5f4 | 417 | %lang(nb) %doc documentation/README.no |
12b1296e | 418 | %lang(pt) %doc documentation/README.pt |
74de5921 | 419 | %lang(pt_BR) %doc documentation/README.pt_br |
0aac4f59 KK |
420 | %lang(ru) %doc documentation/README.ru |
421 | %lang(sv) %doc documentation/README.sv | |
422 | %lang(tr) %doc documentation/README.tr | |
82432451 | 423 | %attr(755,root,root) %{_bindir}/msiexec |
beafc810 MM |
424 | %ifnarch %{x8664} |
425 | %attr(755,root,root) %{_bindir}/wine | |
426 | %else | |
427 | %attr(755,root,root) %{_bindir}/wine64 | |
428 | %endif | |
d479f953 | 429 | %attr(755,root,root) %{_bindir}/wineboot |
55a96819 | 430 | %attr(755,root,root) %{_bindir}/winedbg |
0aac4f59 | 431 | %attr(755,root,root) %{_bindir}/winecfg |
beafc810 | 432 | %ifnarch %{x8664} |
f829f028 | 433 | %attr(755,root,root) %{_bindir}/wine-preloader |
beafc810 MM |
434 | %else |
435 | %attr(755,root,root) %{_bindir}/wine64-preloader | |
f829f028 | 436 | %endif |
beafc810 | 437 | %attr(755,root,root) %{_bindir}/wineserver |
8a1d358f | 438 | %attr(755,root,root) %{_libdir}/*.so* |
861238d3 | 439 | %dir %{_libdir}/wine |
61e39970 | 440 | %dir %{_libdir}/wine/fakedlls |
441 | %{_libdir}/wine/fakedlls/*.acm | |
442 | %{_libdir}/wine/fakedlls/*.cpl | |
443 | %{_libdir}/wine/fakedlls/*.dll | |
beafc810 MM |
444 | %ifarch %{ix86} |
445 | %{_libdir}/wine/fakedlls/*.dll16 | |
446 | %endif | |
61e39970 | 447 | %{_libdir}/wine/fakedlls/*.drv |
beafc810 MM |
448 | %ifarch %{ix86} |
449 | %{_libdir}/wine/fakedlls/*.drv16 | |
450 | %endif | |
61e39970 | 451 | %{_libdir}/wine/fakedlls/*.ds |
452 | %{_libdir}/wine/fakedlls/*.exe | |
beafc810 MM |
453 | %ifarch %{ix86} |
454 | %{_libdir}/wine/fakedlls/*.exe16 | |
455 | %{_libdir}/wine/fakedlls/*.mod16 | |
456 | %endif | |
61e39970 | 457 | %{_libdir}/wine/fakedlls/*.ocx |
458 | %{_libdir}/wine/fakedlls/*.sys | |
459 | %{_libdir}/wine/fakedlls/*.tlb | |
f829f028 | 460 | %ifarch %{ix86} |
61e39970 | 461 | %{_libdir}/wine/fakedlls/*.vxd |
f829f028 | 462 | %endif |
b86f1c34 | 463 | %{_mandir}/man1/wine.1* |
beafc810 MM |
464 | %lang(de) %{_mandir}/de/man1/wine*.1* |
465 | %lang(fr) %{_mandir}/fr/man1/wine*.1* | |
466 | %lang(pl) %{_mandir}/pl/man1/wine*.1* | |
da274952 AG |
467 | %{_mandir}/man1/msiexec.1* |
468 | %{_mandir}/man1/wineboot.1* | |
469 | %{_mandir}/man1/winecfg.1* | |
72ede285 | 470 | %{_mandir}/man1/winedbg.1* |
b86f1c34 | 471 | %{_mandir}/man1/wineserver.1* |
a91c2692 | 472 | %{_winedir} |
a6c536e0 | 473 | %{_desktopdir}/wine.desktop |
76055aa1 | 474 | %{_desktopdir}/wine-uninstaller.desktop |
887fffcf | 475 | %{_pixmapsdir}/%{name}.png |
5c4ec57b | 476 | |
55a96819 | 477 | %files programs -f files.programs |
e8f81a0a | 478 | %defattr(644,root,root,755) |
e8f81a0a | 479 | |
5c4ec57b | 480 | %files devel |
481 | %defattr(644,root,root,755) | |
d479f953 | 482 | %attr(755,root,root) %{_bindir}/fnt2bdf |
483 | %attr(755,root,root) %{_bindir}/function_grep.pl | |
d479f953 | 484 | %attr(755,root,root) %{_bindir}/widl |
55a96819 | 485 | %attr(755,root,root) %{_bindir}/winebuild |
55a96819 | 486 | %attr(755,root,root) %{_bindir}/winedump |
1ae1bca2 | 487 | %attr(755,root,root) %{_bindir}/wineg++ |
d479f953 | 488 | %attr(755,root,root) %{_bindir}/winegcc |
489 | %attr(755,root,root) %{_bindir}/winemaker | |
9a9c7643 | 490 | %attr(755,root,root) %{_bindir}/winecpp |
55a96819 | 491 | %attr(755,root,root) %{_bindir}/wmc |
d479f953 | 492 | %attr(755,root,root) %{_bindir}/wrc |
7265d9f2 JB |
493 | %{_libdir}/wine/lib*.def |
494 | # no shared variants, so not separated | |
495 | %{_libdir}/wine/lib*.def.a | |
b93e474e | 496 | %{_libdir}/wine/libadsiid.a |
7265d9f2 | 497 | %{_libdir}/wine/libdx*.a |
beafc810 | 498 | %{_libdir}/wine/libstrmbase.a |
7265d9f2 JB |
499 | %{_libdir}/wine/libstrmiids.a |
500 | %{_libdir}/wine/libuuid.a | |
501 | %{_libdir}/wine/libwinecrt0.a | |
5c4ec57b | 502 | %{_includedir}/wine |
34f03014 | 503 | %{_mandir}/man1/widl.1* |
0aac4f59 | 504 | %{_mandir}/man1/winebuild.1* |
da274952 | 505 | %{_mandir}/man1/winecpp.1* |
34f03014 | 506 | %{_mandir}/man1/winedump.1* |
bff06719 | 507 | %{_mandir}/man1/winegcc.1* |
5ec7e550 | 508 | %{_mandir}/man1/wineg++.1* |
34f03014 | 509 | %{_mandir}/man1/winemaker.1* |
0aac4f59 | 510 | %lang(de) %{_mandir}/de/man1/winemaker.1* |
6ebf503e | 511 | %lang(fr) %{_mandir}/fr/man1/winemaker.1* |
34f03014 JB |
512 | %{_mandir}/man1/wmc.1* |
513 | %{_mandir}/man1/wrc.1* | |
2b5050a8 | 514 | %{_aclocaldir}/*.m4 |
f18f723c | 515 | |
beafc810 MM |
516 | %files dll-capi |
517 | %defattr(644,root,root,755) | |
518 | %attr(755,root,root) %{_libdir}/wine/capi2032.dll.so | |
519 | ||
16e36f25 JB |
520 | %files dll-d3d |
521 | %defattr(644,root,root,755) | |
522 | %attr(755,root,root) %{_libdir}/wine/d3d8.dll.so | |
523 | %attr(755,root,root) %{_libdir}/wine/d3d9.dll.so | |
16e36f25 JB |
524 | %attr(755,root,root) %{_libdir}/wine/wined3d.dll.so |
525 | ||
526 | %files dll-gl | |
527 | %defattr(644,root,root,755) | |
528 | %attr(755,root,root) %{_libdir}/wine/glu32.dll.so | |
529 | %attr(755,root,root) %{_libdir}/wine/opengl32.dll.so | |
530 | ||
531 | %if %{with sane} | |
532 | %files dll-twain | |
533 | %defattr(644,root,root,755) | |
b08b16bf | 534 | %attr(755,root,root) %{_libdir}/wine/sane.ds.so |
72878a4c | 535 | %attr(755,root,root) %{_libdir}/wine/twain*.dll.so |
16e36f25 JB |
536 | %endif |
537 | ||
9d6715c4 ER |
538 | %if %{with ldap} |
539 | %files dll-ldap | |
540 | %defattr(644,root,root,755) | |
541 | %attr(755,root,root) %{_libdir}/wine/wldap*.dll.so | |
542 | %endif | |
543 | ||
16e36f25 JB |
544 | %if %{with alsa} |
545 | %files drv-alsa | |
546 | %defattr(644,root,root,755) | |
547 | %attr(755,root,root) %{_libdir}/wine/winealsa.drv.so | |
548 | %endif | |
549 | ||
16e36f25 JB |
550 | # additional dependencies in *.so not separated (yet?) from main package |
551 | # ddraw.dll.so,x11drv.dll.so depend on X11 libs | |
552 | # ole2disp.dll.so,oleaut32.dll.so,typelib.dll.so depend on lib(un)gif,libjpeg,libX11 | |
553 | # ttydrv.dll.so depends on ncurses |