]> git.pld-linux.org Git - packages/wine.git/blame - wine.spec
- up to 0.9.35
[packages/wine.git] / wine.spec
CommitLineData
7a30e9d7 1#
2# Conditional build:
931f130b 3%bcond_without alsa # don't build ALSA mm driver
931f130b 4%bcond_without jack # don't build JACK mm driver
a393647c 5%bcond_without nas # don't build NAS mm driver
16e36f25
JB
6%bcond_without sane # don't build TWAIN DLL with scanning support (through SANE)
7%bcond_without cups # without CUPS printing support in winspool,wineps DLLs
7a30e9d7 8#
546bbb82 9# NOTE: wine detects the following SONAMES for dlopen at build time:
16e36f25
JB
10# libcrypto,libssl (wininet.dll)
11# libcups (winspool.dll.so,wineps.dll.so)
12# libcurses/libncurses (wineconsole program)
13# libfontconfig (gdi32.dll.so)
14# libfreetype (wineps.dll.so,gdi32.dll.so)
15# libGL (x11drv.dll.so,ddraw.dll.so)
16# libjack (winejack.drv.so - explicit dependency in subpackage)
e7acaf22 17# libX11, libXext, libXi, libXrender (x11drv.dll.so)
546bbb82 18# thus requires rebuild after change of any of the above.
931f130b
JB
19#
20# JACK requires ALSA
666ba35e 21%if !%{with alsa}
931f130b
JB
22%undefine with_jack
23%endif
698e86e7 24Summary: Program that lets you launch Win applications
93e41e44
ER
25Summary(es.UTF-8): Ejecuta programas Windows en Linux
26Summary(pl.UTF-8): Program pozwalający uruchamiać aplikacje Windows
27Summary(pt_BR.UTF-8): Executa programas Windows no Linux
5c4ec57b 28Name: wine
ce2cb51b 29Version: 0.9.35
a4a10255 30Release: 1
46114a9a 31Epoch: 1
528c1138 32License: LGPL
5c4ec57b 33Group: Applications/Emulators
46114a9a 34Source0: http://ibiblio.org/pub/linux/system/emulators/wine/%{name}-%{version}.tar.bz2
ce2cb51b 35# Source0-md5: 6ea350e5784bd47843b3af950f6ab33b
b68a79ec 36Patch0: %{name}-fontcache.patch
a0ff0658 37Patch1: %{name}-makedep.patch
a4a10255 38Patch2: %{name}-ncurses.patch
1803184e 39#PatchX: %{name}-dga.patch
1b3d8891 40URL: http://www.winehq.org/
489ca66c 41BuildRequires: OpenGL-GLU-devel
6547534c
KK
42%{?with_alsa:BuildRequires: alsa-lib-devel}
43%{?with_arts:BuildRequires: artsc-devel}
c7af491d
JB
44BuildRequires: autoconf
45BuildRequires: automake
d3c41437 46BuildRequires: bison
5715e1d1 47%{?with_cups:BuildRequires: cups-devel}
f88a3451 48BuildRequires: docbook-dtd31-sgml
49BuildRequires: docbook-utils
5fc34681 50BuildRequires: flex
16e36f25 51BuildRequires: fontconfig-devel
22432818 52BuildRequires: fontforge
5fc34681 53BuildRequires: freetype-devel >= 2.0.5
734deeec 54BuildRequires: giflib-devel
931f130b 55%{?with_jack:BuildRequires: jack-audio-connection-kit-devel}
5fc34681 56BuildRequires: libjpeg-devel
1e160e6e 57BuildRequires: libtool
931f130b 58%{?with_nas:BuildRequires: nas-devel}
8a1d358f 59BuildRequires: ncurses-devel
16e36f25
JB
60# db2* failed previously - probably openjade or opensp bug
61BuildRequires: openjade >= 1:1.3.3-0.pre1
62BuildRequires: opensp >= 1:1.5.1
2c81f5eb 63BuildRequires: openssl-devel >= 0.9.7d
5715e1d1 64%{?with_sane:BuildRequires: sane-backends-devel}
452e2226 65BuildRequires: valgrind
c66c3406 66BuildRequires: xorg-lib-libXi-devel
67BuildRequires: xorg-lib-libXmu-devel
68BuildRequires: xorg-lib-libXrender-devel
69BuildRequires: xorg-lib-libXxf86dga-devel
70BuildRequires: xorg-lib-libXxf86vm-devel
2a437456 71Requires: binfmt-detector
52b6007b
JB
72# link to wine/ntdll.dll.so, without any SONAME
73Provides: libntdll.dll.so
7212da21 74Obsoletes: wine-doc-pdf
d9590b9e 75ExclusiveArch: %{ix86}
206eed29 76ExcludeArch: i386
0403821a 77BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
5c4ec57b 78
e8f81a0a 79%define _noautoreqdep libGL.so.1 libGLU.so.1
80%define no_install_post_strip 1
81
e8f81a0a 82%define _winedir %{_datadir}/%{name}
6731627f 83
65c325f6 84%define getsoname() %((objdump -p %{1} 2>/dev/null || echo SONAME ERROR) | awk '/SONAME/ { print $2; s=1 }; END { if(s==0) print "ERROR" }')
16e36f25 85
344ce2c2 86%undefine debuginfocflags
87
5c4ec57b 88%description
6731627f 89Wine is a program which allows running Microsoft Windows programs
a519bc4f 90(including DOS, Windows 3.x and Win32 executables) on Unix. It
91consists of a program loader which loads and executes a Microsoft
92Windows binary, and a library that implements Windows API calls using
93their Unix or X11 equivalents. The library may also be used for
94porting Win32 code into native Unix executables.
5c4ec57b 95
c967e47d 96%description -l es.UTF-8
f33a1517 97Ejecuta programas Windows en Linux.
98
c967e47d
JR
99%description -l pl.UTF-8
100Wine jest programem dzięki któremu można uruchamiać programy napisane
101dla Microsoft Windows pod systemami uniksowymi. Składa się on z
102loadera, który pozwala wczytywać i uruchamiać programy w formacie
103Microsoft Windows, oraz z biblioteki, która implementuje API Windows
104przy użyciu odpowiedników uniksowych oraz z X11. Biblioteka może być
105także wykorzystana do przenoszenia aplikacji Win32 do Uniksa.
5c4ec57b 106
c967e47d
JR
107%description -l pt_BR.UTF-8
108O Wine é um programa que permite rodar programas MS-Windows no X11.
f33a1517 109Ele consiste de um carregador de programa, que carrega e executa um
c967e47d 110binário MS-Windows, e de uma biblioteca de emulação que traduz as
f33a1517 111chamadas da API para as equivalentes Unix/X11.
112
5c4ec57b 113%package devel
7a050f82 114Summary: Wine - header files
93e41e44
ER
115Summary(es.UTF-8): Biblioteca de desarrollo de wine
116Summary(pl.UTF-8): Wine - pliki nagłowkowe
117Summary(pt_BR.UTF-8): Biblioteca de desenvolvimento do wine
7a050f82 118Group: Development/Libraries
46114a9a 119Requires: %{name} = %{epoch}:%{version}-%{release}
6ab2e9fc 120
5c4ec57b 121%description devel
122Wine - header files.
123
c967e47d 124%description devel -l es.UTF-8
f33a1517 125Biblioteca de desarrollo de wine.
126
c967e47d
JR
127%description devel -l pl.UTF-8
128Wine - pliki nagłówkowe.
5c4ec57b 129
c967e47d
JR
130%description devel -l pt_BR.UTF-8
131Arquivos de inclusão e bibliotecas para desenvolver aplicações com o
f33a1517 132WINE.
133
e8f81a0a 134%package programs
135Summary: Wine - programs
93e41e44 136Summary(pl.UTF-8): Wine - programy
e8f81a0a 137Group: Applications
46114a9a 138Requires: %{name} = %{epoch}:%{version}-%{release}
e8f81a0a 139
140%description programs
0a7c5d50 141Wine - programs.
e8f81a0a 142
c967e47d 143%description programs -l pl.UTF-8
0a7c5d50 144Wine - programy.
e8f81a0a 145
16e36f25
JB
146%package dll-d3d
147Summary: Direct3D implementation DLLs for Wine
93e41e44 148Summary(pl.UTF-8): Biblioteki DLL z implementacją Direct3D dla Wine
16e36f25 149Group: Applications/Emulators
46114a9a 150Requires: %{name} = %{epoch}:%{version}-%{release}
16e36f25
JB
151Requires: OpenGL
152
153%description dll-d3d
154Direct3D implementation DLLs for Wine (through OpenGL).
155
c967e47d
JR
156%description dll-d3d -l pl.UTF-8
157Biblioteki DLL z implementacją Direct3D dla Wine (poprzez OpenGL).
16e36f25
JB
158
159%package dll-gl
160Summary: OpenGL implementation DLLs for Wine
93e41e44 161Summary(pl.UTF-8): Biblioteki DLL z implementacją OpenGL dla Wine
16e36f25 162Group: Applications/Emulators
46114a9a 163Requires: %{name} = %{epoch}:%{version}-%{release}
16e36f25
JB
164Requires: OpenGL
165
166%description dll-gl
167OpenGL implementation DLLs for Wine.
168
c967e47d
JR
169%description dll-gl -l pl.UTF-8
170Biblioteki DLL z implementacją OpenGL dla Wine.
16e36f25
JB
171
172%package dll-twain
173Summary: TWAIN implementation DLL for Wine
93e41e44 174Summary(pl.UTF-8): Biblioteka DLL z implementacją TWAIN dla Wine
16e36f25 175Group: Applications/Emulators
46114a9a 176Requires: %{name} = %{epoch}:%{version}-%{release}
16e36f25
JB
177
178%description dll-twain
179TWAIN implementation DLL for Wine (through SANE).
180
c967e47d
JR
181%description dll-twain -l pl.UTF-8
182Biblioteka DLL z implementacją TWAIN dla Wine (poprzez SANE).
16e36f25
JB
183
184%package drv-alsa
185Summary: ALSA driver for WINE mm.dll implementation
93e41e44 186Summary(pl.UTF-8): Sterownik ALSA dla implementacji mm.dll w Wine
16e36f25 187Group: Applications/Emulators
46114a9a 188Requires: %{name} = %{epoch}:%{version}-%{release}
16e36f25
JB
189
190%description drv-alsa
191ALSA driver for WINE mm.dll (multimedia system) implementation.
192
c967e47d
JR
193%description drv-alsa -l pl.UTF-8
194Sterownik ALSA dla implementacji mm.dll (systemu multimediów) w Wine.
16e36f25 195
16e36f25
JB
196%package drv-jack
197Summary: JACK driver for WINE mm.dll implementation
93e41e44 198Summary(pl.UTF-8): Sterownik JACK-a dla implementacji mm.dll w Wine
16e36f25 199Group: Applications/Emulators
46114a9a 200Requires: %{name} = %{epoch}:%{version}-%{release}
16e36f25
JB
201Requires: jack-audio-connection-kit
202# dlopened by SONAME detected at build time
42c123f0 203%{?with_jack:Requires: %{getsoname /usr/%{_lib}/libjack.so}}
16e36f25
JB
204
205%description drv-jack
206JACK driver for WINE mm.dll (multimedia system) implementation.
207
c967e47d
JR
208%description drv-jack -l pl.UTF-8
209Sterownik JACK-a dla implementacji mm.dll (systemu multimediów) w
b9f73ce4 210Wine.
16e36f25
JB
211
212%package drv-nas
213Summary: NAS driver for WINE mm.dll implementation
93e41e44 214Summary(pl.UTF-8): Sterownik NAS dla implementacji mm.dll w Wine
16e36f25 215Group: Applications/Emulators
46114a9a 216Requires: %{name} = %{epoch}:%{version}-%{release}
16e36f25
JB
217
218%description drv-nas
219NAS driver for WINE mm.dll (multimedia system) implementation.
220
c967e47d
JR
221%description drv-nas -l pl.UTF-8
222Sterownik NAS dla implementacji mm.dll (systemu multimediów) w Wine.
16e36f25 223
5c4ec57b 224%prep
225%setup -q
2fbbb535 226%patch0 -p1
227%patch1 -p1
ab25825d 228%patch2 -p1
591d55ba 229
230# turn off compilation of some tools
a6c536e0 231sed -i -e "s|winetest \\\|\\\|;s|avitools||" programs/Makefile.in
232#sed -i -e "s|avitools||" programs/Makefile.in
5c4ec57b 233
234%build
2fbbb535 235%{__autoconf}
103d8328 236%{__autoheader}
9d6a128d 237%configure \
2d927a35 238 %{!?debug:--disable-debug} \
239 %{!?debug:--disable-trace} \
8a1d358f 240 --enable-curses \
c40010b9 241 --enable-opengl \
698e86e7 242 --with-x
05eb066b 243%{__make} depend
4aafdd81 244%{__make}
e8f81a0a 245%{__make} -C programs
a393647c 246#%{__make} -C programs/regapi
e8f81a0a 247
5c4ec57b 248%install
249rm -rf $RPM_BUILD_ROOT
ffb676e0 250install -d $RPM_BUILD_ROOT{%{_mandir}/man1,%{_aclocaldir}}
5c4ec57b 251
c7af491d
JB
252%{__make} install \
253 DESTDIR=$RPM_BUILD_ROOT
254
255%{__make} -C programs install \
256 DESTDIR=$RPM_BUILD_ROOT
e8f81a0a 257
6a79cc08 258install tools/fnt2bdf $RPM_BUILD_ROOT%{_bindir}
f88a3451 259
0b87866b 260install aclocal.m4 $RPM_BUILD_ROOT%{_aclocaldir}/wine.m4
261#mv -f $RPM_BUILD_ROOT{/usr/X11R6/share/aclocal,%{_aclocaldir}}/wine.m4
262
2a437456 263install -d \
65c325f6 264 $RPM_BUILD_ROOT%{_winedir}/windows/{system,Desktop,Favorites,Fonts} \
265 "$RPM_BUILD_ROOT%{_winedir}/windows/Start Menu/Programs/Startup" \
a91c2692 266 $RPM_BUILD_ROOT%{_winedir}/windows/{SendTo,ShellNew,system32,NetHood} \
267 $RPM_BUILD_ROOT%{_winedir}/windows/{Profiles/Administrator,Recent} \
268 $RPM_BUILD_ROOT%{_winedir}/{"Program Files/Common Files","My Documents"}
269
a91c2692 270touch $RPM_BUILD_ROOT%{_winedir}/{autoexec.bat,config.sys,windows/win.ini}
271touch $RPM_BUILD_ROOT%{_winedir}/windows/system/{shell.dll,shell32.dll}
272touch $RPM_BUILD_ROOT%{_winedir}/windows/system/{winsock.dll,wsock32.dll}
273
274cat >$RPM_BUILD_ROOT%{_winedir}/windows/system.ini <<EOF
275[mci]
276cdaudio=mcicda.drv
277sequencer=mciseq.drv
278waveaudio=mciwave.drv
279avivideo=mciavi.drv
280videodisc=mcipionr.drv
281vcr=mciviscd.drv
282MPEGVideo=mciqtz.drv
5c4ec57b 283EOF
284
e8f81a0a 285%if %{?debug:0}%{!?debug:1}
f1f3af79
JB
286echo "Strip executable binaries and shared object files."
287filelist=`find $RPM_BUILD_ROOT -type f ! -regex ".*ld-[0-9.]*so.*"`
288elfexelist=`echo $filelist | xargs -r file | \
289 awk '/ELF.*executable/ {print $1}' | cut -d: -f1`
290elfsharedlist=`echo $filelist | xargs -r file | \
291 awk '/LF.*shared object/ {print $1}' | cut -d: -f1`; \
292if [ -n "$elfexelist" ]; then \
293 strip -R .note -R .comment $elfexelist
294fi
295if [ -n "$elfsharedlist" ]; then
65c325f6 296 strip --strip-unneeded -R .note -R .comment $elfsharedlist
f1f3af79 297fi
e8f81a0a 298%endif
f1f3af79 299
80496098 300# /sbin/chstk -e $RPM_BUILD_ROOT%{_bindir}/wine
5c4ec57b 301
c257af95 302programs="notepad progman regedit regsvr32 uninstaller wineconsole winefile winemine winepath winhelp"
0b87866b 303
8d493411 304BZZZ=`pwd`
305rm -f files.so; touch files.so
306rm -f files.programs; touch files.programs
55a96819 307cd $RPM_BUILD_ROOT%{_libdir}/wine
308for f in *.so; do
16e36f25 309 case $f in
ce2cb51b 310 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 311 ;;
312 *)
313 echo "%attr(755,root,root) %{_libdir}/wine/$f" >>$BZZZ/files.so
16e36f25 314 esac
55a96819 315done
316cd -
2f6853f9 317for p in $programs; do
8d493411 318 echo "%attr(755,root,root) %{_bindir}/$p" >> files.programs
319 echo "%attr(755,root,root) %{_libdir}/wine/$p.exe.so" >> files.programs
320 grep -v "$p\.exe\.so$" files.so > files.so.
321 mv -f files.so. files.so
55a96819 322done
55a96819 323
5c4ec57b 324%clean
325rm -rf $RPM_BUILD_ROOT
326
d142aa07 327%post -p /sbin/ldconfig
f1f3af79
JB
328%postun -p /sbin/ldconfig
329
d142aa07 330%triggerpostun -- wine < 1:0.9.12-1.9
ccb219e0 331rm -f /var/lock/subsys/wine
d142aa07
JB
332if [ -x /sbin/chkconfig ]; then
333 /sbin/chkconfig --del wine
334fi
335
55a96819 336%files -f files.so
5c4ec57b 337%defattr(644,root,root,755)
12057076 338%doc README ChangeLog AUTHORS ANNOUNCE
12b1296e 339%lang(de) %doc documentation/README.de
340%lang(es) %doc documentation/README.es
341%lang(fr) %doc documentation/README.fr
342%lang(it) %doc documentation/README.it
7b9e958b 343%lang(ko) %doc documentation/README.ko
58a0e5f4 344%lang(nb) %doc documentation/README.no
12b1296e 345%lang(pt) %doc documentation/README.pt
74de5921 346%lang(pt_BR) %doc documentation/README.pt_br
82432451 347%attr(755,root,root) %{_bindir}/msiexec
591d55ba 348%attr(755,root,root) %{_bindir}/wine
d479f953 349%attr(755,root,root) %{_bindir}/wineboot
34f03014 350%attr(755,root,root) %{_bindir}/winebrowser
d479f953 351%attr(755,root,root) %{_bindir}/winecfg
55a96819 352%attr(755,root,root) %{_bindir}/winedbg
5c36538d 353%attr(755,root,root) %{_bindir}/wine-kthread
1ae1bca2 354%attr(755,root,root) %{_bindir}/winelauncher
5c36538d 355%attr(755,root,root) %{_bindir}/wineprefixcreate
356%attr(755,root,root) %{_bindir}/wine-preloader
357%attr(755,root,root) %{_bindir}/wine-pthread
591d55ba 358%attr(755,root,root) %{_bindir}/wineserver
591d55ba 359%attr(755,root,root) %{_bindir}/wineshelllink
8a1d358f 360%attr(755,root,root) %{_libdir}/*.so*
861238d3 361%dir %{_libdir}/wine
489ca66c 362%{_libdir}/wine/*.dll16
363%{_libdir}/wine/*.drv16
364%{_libdir}/wine/*.exe16
b86f1c34 365%{_mandir}/man1/wine.1*
72ede285 366%{_mandir}/man1/winedbg.1*
b86f1c34
JB
367%{_mandir}/man1/wineprefixcreate.1*
368%{_mandir}/man1/wineserver.1*
a91c2692 369%{_winedir}
a6c536e0 370%{_desktopdir}/wine.desktop
5c4ec57b 371
55a96819 372%files programs -f files.programs
e8f81a0a 373%defattr(644,root,root,755)
e8f81a0a 374
5c4ec57b 375%files devel
376%defattr(644,root,root,755)
d479f953 377%attr(755,root,root) %{_bindir}/fnt2bdf
378%attr(755,root,root) %{_bindir}/function_grep.pl
d479f953 379%attr(755,root,root) %{_bindir}/widl
55a96819 380%attr(755,root,root) %{_bindir}/winebuild
55a96819 381%attr(755,root,root) %{_bindir}/winedump
1ae1bca2 382%attr(755,root,root) %{_bindir}/wineg++
d479f953 383%attr(755,root,root) %{_bindir}/winegcc
384%attr(755,root,root) %{_bindir}/winemaker
8593fdc2 385#%attr(755,root,root) %{_bindir}/winewrap
55a96819 386%attr(755,root,root) %{_bindir}/wmc
d479f953 387%attr(755,root,root) %{_bindir}/wrc
7265d9f2
JB
388%{_libdir}/wine/lib*.def
389# no shared variants, so not separated
390%{_libdir}/wine/lib*.def.a
391%{_libdir}/wine/libdx*.a
392%{_libdir}/wine/libstrmiids.a
393%{_libdir}/wine/libuuid.a
394%{_libdir}/wine/libwinecrt0.a
5c4ec57b 395%{_includedir}/wine
34f03014
JB
396%{_mandir}/man1/widl.1*
397%{_mandir}/man1/winedump.1*
bff06719 398%{_mandir}/man1/winegcc.1*
34f03014
JB
399%{_mandir}/man1/winemaker.1*
400%{_mandir}/man1/winebuild.1*
401%{_mandir}/man1/wmc.1*
402%{_mandir}/man1/wrc.1*
2b5050a8 403%{_aclocaldir}/*.m4
f18f723c 404
16e36f25
JB
405%files dll-d3d
406%defattr(644,root,root,755)
407%attr(755,root,root) %{_libdir}/wine/d3d8.dll.so
408%attr(755,root,root) %{_libdir}/wine/d3d9.dll.so
409%attr(755,root,root) %{_libdir}/wine/d3dx8.dll.so
410%attr(755,root,root) %{_libdir}/wine/wined3d.dll.so
411
412%files dll-gl
413%defattr(644,root,root,755)
414%attr(755,root,root) %{_libdir}/wine/glu32.dll.so
415%attr(755,root,root) %{_libdir}/wine/opengl32.dll.so
416
417%if %{with sane}
418%files dll-twain
419%defattr(644,root,root,755)
b08b16bf 420%attr(755,root,root) %{_libdir}/wine/sane.ds.so
72878a4c 421%attr(755,root,root) %{_libdir}/wine/twain*.dll.so
16e36f25
JB
422%endif
423
424%if %{with alsa}
425%files drv-alsa
426%defattr(644,root,root,755)
427%attr(755,root,root) %{_libdir}/wine/winealsa.drv.so
428%endif
429
16e36f25
JB
430%if %{with jack}
431%files drv-jack
432%defattr(644,root,root,755)
433%attr(755,root,root) %{_libdir}/wine/winejack.drv.so
434%endif
435
436%if %{with nas}
437%files drv-nas
438%defattr(644,root,root,755)
439%attr(755,root,root) %{_libdir}/wine/winenas.drv.so
440%endif
441
442# additional dependencies in *.so not separated (yet?) from main package
443# ddraw.dll.so,x11drv.dll.so depend on X11 libs
444# ole2disp.dll.so,oleaut32.dll.so,typelib.dll.so depend on lib(un)gif,libjpeg,libX11
445# ttydrv.dll.so depends on ncurses
This page took 0.163394 seconds and 4 git commands to generate.