1 # NOTE: if /dev/shm is mounted, it cannot be mounted with noexec
4 %bcond_with static # link statically
6 %bcond_without x # X support
8 Summary: A DOS emulator
9 Summary(de): DOS-Emulator
10 Summary(es): Emulador DOS
11 Summary(fr): Emulateur DOS
12 Summary(pl): Emulator DOS-a
13 Summary(pt_BR): Emulador DOS
14 Summary(tr): DOS öykünümcüsü
19 Group: Applications/Emulators
20 Source0: http://dl.sourceforge.net/dosemu/%{name}-%{version}.tgz
21 # Source0-md5: 4fbfdc50ea86d860dd9cea59ea7f4b47
22 #Source2: %{name}-sys.tar.gz
23 Source3: %{name}-PRZECZYTAJ_TO
24 Source4: %{name}-README.PLD
25 Source5: %{name}.desktop
26 Source6: http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-pl-man-pages.tar.bz2
27 # Source6-md5: 7a8abf5c656e6b99bdd03a4783751895
28 Patch0: %{name}-man-pages.patch
29 Patch1: %{name}-make-new.patch
30 Patch2: %{name}-%{name}_conf.patch
31 Patch3: %{name}-doSgmlTools.patch
32 Patch4: %{name}-makehtml.patch
33 URL: http://www.dosemu.org/
34 BuildRequires: SDL-devel
37 BuildRequires: xorg-lib-libX11-devel
38 %{?with_static:BuildRequires: xorg-lib-libX11-static}
41 BuildRequires: X11-devel
42 %{?with_static:BuildRequires: X11-static}
45 BuildRequires: autoconf >= 2.57
48 BuildRequires: docbook-dtd30-sgml
49 BuildRequires: docbook-style-dsssl
51 %{?with_static:BuildRequires: glibc-static}
52 BuildRequires: gpm-devel
54 BuildRequires: openjade
56 BuildRequires: sgml-tools
57 BuildRequires: slang-devel
58 %{?with_static:BuildRequires: slang-static}
60 BuildRequires: util-linux
62 Conflicts: dosemu-freedos-minimal < 2.0.33
63 Conflicts: kernel < 2.0.28
64 Conflicts: mtools < 3.6
65 ExclusiveArch: %{ix86}
66 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
68 %define _dosemudir /var/lib/dosemu
69 %define specflags -fomit-frame-pointer
72 Dosemu is a DOS emulator. Once you've installed dosemu, start the DOS
73 emulator by typing in the "dos" command.
75 You need to install dosemu if you use DOS programs and you want to be
76 able to run them on your GNU/Linux system. You may also need to
77 install the dosemu-freedos-* packages.
80 Dosemu to Emulator systemu DOS. Po zainstalowaniu mo¿esz go uruchomiæ
83 Je¶li korzystasz z dosowych programów i chcia³by¶ je uruchamiaæ na
84 twoim linuksowym systemie zainstaluj dosemu. Mo¿esz te¿ potrzebowaæ
85 pakietów dosemu-freedos-*.
88 Essa é uma versão do emulador DOS que foi projetada para rodar em
89 sessões X Window. Oferece suporte para gráficos VGA bem como suporte
93 Summary: Utilities for dosemu
94 Summary(pl): Programy pomocnicze do dosemu
95 Group: Applications/Emulators
96 Requires: %{name} = %{version}-%{release}
99 Utilities for dosemu: dexeconfig, hdinfo, mkhdimage, mkfatimage16.
101 %description utils -l pl
102 Programy pomocnicze dla dosemu: dexeconfig, hdinfo, mkhdimage,
106 Summary: SDL plugin for dosemu
107 Summary(pl): Wtyczka SDL dla dosemu
109 Requires: %{name} = %{version}-%{release}
112 SDL plugin for dosemu.
114 %description SDL -l pl
115 Wtyczka SDL dla dosemu.
118 Summary: X plugin for dosemu
119 Summary(pl): Wtyczka X dla dosemu
121 Requires: %{name} = %{version}-%{release}
127 Wtyczka X dla dosemu.
139 OPTFLAGS="%{rpmcflags}"; export OPTFLAGS
141 ./mkpluginhooks enable plugin_keyboard off plugin_kbd_unicode on \
142 plugin_extra_charset on plugin_term on plugin_translate on plugin_demo off
145 # configure2_13 must be used though because of ./default-configure
149 %{?with_static:--enable-linkstatic} \
150 --enable-new-intcode \
152 %{!?with_x:--without-x}
158 mv -f man/dosemu.bin.1 man/dosemu.1
159 echo '.so dosemu.1' > man/dos.1
160 mv -f man/ru/dosemu.bin.1 man/ru/dosemu.1
161 echo '.so dosemu.1' > man/ru/dos.1
163 mv -f pl/man1/dos.1 pl/man1/dosemu.1
164 echo '.so dosemu.1' > pl/man1/dos.1
165 echo '.so dosemu.1' > pl/man1/xdosemu.1
166 echo '.so dosemu.1' > pl/man1/dosdebug.1
169 %{__make} -C src/doc/DANG html
170 %{__make} -C src/doc/HOWTO html
171 %{__make} -C src/doc/README html
173 find src/doc -name "*.html" -exec cp -f '{}' doc/ ';'
176 rm -rf $RPM_BUILD_ROOT
177 install -d $RPM_BUILD_ROOT{%{_bindir},%{_sysconfdir},%{_pixmapsdir},%{_desktopdir}} \
178 $RPM_BUILD_ROOT{%{_mandir}/man1,%{_mandir}/{pl,ru}/man1} \
179 $RPM_BUILD_ROOT%{_dosemudir}/bootdir/{dosemu,freedos/doc/fdkernel} \
180 $RPM_BUILD_ROOT%{_libdir}/dosemu
182 #%%{__make} install \
183 # DESTDIR=$RPM_BUILD_ROOT
185 install bin/midid $RPM_BUILD_ROOT%{_bindir}/midid
186 install bin/dosemu.bin $RPM_BUILD_ROOT%{_bindir}/dosemu
187 ln -sf dosemu $RPM_BUILD_ROOT%{_bindir}/dos
189 ln -sf dosemu $RPM_BUILD_ROOT%{_bindir}/xdos
190 ln -sf dosemu $RPM_BUILD_ROOT%{_bindir}/xdosemu
191 ln -sf dosemu $RPM_BUILD_ROOT%{_bindir}/xdosexec
194 install bin/libplugin*.so $RPM_BUILD_ROOT%{_libdir}/dosemu
196 install bin/{dosdebug,mkfatimage16} $RPM_BUILD_ROOT%{_bindir}
197 install src/tools/periph/{dexeconfig,hdinfo,mkhdimage} $RPM_BUILD_ROOT%{_bindir}
198 ln -sf dos $RPM_BUILD_ROOT%{_bindir}/dosexec
200 install etc/dosemu.xpm $RPM_BUILD_ROOT%{_pixmapsdir}
201 install etc/dosemu.users.example $RPM_BUILD_ROOT%{_sysconfdir}/dosemu.users
202 install etc/global.conf $RPM_BUILD_ROOT%{_dosemudir}/global.conf
203 install etc/dosemu.conf $RPM_BUILD_ROOT%{_sysconfdir}/dosemu.conf
205 install man/{dosemu.1,dosdebug.1,xdosemu.1,dos.1,mkfatimage16.1} $RPM_BUILD_ROOT%{_mandir}/man1
206 install pl/man1/{dosemu.1,dosdebug.1,xdosemu.1,dos.1} $RPM_BUILD_ROOT%{_mandir}/pl/man1
207 install man/ru/{dosemu.1,dosdebug.1,xdosemu.1,dos.1,mkfatimage16.1} $RPM_BUILD_ROOT%{_mandir}/ru/man1
209 install commands/*.com $RPM_BUILD_ROOT%{_dosemudir}/bootdir/dosemu
210 install commands/*.sys $RPM_BUILD_ROOT%{_dosemudir}/bootdir/dosemu
211 cp %{SOURCE3} PRZECZYTAJ_TO
212 cp %{SOURCE4} README.PLD
213 install %{SOURCE5} $RPM_BUILD_ROOT%{_desktopdir}
215 rm -f doc/{configuration,dosemu.lsm}
218 rm -rf $RPM_BUILD_ROOT
221 %defattr(644,root,root,755)
222 %doc QuickStart COPYING ChangeLog* doc/* README.PLD
223 %lang(pl) %doc PRZECZYTAJ_TO
225 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dosemu.conf
226 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dosemu.users
227 %config(noreplace) %verify(not md5 mtime size) %{_dosemudir}/global.conf
228 %attr(755,root,root) %{_bindir}/dos
229 %attr(755,root,root) %{_bindir}/dosdebug
230 %attr(755,root,root) %{_bindir}/dosemu
231 %attr(755,root,root) %{_bindir}/dosexec
232 %attr(755,root,root) %{_bindir}/midid
233 %dir %{_libdir}/dosemu
234 %{_libdir}/dosemu/libplugin_gpm.so
235 %{_libdir}/dosemu/libplugin_term.so
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
244 %attr(755,root,root) %{_bindir}/xdos*
245 %{_mandir}/man1/xdosemu.1*
246 %lang(pl) %{_mandir}/pl/man1/xdosemu.1*
247 %lang(ru) %{_mandir}/ru/man1/xdosemu.1*
248 %{_desktopdir}/dosemu.desktop
252 %defattr(644,root,root,755)
253 %attr(755,root,root) %{_bindir}/dexeconfig
254 %attr(755,root,root) %{_bindir}/hdinfo
255 %attr(755,root,root) %{_bindir}/mkhdimage
256 %attr(755,root,root) %{_bindir}/mkfatimage16
257 %{_mandir}/man1/mkfatimage16.1*
258 %lang(ru) %{_mandir}/ru/man1/mkfatimage16.1*
261 %defattr(644,root,root,755)
262 %attr(755,root,root) %{_libdir}/dosemu/libplugin_sdl.so
266 %defattr(644,root,root,755)
267 %attr(755,root,root) %{_libdir}/dosemu/libplugin_X.so