2 # --with static - linked static
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 Source3: %{name}-PRZECZYTAJ_TO
21 Source4: %{name}-README.PLD
22 Patch0: ftp://ftp.dosemu.org/dosemu/fixes/patch-1.0.2.1.gz
23 Patch1: %{name}-1.0.2-man-pages.patch
24 Patch2: %{name}-0.98.1-security.patch
25 Patch3: %{name}-make-new.patch
26 Patch4: %{name}-Polish_keyboard.patch
27 Patch5: %{name}-%{name}_conf.patch
28 Patch6: %{name}-alt224.patch
30 Patch8: %{name}-rawkeyboard-console.patch
31 Patch9: %{name}-comcom.patch
32 Patch10: %{name}-global.conf-xdos.patch
33 Patch11: c_run_irqs.diff
34 URL: http://www.dosemu.org/
35 BuildRequires: XFree86-devel
40 BuildRequires: slang-devel
43 %{?_with_static:BuildRequires: glibc-static}
44 %{?_with_static:BuildRequires: XFree86-static}
45 %{?_with_static:BuildRequires: slang-static}
46 ExclusiveArch: %{ix86}
47 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
48 Conflicts: kernel < 2.0.28
49 Conflicts: mtools < 3.6
52 %define _xbindir /usr/X11R6/bin
53 %define _dosemudir /var/lib/dosemu
56 Dosemu is a DOS emulator. Once you've installed dosemu, start the DOS
57 emulator by typing in the "dos" command.
59 You need to install dosemu if you use DOS programs and you want to be
60 able to run them on your GNU/Linux system. You may also need to
61 install the dosemu-freedos-* packages.
64 Esta es una versión del emulador DOS que fue proyectada para
65 ejecutarse en secciones X Window. Ofrece soporte a gráficos VGA como
66 también soporte a ratón.
69 Dosemu to Emulator systemu DOS. Po zainstalowaniu mo¿esz go uruchomiæ
72 Je¶li korzystasz z dosowych programów i chcia³by¶ je uruchamiaæ na
73 twoim Linuksowym systemie zainstaluj dosemu. Mo¿esz te¿ potrzebowaæ
74 pakietów dosemu-freedos-*.
77 Essa é uma versão do emulador DOS que foi projetada para rodar em
78 sessões X Window. Oferece suporte para gráficos VGA bem como suporte
82 Summary: A DOS emulator for the X Window System
83 Summary(de): DOS-Emulator für X
84 Summary(es): Emulador DOS que se ejecuta en X
85 Summary(fr): Émulateur DOS conçu pou être lancé sous X
86 Summary(pt_BR): Emulador DOS que roda no X
87 Summary(tr): X altýnda çalýþan DOS öykünümcüsü
88 Group: Applications/Emulators
93 %description -n xdosemu
94 Xdosemu is a version of the dosemu DOS emulator that runs with the X
95 Window System. Xdosemu provides VGA graphics and mouse support.
97 %description -n xdosemu -l de
98 Dies ist eine Version des DOS-Emulators für X-Windows-Sitzungen. Er
99 unterstützt VGA-Grafiken und Maus.
101 %description -n xdosemu -l es
102 Esta es la versión del emulador DOS dibujada para ejecutarse en una
103 ventana del X Window. Posee soporte para gráficos VGA y ratón.
105 %description -n xdosemu -l fr
106 Version de l'émulateur DOS conçue pour tourner dans une session X.
107 Offre une gestion des graphismes VGA et de la souris.
109 %description -n xdosemu -l pl
110 Xdosemu jest wersj± emulatora dosemu dzia³aj±c± w X Window System.
111 Xdosemu ma wsparcie dla grafiki VGA i obs³ugi myszki.
113 %description -n xdosemu -l pt_BR
114 Esta é a versão do emulador DOS desenhada para rodar em uma janela do
115 X Window. Possui suporte a gráficos VGA e mouse.
117 %description -n xdosemu -l tr
118 Bu yazýlým, DOS öykünümcüsünün X altýnda çalýþan bir sürümüdür. VGA
119 grafikleri ve fare desteði vardýr.
122 Summary: Utilities for dosemu
123 Summary(pl): Programy pomocnicze do dosemu
124 Group: Applications/Emulators
128 Utilities for dosemu: dexeconfig, hdinfo, mkhdimage, mkfatimage16.
130 %description utils -l pl
131 Programy pomocnicze dla dosemu: dexeconfig, hdinfo, mkhdimage,
150 OPTFLAGS="%{rpmcflags} %{!?debug:-fomit-frame-pointer}"; export OPTFLAGS
152 cp -f base-configure.in configure.in
157 %{?_with_static:--enable-linkstatic} \
158 --enable-new-intcode \
163 mv -f bin/dosemu.bin bin/dos-nox
167 %{?_with_static:--enable-linkstatic} \
168 --enable-new-intcode \
171 mv -f bin/dosemu.bin bin/dos-x
172 mv -f bin/dos-nox bin/dosemu.bin
174 mv -f man/dosemu.bin.1 man/dos.1
177 rm -rf $RPM_BUILD_ROOT
178 install -d $RPM_BUILD_ROOT{%{_bindir},%{_xbindir},%{_sysconfdir},%{_pixmapsdir}} \
179 $RPM_BUILD_ROOT{%{_mandir}/man1,%{_mandir}/pl/man1} \
180 $RPM_BUILD_ROOT%{_dosemudir}/bootdir/{dosemu,freedos/doc/fdkernel}
182 install bin/dosemu.bin $RPM_BUILD_ROOT%{_bindir}/dos
183 install bin/dos-x $RPM_BUILD_ROOT%{_xbindir}/dos
184 ln -sf dos $RPM_BUILD_ROOT%{_xbindir}/xdos
185 ln -sf dos $RPM_BUILD_ROOT%{_xbindir}/dosexec
186 install bin/dosdebug $RPM_BUILD_ROOT%{_bindir}/dosdebug
187 install src/tools/periph/{dexeconfig,hdinfo,mkhdimage,mkfatimage16} $RPM_BUILD_ROOT%{_bindir}
188 ln -sf dos $RPM_BUILD_ROOT%{_bindir}/dosexec
190 install etc/dosemu.xpm $RPM_BUILD_ROOT%{_prefix}/X11R6/share/pixmaps
191 install etc/dosemu.users.secure $RPM_BUILD_ROOT%{_sysconfdir}/dosemu.users
192 install etc/global.conf $RPM_BUILD_ROOT%{_dosemudir}/global.conf
193 install etc/dosemu.conf $RPM_BUILD_ROOT%{_sysconfdir}/dosemu.conf
195 install man/{dos.1,dosdebug.1,xdos.1,mkfatimage16.1} $RPM_BUILD_ROOT%{_mandir}/man1
196 install pl/man1/{dos.1,dosdebug.1,xdos.1} $RPM_BUILD_ROOT%{_mandir}/pl/man1
198 install src/plugin/commands/*.com $RPM_BUILD_ROOT%{_dosemudir}/bootdir/dosemu
199 install dosemu/*.sys $RPM_BUILD_ROOT%{_dosemudir}/bootdir/dosemu
200 cp %{SOURCE3} PRZECZYTAJ_TO
201 cp %{SOURCE4} README.PLD
203 #ln -sf dosemu/comcom.com $RPM_BUILD_ROOT%{_dosemudir}/bootdir/command.com
205 # Take out irritating ^H's from the documentation
206 for i in `ls --color=no doc/` ; do cat doc/$i > $i ; cat $i | perl -p -e 's/.\010//g' > doc/$i ; done
208 rm -f doc/{configuration,dosemu.lsm}
210 gzip -9nf QuickStart COPYING ChangeLog* doc/* PRZECZYTAJ_TO README.PLD
213 rm -rf $RPM_BUILD_ROOT
216 %defattr(644,root,root,755)
219 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dosemu.conf
220 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dosemu.users
221 %config(noreplace) %verify(not size mtime md5) %{_dosemudir}/global.conf
222 %attr(755,root,root) %{_bindir}/dos
223 %attr(755,root,root) %{_bindir}/dosdebug
224 %attr(755,root,root) %{_bindir}/dosexec
225 %dir %{_dosemudir}/bootdir
226 %dir %{_dosemudir}/bootdir/dosemu
227 %{_dosemudir}/bootdir/dosemu/*
228 #%{_dosemudir}/bootdir/command.com
229 %{_mandir}/man1/[dm]*
230 %lang(pl) %{_mandir}/pl/man1/d*
231 %{_pixmapsdir}/dosemu.xpm
234 %defattr(644,root,root,755)
237 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dosemu.conf
238 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dosemu.users
239 %config(noreplace) %verify(not size mtime md5) %{_dosemudir}/global.conf
240 %attr(755,root,root) %{_bindir}/dosdebug
241 %attr(755,root,root) %{_xbindir}/*
242 %dir %{_dosemudir}/bootdir
243 %dir %{_dosemudir}/bootdir/dosemu
244 %{_dosemudir}/bootdir/dosemu/*
245 #%{_dosemudir}/bootdir/command.com
246 %{_mandir}/man1/[dm]*
247 %{_mandir}/man1/xdos.1*
248 %lang(pl) %{_mandir}/pl/man1/d*
249 %lang(pl) %{_mandir}/pl/man1/xdos.1*
250 %{_pixmapsdir}/dosemu.xpm
253 %defattr(644,root,root,755)
254 %attr(755,root,root) %{_bindir}/dexeconfig
255 %attr(755,root,root) %{_bindir}/hdinfo
256 %attr(755,root,root) %{_bindir}/mkhdimage
257 %attr(755,root,root) %{_bindir}/mkfatimage16