3 %bcond_with static # linked statically
5 Summary: A DOS emulator
6 Summary(de): DOS-Emulator
7 Summary(es): Emulador DOS
8 Summary(fr): Emulateur DOS
9 Summary(pl): Emulator DOS-a
10 Summary(pt_BR): Emulador DOS
11 Summary(tr): DOS öykünümcüsü
16 Group: Applications/Emulators
17 Source0: http://dl.sourceforge.net/dosemu/%{name}-%{version}.tgz
18 # Source0-md5: d64c0d2d63944c407401a04367cfadc4
19 #Source2: %{name}-sys.tar.gz
20 Source3: %{name}-PRZECZYTAJ_TO
21 Source4: %{name}-README.PLD
22 Source5: %{name}.desktop
23 Source6: http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-pl-man-pages.tar.bz2
24 # Source6-md5: 7a8abf5c656e6b99bdd03a4783751895
25 Patch0: %{name}-man-pages.patch
26 Patch1: %{name}-make-new.patch
27 Patch2: %{name}-%{name}_conf.patch
28 Patch3: %{name}-doSgmlTools.patch
29 Patch4: %{name}-makehtml.patch
30 URL: http://www.dosemu.org/
31 BuildRequires: XFree86-devel
32 %{?with_static:BuildRequires: XFree86-static}
33 BuildRequires: autoconf >= 2.57
36 BuildRequires: docbook-dtd30-sgml
38 %{?with_static:BuildRequires: glibc-static}
40 BuildRequires: openjade
42 BuildRequires: sgml-tools
43 BuildRequires: slang-devel
44 %{?with_static:BuildRequires: slang-static}
45 BuildRequires: util-linux
47 ExclusiveArch: %{ix86}
48 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
49 Conflicts: dosemu-freedos-minimal < 2.0.33
50 Conflicts: kernel < 2.0.28
51 Conflicts: mtools < 3.6
54 %define _dosemudir /var/lib/dosemu
55 %define specflags -fomit-frame-pointer
58 Dosemu is a DOS emulator. Once you've installed dosemu, start the DOS
59 emulator by typing in the "dos" command.
61 You need to install dosemu if you use DOS programs and you want to be
62 able to run them on your GNU/Linux system. You may also need to
63 install the dosemu-freedos-* packages.
66 Esta es una versión del emulador DOS que fue proyectada para
67 ejecutarse en secciones X Window. Ofrece soporte a gráficos VGA como
68 también soporte a ratón.
71 Dosemu to Emulator systemu DOS. Po zainstalowaniu mo¿esz go uruchomiæ
74 Je¶li korzystasz z dosowych programów i chcia³by¶ je uruchamiaæ na
75 twoim Linuksowym systemie zainstaluj dosemu. Mo¿esz te¿ potrzebowaæ
76 pakietów dosemu-freedos-*.
79 Essa é uma versão do emulador DOS que foi projetada para rodar em
80 sessões X Window. Oferece suporte para gráficos VGA bem como suporte
84 Summary: A DOS emulator for the X Window System
85 Summary(de): DOS-Emulator für X
86 Summary(es): Emulador DOS que se ejecuta en X
87 Summary(fr): Émulateur DOS conçu pou être lancé sous X
88 Summary(pl): Emulator DOS-a dla Systemu X Window
89 Summary(pt_BR): Emulador DOS que roda no X
90 Summary(tr): X altýnda çalýþan DOS öykünümcüsü
91 Group: Applications/Emulators
92 Provides: dosemu = %{version}-%{release}
94 Conflicts: dosemu-freedos-minimal < 2.0.33
96 %description -n xdosemu
97 Xdosemu is a version of the dosemu DOS emulator that runs with the X
98 Window System. Xdosemu provides VGA graphics and mouse support.
100 %description -n xdosemu -l de
101 Dies ist eine Version des DOS-Emulators für X-Window-Sitzungen. Er
102 unterstützt VGA-Grafiken und Maus.
104 %description -n xdosemu -l es
105 Esta es la versión del emulador DOS dibujada para ejecutarse en una
106 ventana del X Window. Posee soporte para gráficos VGA y ratón.
108 %description -n xdosemu -l fr
109 Version de l'émulateur DOS conçue pour tourner dans une session X.
110 Offre une gestion des graphismes VGA et de la souris.
112 %description -n xdosemu -l pl
113 Xdosemu jest wersj± emulatora dosemu dzia³aj±c± w X Window System.
114 Xdosemu ma wsparcie dla grafiki VGA i obs³ugi myszki.
116 %description -n xdosemu -l pt_BR
117 Esta é a versão do emulador DOS desenhada para rodar em uma janela do
118 X Window. Possui suporte a gráficos VGA e mouse.
120 %description -n xdosemu -l tr
121 Bu yazýlým, DOS öykünümcüsünün X altýnda çalýþan bir sürümüdür. VGA
122 grafikleri ve fare desteði vardýr.
125 Summary: Utilities for dosemu
126 Summary(pl): Programy pomocnicze do dosemu
127 Group: Applications/Emulators
131 Utilities for dosemu: dexeconfig, hdinfo, mkhdimage, mkfatimage16.
133 %description utils -l pl
134 Programy pomocnicze dla dosemu: dexeconfig, hdinfo, mkhdimage,
147 OPTFLAGS="%{rpmcflags}"; export OPTFLAGS
149 ./mkpluginhooks enable plugin_keyboard off plugin_kbd_unicode on \
150 plugin_extra_charset on plugin_term on plugin_translate on plugin_demo off
153 # configure2_13 must be used though because of ./default-configure
157 %{?with_static:--enable-linkstatic} \
158 --enable-new-intcode \
163 mv -f bin/dosemu.bin bin/dos-nox
167 %{?with_static:--enable-linkstatic} \
168 --enable-new-intcode \
173 mv -f man/dosemu.bin.1 man/dosemu.1
174 echo '.so dosemu.1' > man/dos.1
175 mv -f man/ru/dosemu.bin.1 man/ru/dosemu.1
176 echo '.so dosemu.1' > man/ru/dos.1
178 mv -f pl/man1/dos.1 pl/man1/dosemu.1
179 echo '.so dosemu.1' > pl/man1/dos.1
180 echo '.so dosemu.1' > pl/man1/xdosemu.1
181 echo '.so dosemu.1' > pl/man1/dosdebug.1
184 %{__make} -C src/doc/DANG html
185 %{__make} -C src/doc/HOWTO html
186 %{__make} -C src/doc/README html
188 find src/doc -name "*.html" -exec cp -f '{}' doc/ ';'
191 rm -rf $RPM_BUILD_ROOT
192 install -d $RPM_BUILD_ROOT{%{_bindir},%{_sysconfdir},%{_pixmapsdir},%{_desktopdir}} \
193 $RPM_BUILD_ROOT{%{_mandir}/man1,%{_mandir}/{pl,ru}/man1} \
194 $RPM_BUILD_ROOT%{_dosemudir}/bootdir/{dosemu,freedos/doc/fdkernel}
196 #%%{__make} install \
197 # DESTDIR=$RPM_BUILD_ROOT
199 install bin/dosemu.bin $RPM_BUILD_ROOT%{_bindir}/dosemu
200 install bin/dos-nox $RPM_BUILD_ROOT%{_bindir}/dos
201 install bin/midid $RPM_BUILD_ROOT%{_bindir}/midid
202 ln -sf dosemu $RPM_BUILD_ROOT%{_bindir}/xdosemu
203 ln -sf dosemu $RPM_BUILD_ROOT%{_bindir}/xdosexec
204 ln -sf dosemu $RPM_BUILD_ROOT%{_bindir}/xdos
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%{_pixmapsdir}
210 install etc/dosemu.users.example $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/{dosemu.1,dosdebug.1,xdosemu.1,dos.1,mkfatimage16.1} $RPM_BUILD_ROOT%{_mandir}/man1
215 install pl/man1/{dosemu.1,dosdebug.1,xdosemu.1,dos.1} $RPM_BUILD_ROOT%{_mandir}/pl/man1
216 install man/ru/{dosemu.1,dosdebug.1,xdosemu.1,dos.1,mkfatimage16.1} $RPM_BUILD_ROOT%{_mandir}/ru/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%{_desktopdir}
224 rm -f doc/{configuration,dosemu.lsm}
227 rm -rf $RPM_BUILD_ROOT
230 %defattr(644,root,root,755)
231 %doc QuickStart COPYING ChangeLog* doc/* README.PLD
232 %lang(pl) %doc PRZECZYTAJ_TO
234 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dosemu.conf
235 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dosemu.users
236 %config(noreplace) %verify(not size mtime md5) %{_dosemudir}/global.conf
237 %attr(755,root,root) %{_bindir}/dos
238 %attr(755,root,root) %{_bindir}/dosdebug
239 %attr(755,root,root) %{_bindir}/dosexec
240 %attr(755,root,root) %{_bindir}/midid
241 %dir %{_dosemudir}/bootdir
242 %dir %{_dosemudir}/bootdir/dosemu
243 %{_dosemudir}/bootdir/dosemu/*
245 %lang(pl) %{_mandir}/pl/man1/d*
246 %lang(ru) %{_mandir}/ru/man1/d*
247 %{_pixmapsdir}/dosemu.xpm
250 %defattr(644,root,root,755)
251 %doc QuickStart COPYING ChangeLog* doc/* README.PLD
252 %lang(pl) %doc PRZECZYTAJ_TO
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) %{_bindir}/dosemu
260 %attr(755,root,root) %{_bindir}/xdos*
261 %dir %{_dosemudir}/bootdir
262 %dir %{_dosemudir}/bootdir/dosemu
263 %{_dosemudir}/bootdir/dosemu/*
265 %{_mandir}/man1/xdosemu.1*
266 %lang(pl) %{_mandir}/pl/man1/d*
267 %lang(pl) %{_mandir}/pl/man1/xdosemu.1*
268 %lang(ru) %{_mandir}/ru/man1/d*
269 %lang(ru) %{_mandir}/ru/man1/xdosemu.1*
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
279 %{_mandir}/man1/mkfatimage16.1*
280 %lang(ru) %{_mandir}/ru/man1/mkfatimage16.1*