2 # --with static - linked static
4 Summary: A DOS emulator
5 Summary(de): DOS-Emulator
6 Summary(es): Emulador DOS
7 Summary(fr): Emulateur DOS
8 Summary(pl): Emulator DOSa
9 Summary(pt_BR): Emulador DOS
10 Summary(tr): DOS öykünümcüsü
15 Group: Applications/Emulators
16 Source0: ftp://ftp.sourceforge.net/pub/sourceforge/dosemu/%{name}-%{version}.tgz
17 Source1: http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-pl-man-pages.tar.bz2
18 Source2: %{name}-sys.tar.gz
19 Source3: %{name}-PRZECZYTAJ_TO
20 Source4: %{name}-README.PLD
21 Source5: %{name}.desktop
22 Patch0: ftp://ftp.sourceforge.net/pub/sourceforge/dosemu/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
36 BuildRequires: autoconf
39 #BuildRequires: docbook-dtd-sgml
42 #BuildRequires: openjade
44 #BuildRequires: sgml-tools
45 BuildRequires: slang-devel
46 BuildRequires: util-linux
49 %{?_with_static:BuildRequires: glibc-static}
50 %{?_with_static:BuildRequires: XFree86-static}
51 %{?_with_static:BuildRequires: slang-static}
52 ExclusiveArch: %{ix86}
53 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
54 Conflicts: kernel < 2.0.28
55 Conflicts: mtools < 3.6
58 %define _xbindir /usr/X11R6/bin
59 %define _dosemudir /var/lib/dosemu
62 Dosemu is a DOS emulator. Once you've installed dosemu, start the DOS
63 emulator by typing in the "dos" command.
65 You need to install dosemu if you use DOS programs and you want to be
66 able to run them on your GNU/Linux system. You may also need to
67 install the dosemu-freedos-* packages.
70 Esta es una versión del emulador DOS que fue proyectada para
71 ejecutarse en secciones X Window. Ofrece soporte a gráficos VGA como
72 también soporte a ratón.
75 Dosemu to Emulator systemu DOS. Po zainstalowaniu mo¿esz go uruchomiæ
78 Je¶li korzystasz z dosowych programów i chcia³by¶ je uruchamiaæ na
79 twoim Linuksowym systemie zainstaluj dosemu. Mo¿esz te¿ potrzebowaæ
80 pakietów dosemu-freedos-*.
83 Essa é uma versão do emulador DOS que foi projetada para rodar em
84 sessões X Window. Oferece suporte para gráficos VGA bem como suporte
88 Summary: A DOS emulator for the X Window System
89 Summary(de): DOS-Emulator für X
90 Summary(es): Emulador DOS que se ejecuta en X
91 Summary(fr): Émulateur DOS conçu pou être lancé sous X
92 Summary(pl): Emulator DOSa dla Systemu X Window
93 Summary(pt_BR): Emulador DOS que roda no X
94 Summary(tr): X altýnda çalýþan DOS öykünümcüsü
95 Group: Applications/Emulators
100 %description -n xdosemu
101 Xdosemu is a version of the dosemu DOS emulator that runs with the X
102 Window System. Xdosemu provides VGA graphics and mouse support.
104 %description -n xdosemu -l de
105 Dies ist eine Version des DOS-Emulators für X-Windows-Sitzungen. Er
106 unterstützt VGA-Grafiken und Maus.
108 %description -n xdosemu -l es
109 Esta es la versión del emulador DOS dibujada para ejecutarse en una
110 ventana del X Window. Posee soporte para gráficos VGA y ratón.
112 %description -n xdosemu -l fr
113 Version de l'émulateur DOS conçue pour tourner dans une session X.
114 Offre une gestion des graphismes VGA et de la souris.
116 %description -n xdosemu -l pl
117 Xdosemu jest wersj± emulatora dosemu dzia³aj±c± w X Window System.
118 Xdosemu ma wsparcie dla grafiki VGA i obs³ugi myszki.
120 %description -n xdosemu -l pt_BR
121 Esta é a versão do emulador DOS desenhada para rodar em uma janela do
122 X Window. Possui suporte a gráficos VGA e mouse.
124 %description -n xdosemu -l tr
125 Bu yazýlým, DOS öykünümcüsünün X altýnda çalýþan bir sürümüdür. VGA
126 grafikleri ve fare desteði vardýr.
129 Summary: Utilities for dosemu
130 Summary(pl): Programy pomocnicze do dosemu
131 Group: Applications/Emulators
135 Utilities for dosemu: dexeconfig, hdinfo, mkhdimage, mkfatimage16.
137 %description utils -l pl
138 Programy pomocnicze dla dosemu: dexeconfig, hdinfo, mkhdimage,
157 OPTFLAGS="%{rpmcflags} %{!?debug:-fomit-frame-pointer}"; export OPTFLAGS
159 #./mkpluginhooks enable plugin_keyboard off plugin_kbd_unicode on \
160 #plugin_extra_charset on plugin_term on plugin_translate on plugin_demo off
162 cp -f base-configure.in configure.in
167 %{?_with_static:--enable-linkstatic} \
168 --enable-new-intcode \
173 mv -f bin/dosemu.bin bin/dos-nox
177 %{?_with_static:--enable-linkstatic} \
178 --enable-new-intcode \
181 mv -f bin/dosemu.bin bin/dos-x
182 mv -f bin/dos-nox bin/dosemu.bin
184 mv -f man/dosemu.bin.1 man/dos.1
188 #find src/doc -name "*.html" -exec cp -f '{}' doc/ ';'
194 rm -rf $RPM_BUILD_ROOT
195 install -d $RPM_BUILD_ROOT{%{_bindir},%{_xbindir},%{_sysconfdir},%{_pixmapsdir}} \
196 $RPM_BUILD_ROOT{%{_mandir}/man1,%{_mandir}/pl/man1} \
197 $RPM_BUILD_ROOT%{_dosemudir}/bootdir/{dosemu,freedos/doc/fdkernel} \
198 $RPM_BUILD_ROOT%{_applnkdir}/System
200 install bin/dosemu.bin $RPM_BUILD_ROOT%{_bindir}/dos
201 install bin/dos-x $RPM_BUILD_ROOT%{_xbindir}/dos
202 install bin/midid $RPM_BUILD_ROOT%{_bindir}/midid
203 ln -sf dos $RPM_BUILD_ROOT%{_xbindir}/xdos
204 ln -sf dos $RPM_BUILD_ROOT%{_xbindir}/dosexec
205 install bin/dosdebug $RPM_BUILD_ROOT%{_bindir}/dosdebug
206 install src/tools/periph/{dexeconfig,hdinfo,mkhdimage,mkfatimage16} $RPM_BUILD_ROOT%{_bindir}
207 ln -sf dos $RPM_BUILD_ROOT%{_bindir}/dosexec
209 install etc/dosemu.xpm $RPM_BUILD_ROOT%{_prefix}/X11R6/share/pixmaps
210 install etc/dosemu.users.secure $RPM_BUILD_ROOT%{_sysconfdir}/dosemu.users
211 install etc/global.conf $RPM_BUILD_ROOT%{_dosemudir}/global.conf
212 install etc/dosemu.conf $RPM_BUILD_ROOT%{_sysconfdir}/dosemu.conf
214 install man/{dos.1,dosdebug.1,xdos.1,mkfatimage16.1} $RPM_BUILD_ROOT%{_mandir}/man1
215 install pl/man1/{dos.1,dosdebug.1,xdos.1} $RPM_BUILD_ROOT%{_mandir}/pl/man1
217 install src/plugin/commands/*.com $RPM_BUILD_ROOT%{_dosemudir}/bootdir/dosemu
218 install dosemu/*.sys $RPM_BUILD_ROOT%{_dosemudir}/bootdir/dosemu
219 cp %{SOURCE3} PRZECZYTAJ_TO
220 cp %{SOURCE4} README.PLD
221 install %{SOURCE5} $RPM_BUILD_ROOT%{_applnkdir}/System/
223 #ln -sf dosemu/comcom.com $RPM_BUILD_ROOT%{_dosemudir}/bootdir/command.com
225 # Take out irritating ^H's from the documentation
226 for i in `ls --color=no doc/` ; do cat doc/$i > $i ; cat $i | perl -p -e 's/.\010//g' > doc/$i ; done
228 rm -f doc/{configuration,dosemu.lsm}
231 rm -rf $RPM_BUILD_ROOT
234 %defattr(644,root,root,755)
235 %doc QuickStart COPYING ChangeLog* doc/* PRZECZYTAJ_TO README.PLD
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}/dos
241 %attr(755,root,root) %{_bindir}/dosdebug
242 %attr(755,root,root) %{_bindir}/dosexec
243 %attr(755,root,root) %{_bindir}/midid
244 %dir %{_dosemudir}/bootdir
245 %dir %{_dosemudir}/bootdir/dosemu
246 %{_dosemudir}/bootdir/dosemu/*
247 #%{_dosemudir}/bootdir/command.com
248 %{_mandir}/man1/[dm]*
249 %lang(pl) %{_mandir}/pl/man1/d*
250 %{_pixmapsdir}/dosemu.xpm
253 %defattr(644,root,root,755)
254 %doc QuickStart COPYING ChangeLog* doc/* PRZECZYTAJ_TO README.PLD
256 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dosemu.conf
257 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dosemu.users
258 %config(noreplace) %verify(not size mtime md5) %{_dosemudir}/global.conf
259 %attr(755,root,root) %{_bindir}/dosdebug
260 %attr(755,root,root) %{_bindir}/midid
261 %attr(755,root,root) %{_xbindir}/*
262 %dir %{_dosemudir}/bootdir
263 %dir %{_dosemudir}/bootdir/dosemu
264 %{_dosemudir}/bootdir/dosemu/*
265 #%{_dosemudir}/bootdir/command.com
266 %{_mandir}/man1/[dm]*
267 %{_mandir}/man1/xdos.1*
268 %lang(pl) %{_mandir}/pl/man1/d*
269 %lang(pl) %{_mandir}/pl/man1/xdos.1*
270 %{_applnkdir}/System/*
271 %{_pixmapsdir}/dosemu.xpm
274 %defattr(644,root,root,755)
275 %attr(755,root,root) %{_bindir}/dexeconfig
276 %attr(755,root,root) %{_bindir}/hdinfo
277 %attr(755,root,root) %{_bindir}/mkhdimage
278 %attr(755,root,root) %{_bindir}/mkfatimage16