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: 8bba1d7f661f6b60109402a60637117e
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 Dosemu to Emulator systemu DOS. Po zainstalowaniu mo¿esz go uruchomiæ
69 Je¶li korzystasz z dosowych programów i chcia³by¶ je uruchamiaæ na
70 twoim linuksowym systemie zainstaluj dosemu. Mo¿esz te¿ potrzebowaæ
71 pakietów dosemu-freedos-*.
74 Essa é uma versão do emulador DOS que foi projetada para rodar em
75 sessões X Window. Oferece suporte para gráficos VGA bem como suporte
79 Summary: A DOS emulator for the X Window System
80 Summary(de): DOS-Emulator für X
81 Summary(es): Emulador DOS que se ejecuta en X
82 Summary(fr): Émulateur DOS conçu pou être lancé sous X
83 Summary(pl): Emulator DOS-a dla Systemu X Window
84 Summary(pt_BR): Emulador DOS que roda no X
85 Summary(tr): X altýnda çalýþan DOS öykünümcüsü
86 Group: Applications/Emulators
87 Provides: dosemu = %{version}-%{release}
89 Conflicts: dosemu-freedos-minimal < 2.0.33
91 %description -n xdosemu
92 Xdosemu is a version of the dosemu DOS emulator that runs with the X
93 Window System. Xdosemu provides VGA graphics and mouse support.
95 %description -n xdosemu -l de
96 Dies ist eine Version des DOS-Emulators für X-Window-Sitzungen. Er
97 unterstützt VGA-Grafiken und Maus.
99 %description -n xdosemu -l es
100 Esta es la versión del emulador DOS dibujada para ejecutarse en una
101 ventana del X Window. Posee soporte para gráficos VGA y ratón.
103 %description -n xdosemu -l fr
104 Version de l'émulateur DOS conçue pour tourner dans une session X.
105 Offre une gestion des graphismes VGA et de la souris.
107 %description -n xdosemu -l pl
108 Xdosemu jest wersj± emulatora dosemu dzia³aj±c± w X Window System.
109 Xdosemu ma wsparcie dla grafiki VGA i obs³ugi myszki.
111 %description -n xdosemu -l pt_BR
112 Esta é a versão do emulador DOS desenhada para rodar em uma janela do
113 X Window. Possui suporte a gráficos VGA e mouse.
115 %description -n xdosemu -l tr
116 Bu yazýlým, DOS öykünümcüsünün X altýnda çalýþan bir sürümüdür. VGA
117 grafikleri ve fare desteði vardýr.
120 Summary: Utilities for dosemu
121 Summary(pl): Programy pomocnicze do dosemu
122 Group: Applications/Emulators
126 Utilities for dosemu: dexeconfig, hdinfo, mkhdimage, mkfatimage16.
128 %description utils -l pl
129 Programy pomocnicze dla dosemu: dexeconfig, hdinfo, mkhdimage,
142 OPTFLAGS="%{rpmcflags}"; export OPTFLAGS
144 ./mkpluginhooks enable plugin_keyboard off plugin_kbd_unicode on \
145 plugin_extra_charset on plugin_term on plugin_translate on plugin_demo off
148 # configure2_13 must be used though because of ./default-configure
152 %{?with_static:--enable-linkstatic} \
153 --enable-new-intcode \
158 mv -f bin/dosemu.bin bin/dos-nox
162 %{?with_static:--enable-linkstatic} \
163 --enable-new-intcode \
168 mv -f man/dosemu.bin.1 man/dosemu.1
169 echo '.so dosemu.1' > man/dos.1
170 mv -f man/ru/dosemu.bin.1 man/ru/dosemu.1
171 echo '.so dosemu.1' > man/ru/dos.1
173 mv -f pl/man1/dos.1 pl/man1/dosemu.1
174 echo '.so dosemu.1' > pl/man1/dos.1
175 echo '.so dosemu.1' > pl/man1/xdosemu.1
176 echo '.so dosemu.1' > pl/man1/dosdebug.1
179 %{__make} -C src/doc/DANG html
180 %{__make} -C src/doc/HOWTO html
181 %{__make} -C src/doc/README html
183 find src/doc -name "*.html" -exec cp -f '{}' doc/ ';'
186 rm -rf $RPM_BUILD_ROOT
187 install -d $RPM_BUILD_ROOT{%{_bindir},%{_sysconfdir},%{_pixmapsdir},%{_desktopdir}} \
188 $RPM_BUILD_ROOT{%{_mandir}/man1,%{_mandir}/{pl,ru}/man1} \
189 $RPM_BUILD_ROOT%{_dosemudir}/bootdir/{dosemu,freedos/doc/fdkernel}
191 #%%{__make} install \
192 # DESTDIR=$RPM_BUILD_ROOT
194 install bin/dosemu.bin $RPM_BUILD_ROOT%{_bindir}/dosemu
195 install bin/dos-nox $RPM_BUILD_ROOT%{_bindir}/dos
196 install bin/midid $RPM_BUILD_ROOT%{_bindir}/midid
197 ln -sf dosemu $RPM_BUILD_ROOT%{_bindir}/xdosemu
198 ln -sf dosemu $RPM_BUILD_ROOT%{_bindir}/xdosexec
199 ln -sf dosemu $RPM_BUILD_ROOT%{_bindir}/xdos
200 install bin/dosdebug $RPM_BUILD_ROOT%{_bindir}/dosdebug
201 install src/tools/periph/{dexeconfig,hdinfo,mkhdimage,mkfatimage16} $RPM_BUILD_ROOT%{_bindir}
202 ln -sf dos $RPM_BUILD_ROOT%{_bindir}/dosexec
204 install etc/dosemu.xpm $RPM_BUILD_ROOT%{_pixmapsdir}
205 install etc/dosemu.users.example $RPM_BUILD_ROOT%{_sysconfdir}/dosemu.users
206 install etc/global.conf $RPM_BUILD_ROOT%{_dosemudir}/global.conf
207 install etc/dosemu.conf $RPM_BUILD_ROOT%{_sysconfdir}/dosemu.conf
209 install man/{dosemu.1,dosdebug.1,xdosemu.1,dos.1,mkfatimage16.1} $RPM_BUILD_ROOT%{_mandir}/man1
210 install pl/man1/{dosemu.1,dosdebug.1,xdosemu.1,dos.1} $RPM_BUILD_ROOT%{_mandir}/pl/man1
211 install man/ru/{dosemu.1,dosdebug.1,xdosemu.1,dos.1,mkfatimage16.1} $RPM_BUILD_ROOT%{_mandir}/ru/man1
213 install commands/*.com $RPM_BUILD_ROOT%{_dosemudir}/bootdir/dosemu
214 install commands/*.sys $RPM_BUILD_ROOT%{_dosemudir}/bootdir/dosemu
215 cp %{SOURCE3} PRZECZYTAJ_TO
216 cp %{SOURCE4} README.PLD
217 install %{SOURCE5} $RPM_BUILD_ROOT%{_desktopdir}
219 rm -f doc/{configuration,dosemu.lsm}
222 rm -rf $RPM_BUILD_ROOT
225 %defattr(644,root,root,755)
226 %doc QuickStart COPYING ChangeLog* doc/* README.PLD
227 %lang(pl) %doc PRZECZYTAJ_TO
229 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dosemu.conf
230 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dosemu.users
231 %config(noreplace) %verify(not size mtime md5) %{_dosemudir}/global.conf
232 %attr(755,root,root) %{_bindir}/dos
233 %attr(755,root,root) %{_bindir}/dosdebug
234 %attr(755,root,root) %{_bindir}/dosexec
235 %attr(755,root,root) %{_bindir}/midid
236 %dir %{_dosemudir}/bootdir
237 %dir %{_dosemudir}/bootdir/dosemu
238 %{_dosemudir}/bootdir/dosemu/*
240 %lang(pl) %{_mandir}/pl/man1/d*
241 %lang(ru) %{_mandir}/ru/man1/d*
242 %{_pixmapsdir}/dosemu.xpm
245 %defattr(644,root,root,755)
246 %doc QuickStart COPYING ChangeLog* doc/* README.PLD
247 %lang(pl) %doc PRZECZYTAJ_TO
249 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dosemu.conf
250 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dosemu.users
251 %config(noreplace) %verify(not size mtime md5) %{_dosemudir}/global.conf
252 %attr(755,root,root) %{_bindir}/dosdebug
253 %attr(755,root,root) %{_bindir}/midid
254 %attr(755,root,root) %{_bindir}/dosemu
255 %attr(755,root,root) %{_bindir}/xdos*
256 %dir %{_dosemudir}/bootdir
257 %dir %{_dosemudir}/bootdir/dosemu
258 %{_dosemudir}/bootdir/dosemu/*
260 %{_mandir}/man1/xdosemu.1*
261 %lang(pl) %{_mandir}/pl/man1/d*
262 %lang(pl) %{_mandir}/pl/man1/xdosemu.1*
263 %lang(ru) %{_mandir}/ru/man1/d*
264 %lang(ru) %{_mandir}/ru/man1/xdosemu.1*
266 %{_pixmapsdir}/dosemu.xpm
269 %defattr(644,root,root,755)
270 %attr(755,root,root) %{_bindir}/dexeconfig
271 %attr(755,root,root) %{_bindir}/hdinfo
272 %attr(755,root,root) %{_bindir}/mkhdimage
273 %attr(755,root,root) %{_bindir}/mkfatimage16
274 %{_mandir}/man1/mkfatimage16.1*
275 %lang(ru) %{_mandir}/ru/man1/mkfatimage16.1*