3 # _with_static - linked static
5 Summary: A DOS emulator
6 Summary(de): DOS-Emulator
7 Summary(es): Emulador DOS
8 Summary(fr): Emulateur DOS
9 Summary(pl): Emulator DOSa
10 Summary(pt_BR): Emulador DOS
11 Summary(tr): DOS öykünümcüsü
15 Version: %{ver}.%{subver}
16 # Please don't bump to 1 until dosemu-1.2
19 Group: Applications/Emulators
20 Source0: http://dl.sourceforge.net/dosemu/%{name}-%{ver}.tgz
21 # Source0-md5: 15b37a5e45bbeaa31bb19269327707ff
22 Source1: http://dosemu.sourceforge.net/testing/patchset-%{version}.tgz
23 # Source1-md5: d1967c4999b23f5c35188648c45fafef
24 #Source2: %{name}-sys.tar.gz
25 Source3: %{name}-PRZECZYTAJ_TO
26 Source4: %{name}-README.PLD
27 Source5: %{name}.desktop
28 Source6: http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-pl-man-pages.tar.bz2
29 # Source6-md5: 7a8abf5c656e6b99bdd03a4783751895
30 Patch0: %{name}-man-pages.patch
31 Patch1: %{name}-make-new.patch
32 Patch2: %{name}-%{name}_conf.patch
33 Patch3: %{name}-doSgmlTools.patch
34 Patch4: %{name}-makehtml.patch
35 URL: http://www.dosemu.org/
36 BuildRequires: XFree86-devel
37 %{?_with_static:BuildRequires: XFree86-static}
38 BuildRequires: autoconf >= 2.57
41 BuildRequires: docbook-dtd30-sgml
43 %{?_with_static:BuildRequires: glibc-static}
45 BuildRequires: openjade
47 BuildRequires: sgml-tools
48 BuildRequires: slang-devel
49 %{?_with_static:BuildRequires: slang-static}
50 BuildRequires: util-linux
52 ExclusiveArch: %{ix86}
53 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
54 Conflicts: kernel < 2.0.28
55 Conflicts: mtools < 3.6
58 %define _xbindir /usr/X11R6/bin
59 %define _dosemudir /var/lib/dosemu
62 Dosemu is a DOS emulator. Once you've installed dosemu, start the DOS
63 emulator by typing in the "dos" command.
65 You need to install dosemu if you use DOS programs and you want to be
66 able to run them on your GNU/Linux system. You may also need to
67 install the dosemu-freedos-* packages.
70 Esta es una versión del emulador DOS que fue proyectada para
71 ejecutarse en secciones X Window. Ofrece soporte a gráficos VGA como
72 también soporte a ratón.
75 Dosemu to Emulator systemu DOS. Po zainstalowaniu mo¿esz go uruchomiæ
78 Je¶li korzystasz z dosowych programów i chcia³by¶ je uruchamiaæ na
79 twoim Linuksowym systemie zainstaluj dosemu. Mo¿esz te¿ potrzebowaæ
80 pakietów dosemu-freedos-*.
83 Essa é uma versão do emulador DOS que foi projetada para rodar em
84 sessões X Window. Oferece suporte para gráficos VGA bem como suporte
88 Summary: A DOS emulator for the X Window System
89 Summary(de): DOS-Emulator für X
90 Summary(es): Emulador DOS que se ejecuta en X
91 Summary(fr): Émulateur DOS conçu pou être lancé sous X
92 Summary(pl): Emulator DOSa dla Systemu X Window
93 Summary(pt_BR): Emulador DOS que roda no X
94 Summary(tr): X altýnda çalýþan DOS öykünümcüsü
95 Group: Applications/Emulators
99 %description -n xdosemu
100 Xdosemu is a version of the dosemu DOS emulator that runs with the X
101 Window System. Xdosemu provides VGA graphics and mouse support.
103 %description -n xdosemu -l de
104 Dies ist eine Version des DOS-Emulators für X-Window-Sitzungen. Er
105 unterstützt VGA-Grafiken und Maus.
107 %description -n xdosemu -l es
108 Esta es la versión del emulador DOS dibujada para ejecutarse en una
109 ventana del X Window. Posee soporte para gráficos VGA y ratón.
111 %description -n xdosemu -l fr
112 Version de l'émulateur DOS conçue pour tourner dans une session X.
113 Offre une gestion des graphismes VGA et de la souris.
115 %description -n xdosemu -l pl
116 Xdosemu jest wersj± emulatora dosemu dzia³aj±c± w X Window System.
117 Xdosemu ma wsparcie dla grafiki VGA i obs³ugi myszki.
119 %description -n xdosemu -l pt_BR
120 Esta é a versão do emulador DOS desenhada para rodar em uma janela do
121 X Window. Possui suporte a gráficos VGA e mouse.
123 %description -n xdosemu -l tr
124 Bu yazýlým, DOS öykünümcüsünün X altýnda çalýþan bir sürümüdür. VGA
125 grafikleri ve fare desteði vardýr.
128 Summary: Utilities for dosemu
129 Summary(pl): Programy pomocnicze do dosemu
130 Group: Applications/Emulators
134 Utilities for dosemu: dexeconfig, hdinfo, mkhdimage, mkfatimage16.
136 %description utils -l pl
137 Programy pomocnicze dla dosemu: dexeconfig, hdinfo, mkhdimage,
141 %setup -q -n %{name}-%{ver} -a1 -a6
150 OPTFLAGS="%{rpmcflags} %{!?debug:-fomit-frame-pointer}"; export OPTFLAGS
152 ./mkpluginhooks enable plugin_keyboard off plugin_kbd_unicode on \
153 plugin_extra_charset on plugin_term on plugin_translate on plugin_demo off
156 # configure2_13 must be used though because of ./default-configure
160 %{?_with_static:--enable-linkstatic} \
161 --enable-new-intcode \
166 mv -f bin/dosemu.bin bin/dos-nox
170 %{?_with_static:--enable-linkstatic} \
171 --enable-new-intcode \
174 mv -f bin/dosemu.bin bin/dos-x
175 mv -f bin/dos-nox bin/dosemu.bin
177 mv -f man/dosemu.bin.1 man/dos.1
178 mv -f man/xdosemu.1 man/xdos.1
179 mv -f man/ru/dosemu.bin.1 man/ru/dos.1
180 mv -f man/ru/xdosemu.1 man/ru/xdos.1
183 %{__make} -C src/doc/DANG html
184 %{__make} -C src/doc/HOWTO html
185 %{__make} -C src/doc/README html
187 find src/doc -name "*.html" -exec cp -f '{}' doc/ ';'
190 rm -rf $RPM_BUILD_ROOT
191 install -d $RPM_BUILD_ROOT{%{_bindir},%{_xbindir},%{_sysconfdir},%{_pixmapsdir}} \
192 $RPM_BUILD_ROOT{%{_mandir}/man1,%{_mandir}/{pl,ru}/man1} \
193 $RPM_BUILD_ROOT%{_dosemudir}/bootdir/{dosemu,freedos/doc/fdkernel} \
194 $RPM_BUILD_ROOT%{_applnkdir}/System
196 #%%{__make} install \
197 # DESTDIR=$RPM_BUILD_ROOT
199 install bin/dosemu.bin $RPM_BUILD_ROOT%{_bindir}/dos
200 install bin/dos-x $RPM_BUILD_ROOT%{_xbindir}/dos
201 install bin/midid $RPM_BUILD_ROOT%{_bindir}/midid
202 ln -sf dos $RPM_BUILD_ROOT%{_xbindir}/xdos
203 ln -sf dos $RPM_BUILD_ROOT%{_xbindir}/dosexec
204 install bin/dosdebug $RPM_BUILD_ROOT%{_bindir}/dosdebug
205 install src/tools/periph/{dexeconfig,hdinfo,mkhdimage,mkfatimage16} $RPM_BUILD_ROOT%{_bindir}
206 ln -sf dos $RPM_BUILD_ROOT%{_bindir}/dosexec
208 install etc/dosemu.xpm $RPM_BUILD_ROOT%{_pixmapsdir}
209 install etc/dosemu.users.example $RPM_BUILD_ROOT%{_sysconfdir}/dosemu.users
210 install etc/global.conf $RPM_BUILD_ROOT%{_dosemudir}/global.conf
211 install etc/dosemu.conf $RPM_BUILD_ROOT%{_sysconfdir}/dosemu.conf
213 install man/{dos.1,dosdebug.1,xdos.1,mkfatimage16.1} $RPM_BUILD_ROOT%{_mandir}/man1
214 install pl/man1/{dos.1,dosdebug.1,xdos.1} $RPM_BUILD_ROOT%{_mandir}/pl/man1
215 install man/ru/{dos.1,dosdebug.1,xdos.1,mkfatimage16.1} $RPM_BUILD_ROOT%{_mandir}/ru/man1
217 install commands/*.com $RPM_BUILD_ROOT%{_dosemudir}/bootdir/dosemu
218 install commands/*.sys $RPM_BUILD_ROOT%{_dosemudir}/bootdir/dosemu
219 cp %{SOURCE3} PRZECZYTAJ_TO
220 cp %{SOURCE4} README.PLD
221 install %{SOURCE5} $RPM_BUILD_ROOT%{_applnkdir}/System
223 rm -f doc/{configuration,dosemu.lsm}
226 rm -rf $RPM_BUILD_ROOT
229 %defattr(644,root,root,755)
230 %doc QuickStart COPYING ChangeLog* doc/* README.PLD
231 %lang(pl) %doc PRZECZYTAJ_TO
233 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dosemu.conf
234 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dosemu.users
235 %config(noreplace) %verify(not size mtime md5) %{_dosemudir}/global.conf
236 %attr(755,root,root) %{_bindir}/dos
237 %attr(755,root,root) %{_bindir}/dosdebug
238 %attr(755,root,root) %{_bindir}/dosexec
239 %attr(755,root,root) %{_bindir}/midid
240 %dir %{_dosemudir}/bootdir
241 %dir %{_dosemudir}/bootdir/dosemu
242 %{_dosemudir}/bootdir/dosemu/*
244 %lang(pl) %{_mandir}/pl/man1/d*
245 %lang(ru) %{_mandir}/ru/man1/d*
246 %{_pixmapsdir}/dosemu.xpm
249 %defattr(644,root,root,755)
250 %doc QuickStart COPYING ChangeLog* doc/* README.PLD
251 %lang(pl) %doc PRZECZYTAJ_TO
253 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dosemu.conf
254 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dosemu.users
255 %config(noreplace) %verify(not size mtime md5) %{_dosemudir}/global.conf
256 %attr(755,root,root) %{_bindir}/dosdebug
257 %attr(755,root,root) %{_bindir}/midid
258 %attr(755,root,root) %{_xbindir}/*
259 %dir %{_dosemudir}/bootdir
260 %dir %{_dosemudir}/bootdir/dosemu
261 %{_dosemudir}/bootdir/dosemu/*
263 %{_mandir}/man1/xdos.1*
264 %lang(pl) %{_mandir}/pl/man1/d*
265 %lang(pl) %{_mandir}/pl/man1/xdos.1*
266 %lang(ru) %{_mandir}/ru/man1/d*
267 %lang(ru) %{_mandir}/ru/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
277 %{_mandir}/man1/mkfatimage16.1*
278 %lang(ru) %{_mandir}/ru/man1/mkfatimage16.1*