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