1 %define _kernel_ver %(grep UTS_RELEASE %{_kernelsrcdir}/include/linux/version.h 2>/dev/null| cut -d'"' -f2)
2 #%define _kernel_ver_str %(echo %{_kernel_ver} | sed s/-/_/g)
3 Summary: A DOS emulator
4 Summary(de): DOS-Emulator
5 Summary(fr): Emulateur DOS
6 Summary(pl): Emulator DOSa
7 Summary(tr): DOS öykünümcüsü
11 License: distributable
12 Group: Applications/Emulators
13 Group(de): Applikationen/Emulators
14 Group(pl): Aplikacje/Emulatory
15 Source0: ftp://ftp.dosemu.org/dosemu/%{name}-%{version}.tgz
16 #Source1: http://www.freedos.org/files/distributions/base1.zip
17 #Source2: http://www.freedos.org/files/distributions/util1.zip
18 #Source3: http://www.freedos.org/files/distributions/edit1.zip
19 #Source4: ftp://ftp.gcfl.net/freedos/kernel/ker2019x.zip
20 #Source5: ftp://ftp.home.vim.org/pub/vim/pc/vim56d16.zip
21 #Source6: ftp://ftp.home.vim.org/pub/vim/pc/vim56rt.zip
22 #Source7: autoexec.bat
24 Source9: %{name}-pl-man-pages.tar.bz2
25 Source10: http://prdownloads.sourceforge.net/freedos/ke2025c16.zip
26 #Source11: dosemu.conf
27 Source12: autoexec2.bat
32 Source17: dosemu-sys.tar.gz
33 #Patch0: %{name}-0.66.7-config.patch
34 #Patch1: %{name}-0.66.7-glibc.patch
35 #Patch2: %{name}-0.66.7-pushal.patch
36 #Patch3: %{name}-0.98.1-security.patch
37 #Patch4: %{name}-0.98.1-justroot.patch
38 #Patch5: %{name}-make-new.patch
39 #Patch6: %{name}m-1.0.0-glibc22.patch
40 #Patch7: %{name}-1.0.1-broken.patch
41 #Patch8: %{name}-time.patch
42 #Patch9: %{name}-man-pages.patch
43 #Patch10: %{name}-cpp_macros.patch
44 Patch11: %{name}-dosemu_conf.patch
45 URL: http://www.dosemu.org/
47 #BuildRequires: mtools
51 BuildRequires: glibc-static
52 BuildRequires: XFree86-static
53 BuildRequires: slang-static
54 Conflicts: mtools < 3.6
55 Exclusivearch: %{ix86}
56 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
57 Conflicts: kernel < 2.0.28
60 Dosemu is a DOS emulator. Once you've installed dosemu, start the DOS
61 emulator by typing in the "dos" command.
63 You need to install dosemu if you use DOS programs and you want to be
64 able to run them on your GNU/Linux system. You may also need to
65 install the dosemu-freedos-* package.
68 Dosemu to Emulator systemu DOS. Po zainstalowaniu mo¿esz go uruchomiæ
71 Powiniene¶ zainstalowaæ dosemu, je¶li korzystasz z dosowych programów
72 i chcia³by¶ je uruchamiaæ na twoim Linuksowym systemie. Mo¿esz te¿
73 potrzebowaæ pakietów dosemu-freedos-*.
76 Summary: A DOS emulator for the X Window System
77 Summary(de): DOS-Emulator für X
78 Summary(fr): Émulateur DOS conçu pou être lancé sous X
79 Summary(tr): X altýnda çalýþan DOS öykünümcüsü
80 Group: Applications/Emulators
81 Group(de): Applikationen/Emulators
82 Group(pl): Aplikacje/Emulatory
83 Requires: %{name} = %{version}
85 %description -n xdosemu
86 Xdosemu is a version of the dosemu DOS emulator that runs with the X
87 Window System. Xdosemu provides VGA graphics and mouse support.
89 Install xdosemu if you need to run DOS programs on your system, and
90 you'd like to do so with the convenience of graphics support and mouse
93 %description -l de -n xdosemu
94 Dies ist eine Version des DOS-Emulators für X-Windows-Sitzungen. Er
95 unterstützt VGA-Grafiken und Maus.
97 %description -l fr -n xdosemu
98 Version de l'émulateur DOS conçue pour tourner dans une session X.
99 Offre une gestion des graphismes VGA et de la souris.
101 %description -l pl -n xdosemu
102 Xdosemu jest wersj± emulatora dosemu dzia³aj±c± w X Window System.
103 Xdosemu ma wsparcie dla grafiki VGA i obs³ugi myszki.
105 %description -l tr -n xdosemu
106 Bu yazýlým, DOS öykünümcüsünün X altýnda çalýþan bir sürümüdür. VGA
107 grafikleri ve fare desteði vardýr.
110 #Summary: A FreeDOS hdimage for dosemu, a DOS emulator, to use
111 #Summary(pl): Obraz FreeDOS-a do u¿ywania z dosemu
112 #Group: Applications/Emulators
113 #Group(de): Applikationen/Emulators
114 #Group(pl): Aplikacje/Emulatory
115 #Requires: %{name} = %{version}
117 #%description freedos
118 #Generally, the dosemu DOS emulator requires either that your system
119 #have some version of DOS available or that your system's partitions
120 #were formatted and installed with DOS. If your system does not meet
121 #either of the previous requirements, you can instead use the dosemu-
122 #freedos package, which contains an hdimage file which will be
123 #installed in the /var/lib/dosemu directory. The hdimage file is
124 #already bootable with FreeDOS.
126 #You will need to edit your /etc/dosemu.conf file to add the image to
127 #the list of disk 'drives' used by dosemu.
129 #Install dosemu-freedos if you are installing the dosemu package and
130 #you don't have a version of DOS available on your system, and your
131 #system's partitions were not formatted and installed with DOS.
133 #%description -l pl freedos
134 #Ogólnie rzecz bior±c dosemu wymaga posiadania b±d¼ jakiej¶ wersji
135 #systemu DOS w systemie, b±d¼ partycji z zainstalowanym DOSem. Je¶li
136 #¿aden z tych warunków nie jest spe³niony, to mo¿esz w zastêpstwie u¿yæ
137 #pakietu dosemu-freedos. Zawiera on obraz obraz dysku (który bêdzie
138 #zainstalowany w katalogu /var/lib/dosemu) z zainstalowanym FreeDOSem.
140 #Musisz wyedytowaæ plik /etc/dosemu.conf aby dodaæ ten plik do listy
141 #'drives' uzywanych przez dosemu.
143 #Zainstaluj dosemu-freedos, je¶li zainstalowa³e¶ pakiet dosemu, a nie
144 #masz dostêpnej ¿adnej innej wersji DOSa.
162 unzip -L -o %{SOURCE10} -d freedos
165 cp base-configure.in configure.in
169 --enable-linkstatic \
170 --enable-new-intcode \
173 mv -f bin/dosemu.bin bin/dos-nox
175 --enable-linkstatic \
176 --enable-new-intcode \
179 make -C src/dosext/net/v-net
180 mv -f bin/dos-nox bin/dos
182 %define _dosemudir /var/lib/dosemu
185 rm -rf $RPM_BUILD_ROOT
186 install -d $RPM_BUILD_ROOT{%{_bindir},%{_sysconfdir},%{_mandir}/pl/man1,%{_pixmapsdir}}
187 install -d $RPM_BUILD_ROOT%{_dosemudir}/bootdir/{dosemu,freedos/doc/fdkernel}
188 install -d $RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}/net
190 install bin/dosemu.bin $RPM_BUILD_ROOT%{_bindir}/xdos
191 install bin/dos $RPM_BUILD_ROOT%{_bindir}/dos
192 install bin/dosdebug $RPM_BUILD_ROOT%{_bindir}/dosdebug
193 install src/tools/periph/{dexeconfig,hdinfo,mkhdimage,mkfatimage16} $RPM_BUILD_ROOT%{_bindir}
194 install etc/dosemu.xpm $RPM_BUILD_ROOT%{_prefix}/X11R6/share/pixmaps
195 install etc/dosemu.users.secure $RPM_BUILD_ROOT%{_sysconfdir}/dosemu.users
196 install etc/global.conf $RPM_BUILD_ROOT%{_dosemudir}/global.conf
197 install etc/dosemu.conf $RPM_BUILD_ROOT%{_sysconfdir}/dosemu.conf
198 install pl/man1/{dos.1,dosdebug.1,xdos.1} $RPM_BUILD_ROOT%{_mandir}/pl/man1
199 install %{SOURCE12} $RPM_BUILD_ROOT%{_dosemudir}/bootdir/autoexec.bat
200 install %{SOURCE13} $RPM_BUILD_ROOT%{_dosemudir}/bootdir/config.sys
201 install %{SOURCE14} $RPM_BUILD_ROOT%{_dosemudir}/bootdir/keybpl.exe
202 install %{SOURCE15} $RPM_BUILD_ROOT%{_dosemudir}/bootdir/egapl.exe
203 install %{SOURCE16} $RPM_BUILD_ROOT%{_dosemudir}/bootdir/shsucdx.exe
204 install src/plugin/commands/*.com $RPM_BUILD_ROOT%{_dosemudir}/bootdir/dosemu
205 install dosemu/*.sys $RPM_BUILD_ROOT%{_dosemudir}/bootdir/dosemu
206 install src/dosext/net/v-net/dosnet.o $RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}/net
207 install freedos/bin/kernel.sys $RPM_BUILD_ROOT%{_dosemudir}/bootdir
208 install freedos/doc/fdkernel/* $RPM_BUILD_ROOT%{_dosemudir}/bootdir/freedos/doc/fdkernel
209 ln -sf dosemu/comcom.com $RPM_BUILD_ROOT%{_dosemudir}/bootdir/command.com
211 #src/tools/periph/mkfatimage16 -p -k 16192 -l FreeDos \
212 # -b freedos/kernel/boot.bin \
213 # -f $RPM_BUILD_ROOT%{_dosemudir}/hdimage.freedos \
215 #FREEDOS=`/bin/mktemp /tmp/freedos.XXXXXX`
216 #echo "drive n: file=\"$RPM_BUILD_ROOT%{_dosemudir}/hdimage.freedos\" offset=8832" > $FREEDOS
219 #mcopy -o/ freedos/vim-5.6 freedos/bin freedos/doc freedos/help freedos/emacs n:
221 #mcopy -/ commands/* n:/DOSEMU
222 #mcopy -o %{SOURCE7} %{SOURCE8} commands/exitemu* n:/
227 #install etc/hdimage.dist $RPM_BUILD_ROOT%{_dosemudir}/hdimage
229 #install dexe/{do_mtools,extract-dos,mkdexe,myxcopy} $RPM_BUILD_ROOT%{_bindir}
231 #cat <<EOF >$RPM_BUILD_ROOT%{_bindir}/rundos
235 # ignore errors if user does not have module installed
236 #%attr(755,root,root) %{_bindir}/dos
239 # Take out irritating ^H's from the documentation
240 for i in `ls --color=no doc/` ; do cat doc/$i > $i ; cat $i | perl -p -e 's/.
\b//g' > doc/$i ; done
242 rm -f doc/{configuration,dosemu.lsm}
244 #mv -f $RPM_BUILD_ROOT/usr/X11R6/lib/X11/fonts/misc \
245 # $RPM_BUILD_ROOT%{_fontsdir}
247 #bzip2 -dc %{SOURCE9} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
249 gzip -9nf QuickStart COPYING ChangeLog* doc/*
250 # $RPM_BUILD_ROOT%{_fontsdir}/misc/*
253 rm -rf $RPM_BUILD_ROOT
262 #if [ -x /usr/X11R6/bin/mkfontdir ]; then
263 # (cd /usr/share/fonts/misc; /usr/X11R6/bin/mkfontdir)
265 #killall -USR1 xfs > /dev/null 2>&1 ||:
268 #if [ -x /usr/X11R6/bin/mkfontdir ]; then
269 # (cd /usr/share/fonts/misc; /usr/X11R6/bin/mkfontdir)
271 #killall -USR1 xfs > /dev/null 2>&1 ||:
274 #[ -e %{_dosemudir}/hdimage.first ] || \
275 # ln -sf hdimage.freedos %{_dosemudir}/hdimage.first
278 #if [ "$1" = "0" ]; then
279 # if [ -e %{_dosemudir}/hdimage.first ]; then
280 # rm -f %{_dosemudir}/hdimage.first
285 %defattr(644,root,root,755)
288 %config(noreplace) %{_sysconfdir}/dosemu.conf
289 %config(noreplace) %{_sysconfdir}/dosemu.users
290 #%config(noreplace) %{_dosemudir}/hdimage
291 %config(noreplace) %{_dosemudir}/global.conf
292 %attr(755,root,root) %{_bindir}/dos
293 %attr(755,root,root) %{_bindir}/dosdebug
294 #%attr(755,root,root) %{_bindir}/dosexec
295 #%attr(755,root,root) %{_bindir}/dexeconfig
296 %attr(755,root,root) %{_bindir}/hdinfo
297 #%attr(755,root,root) %{_bindir}/do_mtools
298 #%attr(755,root,root) %{_bindir}/extract-dos
299 #%attr(755,root,root) %{_bindir}/mkdexe
300 #%attr(755,root,root) %{_bindir}/myxcopy
301 %attr(755,root,root) %{_bindir}/mkhdimage
302 %attr(755,root,root) %{_bindir}/mkfatimage16
303 #%attr(755,root,root) %{_bindir}/rundos
304 %{_dosemudir}/bootdir/dosemu/*
305 %{_dosemudir}/bootdir/kernel.sys
306 %config(noreplace) %{_dosemudir}/bootdir/autoexec.bat
307 %config(noreplace) %{_dosemudir}/bootdir/config.sys
308 %{_dosemudir}/bootdir/command.com
309 %{_dosemudir}/bootdir/*.exe
310 %{_dosemudir}/bootdir/freedos/*
311 /lib/modules/%{_kernel_ver}/net/dosnet.o
312 #%{_mandir}/man1/dos*
313 #%{_mandir}/man1/mkfatimage16.1*
314 %lang(pl) %{_mandir}/pl/man1/dos*
315 %{_pixmapsdir}/dosemu.xpm
318 %defattr(644,root,root,755)
319 %attr(755,root,root) %{_bindir}/xdos
320 # %attr(755,root,root) %{_bindir}/xtermdos
321 #%{_mandir}/man1/xdos.1*
322 %lang(pl) %{_mandir}/pl/man1/xdos.1*
323 # %{_mandir}/man1/xtermdos.1*
324 # %{_datadir}/fonts/misc/*
327 #%defattr(644,root,root,755)
328 #%config %{_dosemudir}/hdimage.freedos