3 # _with_static - linked static
5 # TODO: look at commented out patches
6 # documentation build is very very slow, I don't why
8 Summary: A DOS emulator
9 Summary(de): DOS-Emulator
10 Summary(es): Emulador DOS
11 Summary(fr): Emulateur DOS
12 Summary(pl): Emulator DOSa
13 Summary(pt_BR): Emulador DOS
14 Summary(tr): DOS öykünümcüsü
18 Version: %{ver}.%{subver}
19 # Please don't bump to 1 until dosemu-1.2
22 Group: Applications/Emulators
23 Source0: ftp://ftp.sourceforge.net/pub/sourceforge/dosemu/%{name}-%{ver}.tgz
24 Source1: http://dosemu.sourceforge.net/testing/patchset-%{version}.tgz
25 Source2: %{name}-sys.tar.gz
26 Source3: %{name}-PRZECZYTAJ_TO
27 Source4: %{name}-README.PLD
28 Source5: %{name}.desktop
29 Source6: http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-pl-man-pages.tar.bz2
30 #Source6: http://www.dosemu.org/~stas/patchset-%{version}.%{pver}.tgz
31 Patch0: %{name}-man-pages.patch
32 Patch1: %{name}-parser-buf.patch
33 Patch2: %{name}-make-new.patch
34 Patch3: %{name}-%{name}_conf.patch
35 Patch4: %{name}-doSgmlTools.patch
36 Patch5: %{name}-makehtml.patch
37 Patch6: %{name}-nox.patch
38 URL: http://www.dosemu.org/
39 BuildRequires: XFree86-devel
40 BuildRequires: autoconf
43 BuildRequires: docbook-dtd30-sgml
46 BuildRequires: openjade
48 BuildRequires: sgml-tools
49 BuildRequires: slang-devel
50 BuildRequires: util-linux
52 %{?_with_static:BuildRequires: glibc-static}
53 %{?_with_static:BuildRequires: XFree86-static}
54 %{?_with_static:BuildRequires: slang-static}
55 ExclusiveArch: %{ix86}
56 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
57 Conflicts: kernel < 2.0.28
58 Conflicts: mtools < 3.6
61 %define _xbindir /usr/X11R6/bin
62 %define _dosemudir /var/lib/dosemu
65 Dosemu is a DOS emulator. Once you've installed dosemu, start the DOS
66 emulator by typing in the "dos" command.
68 You need to install dosemu if you use DOS programs and you want to be
69 able to run them on your GNU/Linux system. You may also need to
70 install the dosemu-freedos-* packages.
73 Esta es una versión del emulador DOS que fue proyectada para
74 ejecutarse en secciones X Window. Ofrece soporte a gráficos VGA como
75 también soporte a ratón.
78 Dosemu to Emulator systemu DOS. Po zainstalowaniu mo¿esz go uruchomiæ
81 Je¶li korzystasz z dosowych programów i chcia³by¶ je uruchamiaæ na
82 twoim Linuksowym systemie zainstaluj dosemu. Mo¿esz te¿ potrzebowaæ
83 pakietów dosemu-freedos-*.
86 Essa é uma versão do emulador DOS que foi projetada para rodar em
87 sessões X Window. Oferece suporte para gráficos VGA bem como suporte
91 Summary: A DOS emulator for the X Window System
92 Summary(de): DOS-Emulator für X
93 Summary(es): Emulador DOS que se ejecuta en X
94 Summary(fr): Émulateur DOS conçu pou être lancé sous X
95 Summary(pl): Emulator DOSa dla Systemu X Window
96 Summary(pt_BR): Emulador DOS que roda no X
97 Summary(tr): X altýnda çalýþan DOS öykünümcüsü
98 Group: Applications/Emulators
102 %description -n xdosemu
103 Xdosemu is a version of the dosemu DOS emulator that runs with the X
104 Window System. Xdosemu provides VGA graphics and mouse support.
106 %description -n xdosemu -l de
107 Dies ist eine Version des DOS-Emulators für X-Windows-Sitzungen. Er
108 unterstützt VGA-Grafiken und Maus.
110 %description -n xdosemu -l es
111 Esta es la versión del emulador DOS dibujada para ejecutarse en una
112 ventana del X Window. Posee soporte para gráficos VGA y ratón.
114 %description -n xdosemu -l fr
115 Version de l'émulateur DOS conçue pour tourner dans une session X.
116 Offre une gestion des graphismes VGA et de la souris.
118 %description -n xdosemu -l pl
119 Xdosemu jest wersj± emulatora dosemu dzia³aj±c± w X Window System.
120 Xdosemu ma wsparcie dla grafiki VGA i obs³ugi myszki.
122 %description -n xdosemu -l pt_BR
123 Esta é a versão do emulador DOS desenhada para rodar em uma janela do
124 X Window. Possui suporte a gráficos VGA e mouse.
126 %description -n xdosemu -l tr
127 Bu yazýlým, DOS öykünümcüsünün X altýnda çalýþan bir sürümüdür. VGA
128 grafikleri ve fare desteði vardýr.
131 Summary: Utilities for dosemu
132 Summary(pl): Programy pomocnicze do dosemu
133 Group: Applications/Emulators
137 Utilities for dosemu: dexeconfig, hdinfo, mkhdimage, mkfatimage16.
139 %description utils -l pl
140 Programy pomocnicze dla dosemu: dexeconfig, hdinfo, mkhdimage,
144 %setup -q -n %{name}-%{ver} -a1 -a2 -a6
156 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
187 %{__make} -C src/doc/DANG html
188 %{__make} -C src/doc/HOWTO html
189 %{__make} -C src/doc/README html
191 find src/doc -name "*.html" -exec cp -f '{}' doc/ ';'
197 rm -rf $RPM_BUILD_ROOT
198 install -d $RPM_BUILD_ROOT{%{_bindir},%{_xbindir},%{_sysconfdir},%{_pixmapsdir}} \
199 $RPM_BUILD_ROOT{%{_mandir}/man1,%{_mandir}/pl/man1} \
200 $RPM_BUILD_ROOT%{_dosemudir}/bootdir/{dosemu,freedos/doc/fdkernel} \
201 $RPM_BUILD_ROOT%{_applnkdir}/System
203 install bin/dosemu.bin $RPM_BUILD_ROOT%{_bindir}/dos
204 install bin/dos-x $RPM_BUILD_ROOT%{_xbindir}/dos
205 install bin/midid $RPM_BUILD_ROOT%{_bindir}/midid
206 ln -sf dos $RPM_BUILD_ROOT%{_xbindir}/xdos
207 ln -sf dos $RPM_BUILD_ROOT%{_xbindir}/dosexec
208 install bin/dosdebug $RPM_BUILD_ROOT%{_bindir}/dosdebug
209 install src/tools/periph/{dexeconfig,hdinfo,mkhdimage,mkfatimage16} $RPM_BUILD_ROOT%{_bindir}
210 ln -sf dos $RPM_BUILD_ROOT%{_bindir}/dosexec
212 install etc/dosemu.xpm $RPM_BUILD_ROOT%{_pixmapsdir}
213 install etc/dosemu.users.secure $RPM_BUILD_ROOT%{_sysconfdir}/dosemu.users
214 install etc/global.conf $RPM_BUILD_ROOT%{_dosemudir}/global.conf
215 install etc/dosemu.conf $RPM_BUILD_ROOT%{_sysconfdir}/dosemu.conf
217 install man/{dos.1,dosdebug.1,xdos.1,mkfatimage16.1} $RPM_BUILD_ROOT%{_mandir}/man1
218 install pl/man1/{dos.1,dosdebug.1,xdos.1} $RPM_BUILD_ROOT%{_mandir}/pl/man1
220 install src/plugin/commands/*.com $RPM_BUILD_ROOT%{_dosemudir}/bootdir/dosemu
221 install dosemu/*.sys $RPM_BUILD_ROOT%{_dosemudir}/bootdir/dosemu
222 cp %{SOURCE3} PRZECZYTAJ_TO
223 cp %{SOURCE4} README.PLD
224 install %{SOURCE5} $RPM_BUILD_ROOT%{_applnkdir}/System
226 #ln -sf dosemu/comcom.com $RPM_BUILD_ROOT%{_dosemudir}/bootdir/command.com
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/*.html 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/*.html 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