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
114 Summary: Wine documentations in PDF
115 Summary(pl): Dokumentacja Wine w formacie PDF
126 # turn off compilation of some tools
127 #sed -e "s|winetest \\\|\\\|;s|avitools||" programs/Makefile.in > .tmp
128 sed -e "s|avitools||" programs/Makefile.in > .tmp
129 mv -f .tmp programs/Makefile.in
134 CPPFLAGS="-I/usr/include/ncurses"; export CPPFLAGS
135 CFLAGS="%{rpmcflags} $CPPFLAGS"
137 %{!?debug: --disable-debug} \
138 %{!?debug: --disable-trace} \
145 %{__make} -C programs
146 %{__make} -C programs/regapi
149 db2html wine-user.sgml
150 db2html wine-devel.sgml
151 db2html wine-faq.sgml
152 db2html winelib-user.sgml
154 db2pdf wine-user.sgml
155 db2pdf wine-devel.sgml
157 db2pdf winelib-user.sgml
161 rm -rf $RPM_BUILD_ROOT
162 install -d $RPM_BUILD_ROOT{%{_mandir}/man1,%{_aclocaldir}}
164 %{__make} install DESTDIR=$RPM_BUILD_ROOT
165 %{__make} -C programs install DESTDIR=$RPM_BUILD_ROOT
167 install programs/winhelp/hlp2sgml $RPM_BUILD_ROOT%{_bindir}
168 install tools/fnt2bdf $RPM_BUILD_ROOT%{_bindir}
170 install aclocal.m4 $RPM_BUILD_ROOT%{_aclocaldir}/wine.m4
171 #mv -f $RPM_BUILD_ROOT{/usr/X11R6/share/aclocal,%{_aclocaldir}}/wine.m4
173 install -d $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d \
174 $RPM_BUILD_ROOT%{_winedir}/windows/{system,Desktop,Favorites,Fonts} \
175 "$RPM_BUILD_ROOT%{_winedir}/windows/Start Menu/Programs/Startup" \
176 $RPM_BUILD_ROOT%{_winedir}/windows/{SendTo,ShellNew,system32,NetHood} \
177 $RPM_BUILD_ROOT%{_winedir}/windows/{Profiles/Administrator,Recent} \
178 $RPM_BUILD_ROOT%{_winedir}/{"Program Files/Common Files","My Documents"}
180 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/wine
181 install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}
182 install %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}
183 install %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}
185 touch $RPM_BUILD_ROOT%{_winedir}/{autoexec.bat,config.sys,windows/win.ini}
186 touch $RPM_BUILD_ROOT%{_winedir}/windows/system/{shell.dll,shell32.dll}
187 touch $RPM_BUILD_ROOT%{_winedir}/windows/system/{winsock.dll,wsock32.dll}
189 cat >$RPM_BUILD_ROOT%{_winedir}/windows/system.ini <<EOF
193 waveaudio=mciwave.drv
195 videodisc=mcipionr.drv
200 %if %{?debug:0}%{!?debug:1}
201 echo "Strip executable binaries and shared object files."
202 filelist=`find $RPM_BUILD_ROOT -type f ! -regex ".*ld-[0-9.]*so.*"`
203 elfexelist=`echo $filelist | xargs -r file | \
204 awk '/ELF.*executable/ {print $1}' | cut -d: -f1`
205 elfsharedlist=`echo $filelist | xargs -r file | \
206 awk '/LF.*shared object/ {print $1}' | cut -d: -f1`; \
207 if [ -n "$elfexelist" ]; then \
208 strip -R .note -R .comment $elfexelist
210 if [ -n "$elfsharedlist" ]; then
211 strip --strip-unneeded -R .note -R .comment $elfsharedlist
215 /sbin/chstk -e $RPM_BUILD_ROOT%{_bindir}/wine
217 programs="notepad progman regedit regsvr32 uninstaller wineconsole winefile winemine winepath winhelp wcmd"
220 rm -f files.so; touch files.so
221 rm -f files.programs; touch files.programs
222 cd $RPM_BUILD_ROOT%{_libdir}/wine
224 echo "%attr(755,root,root) %{_libdir}/wine/$f" >>$BZZZ/files.so
227 for p in $programs; do
228 echo "%attr(755,root,root) %{_bindir}/$p" >> files.programs
229 echo "%attr(755,root,root) %{_libdir}/wine/$p.exe.so" >> files.programs
230 grep -v "$p\.exe\.so$" files.so > files.so.
231 mv -f files.so. files.so
235 rm -rf $RPM_BUILD_ROOT
239 /sbin/chkconfig --add wine
240 if [ ! -f /var/lock/subsys/wine ]; then
241 echo "Run \"/etc/rc.d/init.d/wine start\" to start wine service." >&2
245 if [ "$1" = "0" ]; then
246 if [ -f /var/lock/subsys/wine ]; then
247 /etc/rc.d/init.d/wine stop >&2
249 /sbin/chkconfig --del wine
252 %postun -p /sbin/ldconfig
255 %defattr(644,root,root,755)
256 %doc README DEVELOPERS-HINTS ChangeLog BUGS AUTHORS ANNOUNCE
257 %doc documentation/{wine-user,samples,status,wine-faq}
258 %attr(755,root,root) %{_bindir}/wine
259 %attr(755,root,root) %{_bindir}/wineboot
260 %attr(755,root,root) %{_bindir}/winecfg
261 %attr(755,root,root) %{_bindir}/wineclipsrv
262 %attr(755,root,root) %{_bindir}/winedbg
263 %attr(755,root,root) %{_bindir}/winelauncher
264 %attr(755,root,root) %{_bindir}/wineserver
265 %attr(755,root,root) %{_bindir}/wineshelllink
266 %attr(755,root,root) %{_libdir}/*.so*
268 %{_mandir}/man1/wine.*
269 %{_mandir}/man5/wine.conf.*
270 %config(noreplace) %{_sysconfdir}/wine.reg
271 %config(missingok) %{_sysconfdir}/wine.systemreg
272 %config(missingok) %{_sysconfdir}/wine.userreg
273 %attr(754,root,root) %{_sysconfdir}/rc.d/init.d/wine
276 %files programs -f files.programs
277 %defattr(644,root,root,755)
280 %defattr(644,root,root,755)
281 %doc documentation/{wine-devel,winelib-user,HOWTO-winelib}
282 %attr(755,root,root) %{_bindir}/fnt2bdf
283 %attr(755,root,root) %{_bindir}/function_grep.pl
284 %attr(755,root,root) %{_bindir}/hlp2sgml
285 %attr(755,root,root) %{_bindir}/widl
286 %attr(755,root,root) %{_bindir}/winebuild
287 %attr(755,root,root) %{_bindir}/winedump
288 %attr(755,root,root) %{_bindir}/wineg++
289 %attr(755,root,root) %{_bindir}/winegcc
290 %attr(755,root,root) %{_bindir}/winemaker
291 %attr(755,root,root) %{_bindir}/winewrap
292 %attr(755,root,root) %{_bindir}/wmc
293 %attr(755,root,root) %{_bindir}/wrc
296 %{_mandir}/man1/winemaker.*
297 %{_mandir}/man1/winebuild.*
298 %{_mandir}/man1/wmc.*
299 %{_mandir}/man1/wrc.*
303 %defattr(644,root,root,755)
304 %doc documentation/*.pdf