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 Patch0: %{name}-man-pages.patch
31 Patch1: %{name}-parser-buf.patch
32 Patch2: %{name}-make-new.patch
33 Patch3: %{name}-%{name}_conf.patch
34 Patch4: %{name}-doSgmlTools.patch
35 Patch5: %{name}-makehtml.patch
36 Patch6: %{name}-nox.patch
37 URL: http://www.dosemu.org/
38 BuildRequires: XFree86-devel
39 BuildRequires: autoconf
42 BuildRequires: docbook-dtd30-sgml
45 BuildRequires: openjade
47 BuildRequires: sgml-tools
48 BuildRequires: slang-devel
49 BuildRequires: util-linux
51 %{?_with_static:BuildRequires: glibc-static}
52 %{?_with_static:BuildRequires: XFree86-static}
53 %{?_with_static:BuildRequires: slang-static}
54 ExclusiveArch: %{ix86}
55 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
56 Conflicts: kernel < 2.0.28
57 Conflicts: mtools < 3.6
60 %define _xbindir /usr/X11R6/bin
61 %define _dosemudir /var/lib/dosemu
64 Dosemu is a DOS emulator. Once you've installed dosemu, start the DOS
65 emulator by typing in the "dos" command.
67 You need to install dosemu if you use DOS programs and you want to be
68 able to run them on your GNU/Linux system. You may also need to
69 install the dosemu-freedos-* packages.
72 Esta es una versión del emulador DOS que fue proyectada para
73 ejecutarse en secciones X Window. Ofrece soporte a gráficos VGA como
74 también soporte a ratón.
77 Dosemu to Emulator systemu DOS. Po zainstalowaniu mo¿esz go uruchomiæ
80 Je¶li korzystasz z dosowych programów i chcia³by¶ je uruchamiaæ na
81 twoim Linuksowym systemie zainstaluj dosemu. Mo¿esz te¿ potrzebowaæ
82 pakietów dosemu-freedos-*.
85 Essa é uma versão do emulador DOS que foi projetada para rodar em
86 sessões X Window. Oferece suporte para gráficos VGA bem como suporte
90 Summary: A DOS emulator for the X Window System
91 Summary(de): DOS-Emulator für X
92 Summary(es): Emulador DOS que se ejecuta en X
93 Summary(fr): Émulateur DOS conçu pou être lancé sous X
94 Summary(pl): Emulator DOSa dla Systemu X Window
95 Summary(pt_BR): Emulador DOS que roda no X
96 Summary(tr): X altýnda çalýþan DOS öykünümcüsü
97 Group: Applications/Emulators
101 %description -n xdosemu
102 Xdosemu is a version of the dosemu DOS emulator that runs with the X
103 Window System. Xdosemu provides VGA graphics and mouse support.
105 %description -n xdosemu -l de
106 Dies ist eine Version des DOS-Emulators für X-Windows-Sitzungen. Er
107 unterstützt VGA-Grafiken und Maus.
109 %description -n xdosemu -l es
110 Esta es la versión del emulador DOS dibujada para ejecutarse en una
111 ventana del X Window. Posee soporte para gráficos VGA y ratón.
113 %description -n xdosemu -l fr
114 Version de l'émulateur DOS conçue pour tourner dans une session X.
115 Offre une gestion des graphismes VGA et de la souris.
117 %description -n xdosemu -l pl
118 Xdosemu jest wersj± emulatora dosemu dzia³aj±c± w X Window System.
119 Xdosemu ma wsparcie dla grafiki VGA i obs³ugi myszki.
121 %description -n xdosemu -l pt_BR
122 Esta é a versão do emulador DOS desenhada para rodar em uma janela do
123 X Window. Possui suporte a gráficos VGA e mouse.
125 %description -n xdosemu -l tr
126 Bu yazýlým, DOS öykünümcüsünün X altýnda çalýþan bir sürümüdür. VGA
127 grafikleri ve fare desteði vardýr.
130 Summary: Utilities for dosemu
131 Summary(pl): Programy pomocnicze do dosemu
132 Group: Applications/Emulators
136 Utilities for dosemu: dexeconfig, hdinfo, mkhdimage, mkfatimage16.
138 %description utils -l pl
139 Programy pomocnicze dla dosemu: dexeconfig, hdinfo, mkhdimage,
143 %setup -q -n %{name}-%{ver} -a1 -a6
155 OPTFLAGS="%{rpmcflags} %{!?debug:-fomit-frame-pointer}"; export OPTFLAGS
158 ./mkpluginhooks enable plugin_keyboard off plugin_kbd_unicode on \
159 plugin_extra_charset on plugin_term on plugin_translate on plugin_demo off
161 #cp -f base-configure.in configure.in
166 %{?_with_static:--enable-linkstatic} \
167 --enable-new-intcode \
172 mv -f bin/dosemu.bin bin/dos-nox
176 %{?_with_static:--enable-linkstatic} \
177 --enable-new-intcode \
180 mv -f bin/dosemu.bin bin/dos-x
181 mv -f bin/dos-nox bin/dosemu.bin
183 mv -f man/dosemu.bin.1 man/dos.1
186 %{__make} -C src/doc/DANG html
187 %{__make} -C src/doc/HOWTO html
188 %{__make} -C src/doc/README html
190 find src/doc -name "*.html" -exec cp -f '{}' doc/ ';'
193 rm -rf $RPM_BUILD_ROOT
194 install -d $RPM_BUILD_ROOT{%{_bindir},%{_xbindir},%{_sysconfdir},%{_pixmapsdir}} \
195 $RPM_BUILD_ROOT{%{_mandir}/man1,%{_mandir}/pl/man1} \
196 $RPM_BUILD_ROOT%{_dosemudir}/bootdir/{dosemu,freedos/doc/fdkernel} \
197 $RPM_BUILD_ROOT%{_applnkdir}/System
199 #%{__make} install DESTDIR=$RPM_BUILD_ROOT
201 install bin/dosemu.bin $RPM_BUILD_ROOT%{_bindir}/dos
202 install bin/dos-x $RPM_BUILD_ROOT%{_xbindir}/dos
203 install bin/midid $RPM_BUILD_ROOT%{_bindir}/midid
204 ln -sf dos $RPM_BUILD_ROOT%{_xbindir}/xdos
205 ln -sf dos $RPM_BUILD_ROOT%{_xbindir}/dosexec
206 install bin/dosdebug $RPM_BUILD_ROOT%{_bindir}/dosdebug
207 install src/tools/periph/{dexeconfig,hdinfo,mkhdimage,mkfatimage16} $RPM_BUILD_ROOT%{_bindir}
208 ln -sf dos $RPM_BUILD_ROOT%{_bindir}/dosexec
210 install etc/dosemu.xpm $RPM_BUILD_ROOT%{_pixmapsdir}
211 install etc/dosemu.users.example $RPM_BUILD_ROOT%{_sysconfdir}/dosemu.users
212 install etc/global.conf $RPM_BUILD_ROOT%{_dosemudir}/global.conf
213 install etc/dosemu.conf $RPM_BUILD_ROOT%{_sysconfdir}/dosemu.conf
215 install man/{dos.1,dosdebug.1,xdos.1,mkfatimage16.1} $RPM_BUILD_ROOT%{_mandir}/man1
216 install pl/man1/{dos.1,dosdebug.1,xdos.1} $RPM_BUILD_ROOT%{_mandir}/pl/man1
218 install commands/*.com $RPM_BUILD_ROOT%{_dosemudir}/bootdir/dosemu
219 install commands/*.sys $RPM_BUILD_ROOT%{_dosemudir}/bootdir/dosemu
220 cp %{SOURCE3} PRZECZYTAJ_TO
221 cp %{SOURCE4} README.PLD
222 install %{SOURCE5} $RPM_BUILD_ROOT%{_applnkdir}/System
224 #ln -sf dosemu/comcom.com $RPM_BUILD_ROOT%{_dosemudir}/bootdir/command.com
226 rm -f doc/{configuration,dosemu.lsm}
229 rm -rf $RPM_BUILD_ROOT
232 %defattr(644,root,root,755)
233 %doc QuickStart COPYING ChangeLog* doc/*.html PRZECZYTAJ_TO README.PLD
235 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dosemu.conf
236 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dosemu.users
237 %config(noreplace) %verify(not size mtime md5) %{_dosemudir}/global.conf
238 %attr(755,root,root) %{_bindir}/dos
239 %attr(755,root,root) %{_bindir}/dosdebug
240 %attr(755,root,root) %{_bindir}/dosexec
241 %attr(755,root,root) %{_bindir}/midid
242 %dir %{_dosemudir}/bootdir
243 %dir %{_dosemudir}/bootdir/dosemu
244 %{_dosemudir}/bootdir/dosemu/*
245 #%{_dosemudir}/bootdir/command.com
246 %{_mandir}/man1/[dm]*
247 %lang(pl) %{_mandir}/pl/man1/d*
248 %{_pixmapsdir}/dosemu.xpm
251 %defattr(644,root,root,755)
252 %doc QuickStart COPYING ChangeLog* doc/*.html PRZECZYTAJ_TO README.PLD
254 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dosemu.conf
255 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dosemu.users
256 %config(noreplace) %verify(not size mtime md5) %{_dosemudir}/global.conf
257 %attr(755,root,root) %{_bindir}/dosdebug
258 %attr(755,root,root) %{_bindir}/midid
259 %attr(755,root,root) %{_xbindir}/*
260 %dir %{_dosemudir}/bootdir
261 %dir %{_dosemudir}/bootdir/dosemu
262 %{_dosemudir}/bootdir/dosemu/*
263 #%{_dosemudir}/bootdir/command.com
264 %{_mandir}/man1/[dm]*
265 %{_mandir}/man1/xdos.1*
266 %lang(pl) %{_mandir}/pl/man1/d*
267 %lang(pl) %{_mandir}/pl/man1/xdos.1*
268 %{_applnkdir}/System/*
269 %{_pixmapsdir}/dosemu.xpm
272 %defattr(644,root,root,755)
273 %attr(755,root,root) %{_bindir}/dexeconfig
274 %attr(755,root,root) %{_bindir}/hdinfo
275 %attr(755,root,root) %{_bindir}/mkhdimage
276 %attr(755,root,root) %{_bindir}/mkfatimage16