1 Summary: A DOS emulator
2 Summary(de): DOS-Emulator
3 Summary(fr): Emulateur DOS
4 Summary(pl): Emulator DOSa
5 Summary(tr): DOS öykünümcüsü
10 Group: Applications/Emulators
11 Group(de): Applikationen/Emulators
12 Group(pl): Aplikacje/Emulatory
13 Source0: ftp://ftp.dosemu.org/dosemu/%{name}-%{version}.tgz
14 Source1: http://www.freedos.org/files/distributions/base1.zip
15 Source2: http://www.freedos.org/files/distributions/util1.zip
16 Source3: http://www.freedos.org/files/distributions/edit1.zip
17 Source4: ftp://ftp.gcfl.net/freedos/kernel/ker2019x.zip
18 Source5: ftp://ftp.home.vim.org/pub/vim/pc/vim56d16.zip
19 Source6: ftp://ftp.home.vim.org/pub/vim/pc/vim56rt.zip
22 Source9: %{name}-pl-man-pages.tar.bz2
23 Patch0: %{name}-0.66.7-config.patch
24 Patch1: %{name}-0.66.7-glibc.patch
25 Patch2: %{name}-0.66.7-pushal.patch
26 Patch3: %{name}-0.98.1-security.patch
27 Patch4: %{name}-0.98.1-justroot.patch
28 Patch5: %{name}-make-new.patch
29 Patch6: %{name}m-1.0.0-glibc22.patch
30 Patch7: %{name}-1.0.1-broken.patch
31 Patch8: %{name}-time.patch
32 Patch9: %{name}-man-pages.patch
33 URL: http://www.dosemu.org/
39 Requires: mtools >= 3.6
40 Exclusivearch: %{ix86}
41 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
42 Conflicts: kernel < 2.0.28
45 Dosemu is a DOS emulator. Once you've installed dosemu, start the DOS
46 emulator by typing in the "dos" command.
48 You need to install dosemu if you use DOS programs and you want to be
49 able to run them on your GNU/Linux system. You may also need to
50 install the dosemu-freedos package.
53 Dosemu to Emulator systemu DOS. Po zainstalowaniu mo¿esz go uruchomiæ
56 Powiniene¶ zainstalowaæ dosemu, je¶li korzystasz z dosowych programów
57 i chcia³by¶ je uruchamiaæ na twoim Linuksowym systemie. Mo¿esz te¿
58 potrzebowaæ pakiet dosemu-freedos.
61 Summary: A DOS emulator for the X Window System
62 Summary(de): DOS-Emulator für X
63 Summary(fr): Émulateur DOS conçu pou être lancé sous X
64 Summary(tr): X altýnda çalýþan DOS öykünümcüsü
65 Group: Applications/Emulators
66 Group(de): Applikationen/Emulators
67 Group(pl): Aplikacje/Emulatory
68 Requires: %{name} = %{version}
70 %description -n xdosemu
71 Xdosemu is a version of the dosemu DOS emulator that runs with the X
72 Window System. Xdosemu provides VGA graphics and mouse support.
74 Install xdosemu if you need to run DOS programs on your system, and
75 you'd like to do so with the convenience of graphics support and mouse
78 %description -l de -n xdosemu
79 Dies ist eine Version des DOS-Emulators für X-Windows-Sitzungen. Er
80 unterstützt VGA-Grafiken und Maus.
82 %description -l fr -n xdosemu
83 Version de l'émulateur DOS conçue pour tourner dans une session X.
84 Offre une gestion des graphismes VGA et de la souris.
86 %description -l pl -n xdosemu
87 Xdosemu jest wersj± emulatora dosemu dzia³aj±c± w X Window System.
88 Xdosemu ma wsparcie dla grafiki VGA i obs³ugi myszki.
90 %description -l tr -n xdosemu
91 Bu yazýlým, DOS öykünümcüsünün X altýnda çalýþan bir sürümüdür. VGA
92 grafikleri ve fare desteði vardýr.
95 Requires: %{name} = %{version}
96 Summary: A FreeDOS hdimage for dosemu, a DOS emulator, to use.
97 Group: Applications/Emulators
98 Group(de): Applikationen/Emulators
99 Group(pl): Aplikacje/Emulatory
102 Generally, the dosemu DOS emulator requires either that your system
103 have some version of DOS available or that your system's partitions
104 were formatted and installed with DOS. If your system does not meet
105 either of the previous requirements, you can instead use the dosemu-
106 freedos package, which contains an hdimage file which will be
107 installed in the /var/lib/dosemu directory. The hdimage file is
108 already bootable with FreeDOS.
110 You will need to edit your /etc/dosemu.conf file to add the image to
111 the list of disk 'drives' used by dosemu.
113 Install dosemu-freedos if you are installing the dosemu package and
114 you don't have a version of DOS available on your system, and your
115 system's partitions were not formatted and installed with DOS.
117 %description -l pl freedos
118 Ogólnie rzecz bior±c dosemu wymaga posiadania b±d¼ jakiej¶ wersji
119 systemu DOS w systemie, b±d¼ partycji z zainstalowanym DOSem. Je¶li
120 ¿aden z tych warunków nie jest spe³niony, to mo¿esz w zastêpstwie u¿yæ
121 pakietu dosemu-freedos. Zawiera on obraz obraz dysku (który bêdzie
122 zainstalowany w katalogu /var/lib/dosemu) z zainstalowanym FreeDOSem.
124 Musisz wyedytowaæ plik /etc/dosemu.conf aby dodaæ ten plik do listy
125 'drives' uzywanych przez dosemu.
127 Zainstaluj dosemu-freedos, je¶li zainstalowa³e¶ pakiet dosemu, a nie
128 masz dostêpnej ¿adnej innej wersji DOSa.
148 unzip -o -L -d freedos/kernel/ -j %{SOURCE4}
149 cp -f contrib/dosC/dist/* freedos/kernel
150 for i in %{SOURCE1} %{SOURCE3} %{SOURCE2} ; do
151 unzip -o -L -d freedos/tmp $i
153 for i in freedos/tmp/*.zip ; do
154 unzip -o -L -o -d freedos $i
156 unzip -L -o -d freedos %{SOURCE6}
157 unzip -L -o -d freedos/vim-5.6 %{SOURCE5}
160 ./default-configure --without-x
162 mv -f bin/dos bin/dos-nox
165 mv -f bin/dos bin/dos-x
166 mv -f bin/dos-nox bin/dos
169 rm -rf $RPM_BUILD_ROOT
170 install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_mandir}/man1,%{_pixmapsdir},/var/lib/dosemu,%{_datadir}/fonts}
172 %{__make} install INSTROOT=$RPM_BUILD_ROOT
174 rm -f $RPM_BUILD_ROOT%{_bindir}/xdos
176 install bin/dos-x $RPM_BUILD_ROOT%{_bindir}/xdos
177 install setup-hdimage $RPM_BUILD_ROOT%{_bindir}
178 install src/tools/periph/{dexeconfig,hdinfo,mkhdimage,mkfatimage16} $RPM_BUILD_ROOT%{_bindir}
179 install etc/dosemu.xpm $RPM_BUILD_ROOT%{_prefix}/X11R6/share/pixmaps
180 install etc/dosemu.users.secure $RPM_BUILD_ROOT%{_sysconfdir}/dosemu.users
181 src/tools/periph/mkfatimage16 -p -k 16192 -l FreeDos \
182 -b freedos/kernel/boot.bin \
183 -f $RPM_BUILD_ROOT/var/lib/dosemu/hdimage.freedos \
185 FREEDOS=`/bin/mktemp /tmp/freedos.XXXXXX`
186 echo "drive n: file=\"$RPM_BUILD_ROOT/var/lib/dosemu/hdimage.freedos\" offset=8832" > $FREEDOS
189 mcopy -o/ freedos/vim-5.6 freedos/bin freedos/doc freedos/help freedos/emacs n:
191 mcopy -/ commands/* n:/DOSEMU
192 mcopy -o %{SOURCE7} %{SOURCE8} commands/exitemu* n:/
197 install etc/hdimage.dist $RPM_BUILD_ROOT/var/lib/dosemu/hdimage
199 install dexe/{do_mtools,extract-dos,mkdexe,myxcopy} $RPM_BUILD_ROOT%{_bindir}
201 cat <<EOF >$RPM_BUILD_ROOT%{_bindir}/rundos
205 # ignore errors if user does not have module installed
206 %attr(755,root,root) %{_bindir}/dos
209 # Take out irritating ^H's from the documentation
210 for i in `ls --color=no doc/` ; do cat doc/$i > $i ; cat $i | perl -p -e 's/.
\b//g' > doc/$i ; done
212 rm -f doc/{configuration,dosemu.lsm}
214 mv $RPM_BUILD_ROOT/usr/X11R6/lib/X11/fonts/misc \
215 $RPM_BUILD_ROOT%{_datadir}/fonts
217 bzip2 -dc %{SOURCE9} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
219 gzip -9nf QuickStart COPYING ChangeLog* doc/* \
220 $RPM_BUILD_ROOT%{_datadir}/fonts/misc/*
223 rm -rf $RPM_BUILD_ROOT
226 if [ -x /usr/X11R6/bin/mkfontdir ]; then
227 (cd /usr/share/fonts/misc; /usr/X11R6/bin/mkfontdir)
229 killall -USR1 xfs > /dev/null 2>&1 ||:
232 if [ -x /usr/X11R6/bin/mkfontdir ]; then
233 (cd /usr/share/fonts/misc; /usr/X11R6/bin/mkfontdir)
235 killall -USR1 xfs > /dev/null 2>&1 ||:
238 [ -e /var/lib/dosemu/hdimage.first ] || \
239 ln -s hdimage.freedos /var/lib/dosemu/hdimage.first
242 if [ "$1" =" 0" ]; then
243 if [ -e /var/lib/dosemu/hdimage.first ]; then
244 rm -f /var/lib/dosemu/hdimage.first
249 %defattr(644,root,root,755)
252 %config %{_sysconfdir}/dosemu.conf
253 %config %{_sysconfdir}/dosemu.users
254 %config /var/lib/dosemu/hdimage
255 %config /var/lib/dosemu/global.conf
256 %attr(4755,root,root) %{_bindir}/dos
257 %attr(755,root,root) %{_bindir}/dosdebug
258 %attr(755,root,root) %{_bindir}/dosexec
259 %attr(755,root,root) %{_bindir}/dexeconfig
260 %attr(755,root,root) %{_bindir}/hdinfo
261 %attr(755,root,root) %{_bindir}/do_mtools
262 %attr(755,root,root) %{_bindir}/extract-dos
263 %attr(755,root,root) %{_bindir}/mkdexe
264 %attr(755,root,root) %{_bindir}/myxcopy
265 %attr(755,root,root) %{_bindir}/mkhdimage
266 %attr(755,root,root) %{_bindir}/mkfatimage16
267 %attr(755,root,root) %{_bindir}/rundos
268 %attr(755,root,root) %{_bindir}/setup-hdimage
270 %{_mandir}/man1/mkfatimage16.1*
271 %lang(pl) %{_mandir}/pl/man1/dos*
272 %{_pixmapsdir}/dosemu.xpm
275 %defattr(644,root,root,755)
276 %attr(4755,root,root) %{_bindir}/xdos
277 # %attr(755,root,root) %{_bindir}/xtermdos
278 %{_mandir}/man1/xdos.1*
279 %lang(pl) %{_mandir}/pl/man1/xdos.1*
280 # %{_mandir}/man1/xtermdos.1*
281 %{_datadir}/fonts/misc/*
284 %defattr(644,root,root,755)
285 %config /var/lib/dosemu/hdimage.freedos