7 Summary: Program that lets you launch Win applications
8 Summary(es): Ejecuta programas Windows en Linux
9 Summary(pl): Program pozwalaj±cy uruchamiaæ aplikacje Windows
10 Summary(pt_BR): Executa programas Windows no Linux
15 Group: Applications/Emulators
16 Source0: ftp://metalab.unc.edu/pub/Linux/ALPHA/wine/development/Wine-%{version}.tar.gz
19 Source3: %{name}.systemreg
20 Source4: %{name}.userreg
21 Patch0: %{name}-fontcache.patch
22 Patch1: %{name}-destdir.patch
23 Patch2: %{name}-ncurses.patch
24 Patch3: %{name}-ac-ksh.patch
25 Patch4: %{name}-binutils.patch
26 URL: http://www.winehq.com/
27 BuildRequires: OpenGL-devel
28 BuildRequires: XFree86-devel
29 %{!?_without_arts:BuildRequires: arts-devel}
31 BuildRequires: chpax >= 0.20020901-2
32 %{!?_without_cups:BuildRequires: cups-devel}
33 BuildRequires: docbook-dtd31-sgml
34 BuildRequires: docbook-utils
36 BuildRequires: freetype-devel >= 2.0.5
37 BuildRequires: libjpeg-devel
38 BuildRequires: ncurses-devel
39 BuildRequires: openjade
40 %{!?_without_sane:BuildRequires: sane-backends-devel}
42 Requires(post): /sbin/ldconfig
43 Requires(post,preun):/sbin/chkconfig
44 ExclusiveArch: %{ix86}
45 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
47 %define _noautoreqdep libGL.so.1 libGLU.so.1
48 %define no_install_post_strip 1
50 %define _winedir %{_datadir}/%{name}
53 Wine is a program which allows running Microsoft Windows programs
54 (including DOS, Windows 3.x and Win32 executables) on Unix. It
55 consists of a program loader which loads and executes a Microsoft
56 Windows binary, and a library that implements Windows API calls using
57 their Unix or X11 equivalents. The library may also be used for
58 porting Win32 code into native Unix executables.
61 Ejecuta programas Windows en Linux.
64 Wine jest programem dziêki któremu mo¿na uruchamiaæ programy napisane
65 dla Microsoft Windows pod systemami unixowymi. Sk³ada siê on z
66 loadera, który pozwala wczytywaæ i uruchamiaæ programy w formacie
67 Microsoft Windows oraz z biblioteki, która implementuje API Windows
68 przy u¿yciu odpowiedników Unixowych oraz z X11. Biblioteka mo¿e byæ
69 tak¿e wykorzystana do przenoszenia aplikacji Win32 do Unixa.
72 O Wine é um programa que permite rodar programas MS-Windows no X11.
73 Ele consiste de um carregador de programa, que carrega e executa um
74 binário MS-Windows, e de uma biblioteca de emulação que traduz as
75 chamadas da API para as equivalentes Unix/X11.
78 Summary: Wine - header files
79 Summary(es): Biblioteca de desarrollo de wine
80 Summary(pl): Wine - pliki nag³owkowe
81 Summary(pt_BR): Biblioteca de desenvolvimento do wine
82 Group: Development/Libraries
83 Requires: %{name} = %{version}
88 %description devel -l es
89 Biblioteca de desarrollo de wine.
91 %description devel -l pl
92 Wine - pliki nag³ówkowe.
94 %description devel -l pt_BR
95 Arquivos de inclusão e bibliotecas para desenvolver aplicações com o
99 Summary: Wine - programs
100 Summary(pl): Wine - programy
102 Requires: %{name} = %{version}
104 %description programs
107 %description programs -l pl
111 Summary: Wine documentations in PDF
112 Summary(pl): Dokumentacja Wine w formacie PDF
123 # turn off compilation of some tools
124 #sed -e "s|winetest \\\|\\\|;s|avitools||" programs/Makefile.in > .tmp
125 sed -e "s|avitools||" programs/Makefile.in > .tmp
126 mv -f .tmp programs/Makefile.in
131 CPPFLAGS="-I/usr/include/ncurses"; export CPPFLAGS
132 CFLAGS="%{rpmcflags} $CPPFLAGS"
134 %{!?debug: --disable-debug} \
135 %{!?debug: --disable-trace} \
142 %{__make} -C programs
143 %{__make} -C programs/regapi
146 db2html wine-user.sgml
147 db2html wine-devel.sgml
148 db2html wine-faq.sgml
149 db2html winelib-user.sgml
151 db2pdf wine-user.sgml
152 db2pdf wine-devel.sgml
154 db2pdf winelib-user.sgml
158 rm -rf $RPM_BUILD_ROOT
159 install -d $RPM_BUILD_ROOT{%{_mandir}/man1,%{_aclocaldir}}
161 %{__make} install DESTDIR=$RPM_BUILD_ROOT
162 %{__make} -C programs install DESTDIR=$RPM_BUILD_ROOT
164 install programs/winhelp/hlp2sgml $RPM_BUILD_ROOT%{_bindir}
165 install tools/fnt2bdf $RPM_BUILD_ROOT%{_bindir}
167 install aclocal.m4 $RPM_BUILD_ROOT%{_aclocaldir}/wine.m4
168 #mv -f $RPM_BUILD_ROOT{/usr/X11R6/share/aclocal,%{_aclocaldir}}/wine.m4
170 install -d $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d \
171 $RPM_BUILD_ROOT%{_winedir}/windows/{system,Desktop,Favorites,Fonts} \
172 "$RPM_BUILD_ROOT%{_winedir}/windows/Start Menu/Programs/Startup" \
173 $RPM_BUILD_ROOT%{_winedir}/windows/{SendTo,ShellNew,system32,NetHood} \
174 $RPM_BUILD_ROOT%{_winedir}/windows/{Profiles/Administrator,Recent} \
175 $RPM_BUILD_ROOT%{_winedir}/{"Program Files/Common Files","My Documents"}
177 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/wine
178 install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}
179 install %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}
180 install %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}
182 touch $RPM_BUILD_ROOT%{_winedir}/{autoexec.bat,config.sys,windows/win.ini}
183 touch $RPM_BUILD_ROOT%{_winedir}/windows/system/{shell.dll,shell32.dll}
184 touch $RPM_BUILD_ROOT%{_winedir}/windows/system/{winsock.dll,wsock32.dll}
186 cat >$RPM_BUILD_ROOT%{_winedir}/windows/system.ini <<EOF
190 waveaudio=mciwave.drv
192 videodisc=mcipionr.drv
197 %if %{?debug:0}%{!?debug:1}
198 echo "Strip executable binaries and shared object files."
199 filelist=`find $RPM_BUILD_ROOT -type f ! -regex ".*ld-[0-9.]*so.*"`
200 elfexelist=`echo $filelist | xargs -r file | \
201 awk '/ELF.*executable/ {print $1}' | cut -d: -f1`
202 elfsharedlist=`echo $filelist | xargs -r file | \
203 awk '/LF.*shared object/ {print $1}' | cut -d: -f1`; \
204 if [ -n "$elfexelist" ]; then \
205 strip -R .note -R .comment $elfexelist
207 if [ -n "$elfsharedlist" ]; then
208 strip --strip-unneeded -R .note -R .comment $elfsharedlist
212 /sbin/chstk -e $RPM_BUILD_ROOT%{_bindir}/wine
214 programs="notepad progman regedit regsvr32 uninstaller wineconsole winefile winemine winepath winhelp wcmd"
217 rm -f files.so; touch files.so
218 rm -f files.programs; touch files.programs
219 cd $RPM_BUILD_ROOT%{_libdir}/wine
221 echo "%attr(755,root,root) %{_libdir}/wine/$f" >>$BZZZ/files.so
224 for p in $programs; do
225 echo "%attr(755,root,root) %{_bindir}/$p" >> files.programs
226 echo "%attr(755,root,root) %{_libdir}/wine/$p.exe.so" >> files.programs
227 grep -v "$p\.exe\.so$" files.so > files.so.
228 mv -f files.so. files.so
232 rm -rf $RPM_BUILD_ROOT
236 /sbin/chkconfig --add wine
237 if [ ! -f /var/lock/subsys/wine ]; then
238 echo "Run \"/etc/rc.d/init.d/wine start\" to start wine service." >&2
242 if [ "$1" = "0" ]; then
243 if [ -f /var/lock/subsys/wine ]; then
244 /etc/rc.d/init.d/wine stop >&2
246 /sbin/chkconfig --del wine
249 %postun -p /sbin/ldconfig
252 %defattr(644,root,root,755)
253 %doc README DEVELOPERS-HINTS ChangeLog BUGS AUTHORS ANNOUNCE
254 %doc documentation/{wine-user,samples,status,wine-faq}
255 %attr(755,root,root) %{_bindir}/wine
256 %attr(755,root,root) %{_bindir}/wineboot
257 %attr(755,root,root) %{_bindir}/winecfg
258 %attr(755,root,root) %{_bindir}/wineclipsrv
259 %attr(755,root,root) %{_bindir}/winedbg
260 %attr(755,root,root) %{_bindir}/winelauncher
261 %attr(755,root,root) %{_bindir}/wineserver
262 %attr(755,root,root) %{_bindir}/wineshelllink
263 %attr(755,root,root) %{_libdir}/*.so*
265 %{_mandir}/man1/wine.*
266 %{_mandir}/man5/wine.conf.*
267 %config(noreplace) %{_sysconfdir}/wine.reg
268 %config(missingok) %{_sysconfdir}/wine.systemreg
269 %config(missingok) %{_sysconfdir}/wine.userreg
270 %attr(754,root,root) %{_sysconfdir}/rc.d/init.d/wine
273 %files programs -f files.programs
274 %defattr(644,root,root,755)
277 %defattr(644,root,root,755)
278 %doc documentation/{wine-devel,winelib-user,HOWTO-winelib}
279 %attr(755,root,root) %{_bindir}/fnt2bdf
280 %attr(755,root,root) %{_bindir}/function_grep.pl
281 %attr(755,root,root) %{_bindir}/hlp2sgml
282 %attr(755,root,root) %{_bindir}/widl
283 %attr(755,root,root) %{_bindir}/winebuild
284 %attr(755,root,root) %{_bindir}/winedump
285 %attr(755,root,root) %{_bindir}/wineg++
286 %attr(755,root,root) %{_bindir}/winegcc
287 %attr(755,root,root) %{_bindir}/winemaker
288 %attr(755,root,root) %{_bindir}/winewrap
289 %attr(755,root,root) %{_bindir}/wmc
290 %attr(755,root,root) %{_bindir}/wrc
293 %{_mandir}/man1/winemaker.*
294 %{_mandir}/man1/winebuild.*
295 %{_mandir}/man1/wmc.*
296 %{_mandir}/man1/wrc.*
300 %defattr(644,root,root,755)
301 %doc documentation/*.pdf