2 # --with static - links statically
3 # --without dist_kernel - without distribution kernel
5 Summary: A DOS emulator
6 Summary(de): DOS-Emulator
7 Summary(es): Emulador DOS
8 Summary(fr): Emulateur DOS
9 Summary(pl): Emulator DOSa
10 Summary(pt_BR): Emulador DOS
11 Summary(tr): DOS öykünümcüsü
16 Group: Applications/Emulators
17 Source0: ftp://ftp.dosemu.org/dosemu/%{name}-%{version}.tgz
18 Source1: http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-pl-man-pages.tar.bz2
19 Source2: %{name}-sys.tar.gz
20 Patch0: ftp://ftp.dosemu.org/dosemu/fixes/patch-1.0.2.1.gz
21 Patch1: %{name}-1.0.2-man-pages.patch
22 Patch2: %{name}-0.98.1-security.patch
23 Patch3: %{name}-make-new.patch
24 Patch4: %{name}-Polish_keyboard.patch
25 Patch5: %{name}-%{name}_conf.patch
26 Patch6: %{name}-alt224.patch
28 Patch8: %{name}-rawkeyboard-console.patch
29 URL: http://www.dosemu.org/
30 BuildRequires: XFree86-devel
35 BuildRequires: slang-devel
38 %{?_with_static:BuildRequires: glibc-static}
39 %{?_with_static:BuildRequires: XFree86-static}
40 %{?_with_static:BuildRequires: slang-static}
41 ExclusiveArch: %{ix86}
42 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
43 Conflicts: kernel < 2.0.28
44 Conflicts: mtools < 3.6
47 %define _xbindir /usr/X11R6/bin
48 %define _dosemudir /var/lib/dosemu
51 Dosemu is a DOS emulator. Once you've installed dosemu, start the DOS
52 emulator by typing in the "dos" command.
54 You need to install dosemu if you use DOS programs and you want to be
55 able to run them on your GNU/Linux system. You may also need to
56 install the dosemu-freedos-* packages.
59 Esta es una versión del emulador DOS que fue proyectada para
60 ejecutarse en secciones X Window. Ofrece soporte a gráficos VGA como
61 también soporte a ratón.
64 Dosemu to Emulator systemu DOS. Po zainstalowaniu mo¿esz go uruchomiæ
67 Je¶li korzystasz z dosowych programów i chcia³by¶ je uruchamiaæ na
68 twoim Linuksowym systemie zainstaluj dosemu. Mo¿esz te¿ potrzebowaæ
69 pakietów dosemu-freedos-*.
72 Essa é uma versão do emulador DOS que foi projetada para rodar em
73 sessões X Window. Oferece suporte para gráficos VGA bem como suporte
77 Summary: A DOS emulator for the X Window System
78 Summary(de): DOS-Emulator für X
79 Summary(es): Emulador DOS que se ejecuta en X
80 Summary(fr): Émulateur DOS conçu pou être lancé sous X
81 Summary(pt_BR): Emulador DOS que roda no X
82 Summary(tr): X altýnda çalýþan DOS öykünümcüsü
83 Group: Applications/Emulators
88 %description -n xdosemu
89 Xdosemu is a version of the dosemu DOS emulator that runs with the X
90 Window System. Xdosemu provides VGA graphics and mouse support.
92 %description -n xdosemu -l de
93 Dies ist eine Version des DOS-Emulators für X-Windows-Sitzungen. Er
94 unterstützt VGA-Grafiken und Maus.
96 %description -n xdosemu -l es
97 Esta es la versión del emulador DOS dibujada para ejecutarse en una
98 ventana del X Window. Posee soporte para gráficos VGA y ratón.
100 %description -n xdosemu -l fr
101 Version de l'émulateur DOS conçue pour tourner dans une session X.
102 Offre une gestion des graphismes VGA et de la souris.
104 %description -n xdosemu -l pl
105 Xdosemu jest wersj± emulatora dosemu dzia³aj±c± w X Window System.
106 Xdosemu ma wsparcie dla grafiki VGA i obs³ugi myszki.
108 %description -n xdosemu -l pt_BR
109 Esta é a versão do emulador DOS desenhada para rodar em uma janela do
110 X Window. Possui suporte a gráficos VGA e mouse.
112 %description -n xdosemu -l tr
113 Bu yazýlým, DOS öykünümcüsünün X altýnda çalýþan bir sürümüdür. VGA
114 grafikleri ve fare desteði vardýr.
117 Summary: Utilities for dosemu
118 Summary(pl): Programy pomocnicze do dosemu
119 Group: Applications/Emulators
123 Utilities for dosemu: dexeconfig, hdinfo, mkhdimage, mkfatimage16.
125 %description utils -l pl
126 Programy pomocnicze dla dosemu: dexeconfig, hdinfo, mkhdimage,
142 OPTFLAGS="%{rpmcflags} %{!?debug:-fomit-frame-pointer}"; export OPTFLAGS
144 cp -f base-configure.in configure.in
149 %{?_with_static:--enable-linkstatic} \
150 --enable-new-intcode \
155 mv -f bin/dosemu.bin bin/dos-nox
159 %{?_with_static:--enable-linkstatic} \
160 --enable-new-intcode \
163 mv -f bin/dosemu.bin bin/dos-x
164 mv -f bin/dos-nox bin/dosemu.bin
166 mv -f man/dosemu.bin.1 man/dos.1
169 rm -rf $RPM_BUILD_ROOT
170 install -d $RPM_BUILD_ROOT{%{_bindir},%{_xbindir},%{_sysconfdir},%{_pixmapsdir}} \
171 $RPM_BUILD_ROOT{%{_mandir}/man1,%{_mandir}/pl/man1} \
172 $RPM_BUILD_ROOT%{_dosemudir}/bootdir/{dosemu,freedos/doc/fdkernel}
174 install bin/dosemu.bin $RPM_BUILD_ROOT%{_bindir}/dos
175 install bin/dos-x $RPM_BUILD_ROOT%{_xbindir}/dos
176 ln -sf dos $RPM_BUILD_ROOT%{_xbindir}/xdos
177 ln -sf dos $RPM_BUILD_ROOT%{_xbindir}/dosexec
178 install bin/dosdebug $RPM_BUILD_ROOT%{_bindir}/dosdebug
179 install src/tools/periph/{dexeconfig,hdinfo,mkhdimage,mkfatimage16} $RPM_BUILD_ROOT%{_bindir}
180 ln -sf dos $RPM_BUILD_ROOT%{_bindir}/dosexec
182 install etc/dosemu.xpm $RPM_BUILD_ROOT%{_prefix}/X11R6/share/pixmaps
183 install etc/dosemu.users.secure $RPM_BUILD_ROOT%{_sysconfdir}/dosemu.users
184 install etc/global.conf $RPM_BUILD_ROOT%{_dosemudir}/global.conf
185 install etc/dosemu.conf $RPM_BUILD_ROOT%{_sysconfdir}/dosemu.conf
187 install man/{dos.1,dosdebug.1,xdos.1,mkfatimage16.1} $RPM_BUILD_ROOT%{_mandir}/man1
188 install pl/man1/{dos.1,dosdebug.1,xdos.1} $RPM_BUILD_ROOT%{_mandir}/pl/man1
190 install src/plugin/commands/*.com $RPM_BUILD_ROOT%{_dosemudir}/bootdir/dosemu
191 install dosemu/*.sys $RPM_BUILD_ROOT%{_dosemudir}/bootdir/dosemu
192 #ln -sf dosemu/comcom.com $RPM_BUILD_ROOT%{_dosemudir}/bootdir/command.com
194 # Take out irritating ^H's from the documentation
195 for i in `ls --color=no doc/` ; do cat doc/$i > $i ; cat $i | perl -p -e 's/.\010//g' > doc/$i ; done
197 rm -f doc/{configuration,dosemu.lsm}
199 gzip -9nf QuickStart COPYING ChangeLog* doc/*
202 rm -rf $RPM_BUILD_ROOT
205 %defattr(644,root,root,755)
208 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dosemu.conf
209 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dosemu.users
210 %config(noreplace) %verify(not size mtime md5) %{_dosemudir}/global.conf
211 %attr(755,root,root) %{_bindir}/dos
212 %attr(755,root,root) %{_bindir}/dosdebug
213 %attr(755,root,root) %{_bindir}/dosexec
214 %dir %{_dosemudir}/bootdir
215 %dir %{_dosemudir}/bootdir/dosemu
216 %{_dosemudir}/bootdir/dosemu/*
217 #%{_dosemudir}/bootdir/command.com
218 %{_mandir}/man1/[dm]*
219 %lang(pl) %{_mandir}/pl/man1/d*
220 %{_pixmapsdir}/dosemu.xpm
223 %defattr(644,root,root,755)
226 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dosemu.conf
227 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dosemu.users
228 %config(noreplace) %verify(not size mtime md5) %{_dosemudir}/global.conf
229 %attr(755,root,root) %{_bindir}/dosdebug
230 %attr(755,root,root) %{_xbindir}/*
231 %dir %{_dosemudir}/bootdir
232 %dir %{_dosemudir}/bootdir/dosemu
233 %{_dosemudir}/bootdir/dosemu/*
234 #%{_dosemudir}/bootdir/command.com
235 %{_mandir}/man1/[dm]*
236 %{_mandir}/man1/xdos.1*
237 %lang(pl) %{_mandir}/pl/man1/d*
238 %lang(pl) %{_mandir}/pl/man1/xdos.1*
239 %{_pixmapsdir}/dosemu.xpm
242 %defattr(644,root,root,755)
243 %attr(755,root,root) %{_bindir}/dexeconfig
244 %attr(755,root,root) %{_bindir}/hdinfo
245 %attr(755,root,root) %{_bindir}/mkhdimage
246 %attr(755,root,root) %{_bindir}/mkfatimage16