3 # _without_arts - without arts support
4 # _without_cups - without CUPS printing support
5 # _without_sane - without TWAIN scanning support (through SANE)
6 # _with_pdf_docs - build pdf docs (missing BR)
8 # maybe TODO: alsa,jack,nas BRs/checks (see dlls/winmm/wine*)
9 Summary: Program that lets you launch Win applications
10 Summary(es): Ejecuta programas Windows en Linux
11 Summary(pl): Program pozwalaj±cy uruchamiaæ aplikacje Windows
12 Summary(pt_BR): Executa programas Windows no Linux
17 Group: Applications/Emulators
18 Source0: ftp://metalab.unc.edu/pub/Linux/ALPHA/wine/development/Wine-%{version}.tar.gz
19 # Source0-md5: 8423452b7d203c75031ea5c8aac32622
22 Source3: %{name}.systemreg
23 Source4: %{name}.userreg
24 Patch0: %{name}-fontcache.patch
25 Patch1: %{name}-destdir.patch
26 Patch2: %{name}-ncurses.patch
27 Patch3: %{name}-ac-ksh.patch
28 Patch4: %{name}-binutils.patch
29 URL: http://www.winehq.com/
30 BuildRequires: OpenGL-devel
31 BuildRequires: XFree86-devel
32 %{!?_without_arts:BuildRequires: arts-devel}
34 BuildRequires: chpax >= 0.20020901-2
35 %{!?_without_cups:BuildRequires: cups-devel}
36 BuildRequires: docbook-dtd31-sgml
37 BuildRequires: docbook-utils
39 BuildRequires: freetype-devel >= 2.0.5
40 BuildRequires: libjpeg-devel
41 BuildRequires: ncurses-devel
42 BuildRequires: openjade
43 BuildRequires: tetex-metafont
44 BuildRequires: tetex-fonts-pazo
45 BuildRequires: tetex-fonts-stmaryrd
46 BuildRequires: tetex-fonts-type1-urw
47 %{!?_without_sane:BuildRequires: sane-backends-devel}
49 Requires(post): /sbin/ldconfig
50 Requires(post,preun):/sbin/chkconfig
51 ExclusiveArch: %{ix86}
52 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
54 %define _noautoreqdep libGL.so.1 libGLU.so.1
55 %define no_install_post_strip 1
57 %define _winedir %{_datadir}/%{name}
60 Wine is a program which allows running Microsoft Windows programs
61 (including DOS, Windows 3.x and Win32 executables) on Unix. It
62 consists of a program loader which loads and executes a Microsoft
63 Windows binary, and a library that implements Windows API calls using
64 their Unix or X11 equivalents. The library may also be used for
65 porting Win32 code into native Unix executables.
68 Ejecuta programas Windows en Linux.
71 Wine jest programem dziêki któremu mo¿na uruchamiaæ programy napisane
72 dla Microsoft Windows pod systemami unixowymi. Sk³ada siê on z
73 loadera, który pozwala wczytywaæ i uruchamiaæ programy w formacie
74 Microsoft Windows oraz z biblioteki, która implementuje API Windows
75 przy u¿yciu odpowiedników Unixowych oraz z X11. Biblioteka mo¿e byæ
76 tak¿e wykorzystana do przenoszenia aplikacji Win32 do Unixa.
79 O Wine é um programa que permite rodar programas MS-Windows no X11.
80 Ele consiste de um carregador de programa, que carrega e executa um
81 binário MS-Windows, e de uma biblioteca de emulação que traduz as
82 chamadas da API para as equivalentes Unix/X11.
85 Summary: Wine - header files
86 Summary(es): Biblioteca de desarrollo de wine
87 Summary(pl): Wine - pliki nag³owkowe
88 Summary(pt_BR): Biblioteca de desenvolvimento do wine
89 Group: Development/Libraries
90 Requires: %{name} = %{version}
95 %description devel -l es
96 Biblioteca de desarrollo de wine.
98 %description devel -l pl
99 Wine - pliki nag³ówkowe.
101 %description devel -l pt_BR
102 Arquivos de inclusão e bibliotecas para desenvolver aplicações com o
106 Summary: Wine - programs
107 Summary(pl): Wine - programy
109 Requires: %{name} = %{version}
111 %description programs
114 %description programs -l pl
118 Summary: Wine documentation in PDF
119 Summary(pl): Dokumentacja Wine w formacie PDF
123 Wine documentation in PDF format.
125 %description doc-pdf -l pl
126 Dokumentacja Wine w formacie PDF.
136 # turn off compilation of some tools
137 #sed -e "s|winetest \\\|\\\|;s|avitools||" programs/Makefile.in > .tmp
138 sed -e "s|avitools||" programs/Makefile.in > .tmp
139 mv -f .tmp programs/Makefile.in
144 CPPFLAGS="-I/usr/include/ncurses"; export CPPFLAGS
145 CFLAGS="%{rpmcflags} $CPPFLAGS"
147 %{!?debug: --disable-debug} \
148 %{!?debug: --disable-trace} \
155 %{__make} -C programs
156 %{__make} -C programs/regapi
159 db2html wine-user.sgml
160 db2html wine-devel.sgml
161 db2html wine-faq.sgml
162 db2html winelib-user.sgml
164 %if %{?_with_pdf_docs:1}0
165 db2pdf wine-user.sgml
166 db2pdf wine-devel.sgml
168 db2pdf winelib-user.sgml
173 rm -rf $RPM_BUILD_ROOT
174 install -d $RPM_BUILD_ROOT{%{_mandir}/man1,%{_aclocaldir}}
176 %{__make} install DESTDIR=$RPM_BUILD_ROOT
177 %{__make} -C programs install DESTDIR=$RPM_BUILD_ROOT
179 install programs/winhelp/hlp2sgml $RPM_BUILD_ROOT%{_bindir}
180 install tools/fnt2bdf $RPM_BUILD_ROOT%{_bindir}
182 install aclocal.m4 $RPM_BUILD_ROOT%{_aclocaldir}/wine.m4
183 #mv -f $RPM_BUILD_ROOT{/usr/X11R6/share/aclocal,%{_aclocaldir}}/wine.m4
185 install -d $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d \
186 $RPM_BUILD_ROOT%{_winedir}/windows/{system,Desktop,Favorites,Fonts} \
187 "$RPM_BUILD_ROOT%{_winedir}/windows/Start Menu/Programs/Startup" \
188 $RPM_BUILD_ROOT%{_winedir}/windows/{SendTo,ShellNew,system32,NetHood} \
189 $RPM_BUILD_ROOT%{_winedir}/windows/{Profiles/Administrator,Recent} \
190 $RPM_BUILD_ROOT%{_winedir}/{"Program Files/Common Files","My Documents"}
192 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/wine
193 install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}
194 install %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}
195 install %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}
197 touch $RPM_BUILD_ROOT%{_winedir}/{autoexec.bat,config.sys,windows/win.ini}
198 touch $RPM_BUILD_ROOT%{_winedir}/windows/system/{shell.dll,shell32.dll}
199 touch $RPM_BUILD_ROOT%{_winedir}/windows/system/{winsock.dll,wsock32.dll}
201 cat >$RPM_BUILD_ROOT%{_winedir}/windows/system.ini <<EOF
205 waveaudio=mciwave.drv
207 videodisc=mcipionr.drv
212 %if %{?debug:0}%{!?debug:1}
213 echo "Strip executable binaries and shared object files."
214 filelist=`find $RPM_BUILD_ROOT -type f ! -regex ".*ld-[0-9.]*so.*"`
215 elfexelist=`echo $filelist | xargs -r file | \
216 awk '/ELF.*executable/ {print $1}' | cut -d: -f1`
217 elfsharedlist=`echo $filelist | xargs -r file | \
218 awk '/LF.*shared object/ {print $1}' | cut -d: -f1`; \
219 if [ -n "$elfexelist" ]; then \
220 strip -R .note -R .comment $elfexelist
222 if [ -n "$elfsharedlist" ]; then
223 strip --strip-unneeded -R .note -R .comment $elfsharedlist
227 /sbin/chstk -e $RPM_BUILD_ROOT%{_bindir}/wine
229 programs="notepad progman regedit regsvr32 uninstaller wineconsole winefile winemine winepath winhelp wcmd"
232 rm -f files.so; touch files.so
233 rm -f files.programs; touch files.programs
234 cd $RPM_BUILD_ROOT%{_libdir}/wine
236 echo "%attr(755,root,root) %{_libdir}/wine/$f" >>$BZZZ/files.so
239 for p in $programs; do
240 echo "%attr(755,root,root) %{_bindir}/$p" >> files.programs
241 echo "%attr(755,root,root) %{_libdir}/wine/$p.exe.so" >> files.programs
242 grep -v "$p\.exe\.so$" files.so > files.so.
243 mv -f files.so. files.so
247 rm -rf $RPM_BUILD_ROOT
251 /sbin/chkconfig --add wine
252 if [ ! -f /var/lock/subsys/wine ]; then
253 echo "Run \"/etc/rc.d/init.d/wine start\" to start wine service." >&2
257 if [ "$1" = "0" ]; then
258 if [ -f /var/lock/subsys/wine ]; then
259 /etc/rc.d/init.d/wine stop >&2
261 /sbin/chkconfig --del wine
264 %postun -p /sbin/ldconfig
267 %defattr(644,root,root,755)
268 %doc README DEVELOPERS-HINTS ChangeLog BUGS AUTHORS ANNOUNCE
269 %doc documentation/{wine-user,samples,status,wine-faq}
270 %attr(755,root,root) %{_bindir}/wine
271 %attr(755,root,root) %{_bindir}/wineboot
272 %attr(755,root,root) %{_bindir}/winecfg
273 %attr(755,root,root) %{_bindir}/wineclipsrv
274 %attr(755,root,root) %{_bindir}/winedbg
275 %attr(755,root,root) %{_bindir}/winelauncher
276 %attr(755,root,root) %{_bindir}/wineserver
277 %attr(755,root,root) %{_bindir}/wineshelllink
278 %attr(755,root,root) %{_libdir}/*.so*
280 %{_mandir}/man1/wine.*
281 %{_mandir}/man5/wine.conf.*
282 %config(noreplace) %{_sysconfdir}/wine.reg
283 %config(missingok) %{_sysconfdir}/wine.systemreg
284 %config(missingok) %{_sysconfdir}/wine.userreg
285 %attr(754,root,root) %{_sysconfdir}/rc.d/init.d/wine
288 %files programs -f files.programs
289 %defattr(644,root,root,755)
292 %defattr(644,root,root,755)
293 %doc documentation/{wine-devel,winelib-user,HOWTO-winelib}
294 %attr(755,root,root) %{_bindir}/fnt2bdf
295 %attr(755,root,root) %{_bindir}/function_grep.pl
296 %attr(755,root,root) %{_bindir}/hlp2sgml
297 %attr(755,root,root) %{_bindir}/widl
298 %attr(755,root,root) %{_bindir}/winebuild
299 %attr(755,root,root) %{_bindir}/winedump
300 %attr(755,root,root) %{_bindir}/wineg++
301 %attr(755,root,root) %{_bindir}/winegcc
302 %attr(755,root,root) %{_bindir}/winemaker
303 %attr(755,root,root) %{_bindir}/winewrap
304 %attr(755,root,root) %{_bindir}/wmc
305 %attr(755,root,root) %{_bindir}/wrc
308 %{_mandir}/man1/winemaker.*
309 %{_mandir}/man1/winebuild.*
310 %{_mandir}/man1/wmc.*
311 %{_mandir}/man1/wrc.*
314 %if %{?_with_pdf_docs:1}0
316 %defattr(644,root,root,755)
317 %doc documentation/*.pdf