]> git.pld-linux.org Git - packages/dosemu.git/blob - dosemu.spec
8b537c2e6514c8acd08ec03e5fa9499da4b88b34
[packages/dosemu.git] / dosemu.spec
1 # Conditional build:
2 # --with static         - linked static 
3 #
4 Summary:        A DOS emulator
5 Summary(de):    DOS-Emulator
6 Summary(es):    Emulador DOS
7 Summary(fr):    Emulateur DOS
8 Summary(pl):    Emulator DOSa
9 Summary(pt_BR): Emulador DOS
10 Summary(tr):    DOS öykünümcüsü
11 Name:           dosemu
12 Version:        1.0.2
13 Release:        19
14 License:        GPL v2
15 Group:          Applications/Emulators
16 Source0:        ftp://ftp.sourceforge.net/pub/sourceforge/dosemu/%{name}-%{version}.tgz
17 Source1:        http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-pl-man-pages.tar.bz2
18 Source2:        %{name}-sys.tar.gz
19 Source3:        %{name}-PRZECZYTAJ_TO
20 Source4:        %{name}-README.PLD
21 Source5:        %{name}.desktop
22 Patch0:         ftp://ftp.sourceforge.net/pub/sourceforge/dosemu/patch-1.0.2.1.gz
23 Patch1:         %{name}-1.0.2-man-pages.patch
24 Patch2:         %{name}-0.98.1-security.patch
25 Patch3:         %{name}-make-new.patch
26 Patch4:         %{name}-Polish_keyboard.patch
27 Patch5:         %{name}-dosemu_conf.patch
28 Patch6:         %{name}-alt224.patch
29 Patch7:         pmstack.diff
30 Patch8:         %{name}-rawkeyboard-console.patch
31 Patch9:         %{name}-comcom.patch
32 Patch10:        %{name}-global.conf-xdos.patch
33 Patch11:        c_run_irqs.diff
34 URL:            http://www.dosemu.org/
35 BuildRequires:  XFree86-devel
36 BuildRequires:  autoconf
37 BuildRequires:  bin86
38 BuildRequires:  bison
39 #BuildRequires: docbook-dtd-sgml
40 BuildRequires:  flex
41 #BuildRequires: lynx
42 #BuildRequires: openjade
43 BuildRequires:  perl
44 #BuildRequires: sgml-tools
45 BuildRequires:  slang-devel
46 BuildRequires:  unzip
47 #Requires:      dos
48 %{?_with_static:BuildRequires:  glibc-static}
49 %{?_with_static:BuildRequires:  XFree86-static}
50 %{?_with_static:BuildRequires:  slang-static}
51 ExclusiveArch:  %{ix86}
52 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
53 Conflicts:      kernel < 2.0.28
54 Conflicts:      mtools < 3.6
55 Obsoletes:      xdosemu
56
57 %define         _xbindir        /usr/X11R6/bin
58 %define         _dosemudir      /var/lib/dosemu
59
60 %description
61 Dosemu is a DOS emulator. Once you've installed dosemu, start the DOS
62 emulator by typing in the "dos" command.
63
64 You need to install dosemu if you use DOS programs and you want to be
65 able to run them on your GNU/Linux system. You may also need to
66 install the dosemu-freedos-* packages.
67
68 %description -l es
69 Esta es una versión del emulador DOS que fue proyectada para
70 ejecutarse en secciones X Window. Ofrece soporte a gráficos VGA como
71 también soporte a ratón.
72
73 %description -l pl
74 Dosemu to Emulator systemu DOS. Po zainstalowaniu mo¿esz go uruchomiæ
75 komend± "dos".
76
77 Je¶li korzystasz z dosowych programów i chcia³by¶ je uruchamiaæ na
78 twoim Linuksowym systemie zainstaluj dosemu. Mo¿esz te¿ potrzebowaæ
79 pakietów dosemu-freedos-*.
80
81 %description -l pt_BR
82 Essa é uma versão do emulador DOS que foi projetada para rodar em
83 sessões X Window. Oferece suporte para gráficos VGA bem como suporte
84 para mouse.
85
86 %package -n xdosemu
87 Summary:        A DOS emulator for the X Window System
88 Summary(de):    DOS-Emulator für X
89 Summary(es):    Emulador DOS que se ejecuta en X
90 Summary(fr):    Émulateur DOS conçu pou être lancé sous X
91 Summary(pt_BR): Emulador DOS que roda no X
92 Summary(tr):    X altýnda çalýþan DOS öykünümcüsü
93 Group:          Applications/Emulators
94 Provides:       dosemu
95 Obsoletes:      dosemu
96 #Requires:      dos
97
98 %description -n xdosemu
99 Xdosemu is a version of the dosemu DOS emulator that runs with the X
100 Window System. Xdosemu provides VGA graphics and mouse support.
101
102 %description -n xdosemu -l de
103 Dies ist eine Version des DOS-Emulators für X-Windows-Sitzungen. Er
104 unterstützt VGA-Grafiken und Maus.
105
106 %description -n xdosemu -l es
107 Esta es la versión del emulador DOS dibujada para ejecutarse en una
108 ventana del X Window. Posee soporte para gráficos VGA y ratón.
109
110 %description -n xdosemu -l fr
111 Version de l'émulateur DOS conçue pour tourner dans une session X.
112 Offre une gestion des graphismes VGA et de la souris.
113
114 %description -n xdosemu -l pl
115 Xdosemu jest wersj± emulatora dosemu dzia³aj±c± w X Window System.
116 Xdosemu ma wsparcie dla grafiki VGA i obs³ugi myszki.
117
118 %description -n xdosemu -l pt_BR
119 Esta é a versão do emulador DOS desenhada para rodar em uma janela do
120 X Window. Possui suporte a gráficos VGA e mouse.
121
122 %description -n xdosemu -l tr
123 Bu yazýlým, DOS öykünümcüsünün X altýnda çalýþan bir sürümüdür. VGA
124 grafikleri ve fare desteði vardýr.
125
126 %package utils
127 Summary:        Utilities for dosemu
128 Summary(pl):    Programy pomocnicze do dosemu
129 Group:          Applications/Emulators
130 Requires:       dosemu
131
132 %description utils
133 Utilities for dosemu: dexeconfig, hdinfo, mkhdimage, mkfatimage16.
134
135 %description utils -l pl
136 Programy pomocnicze dla dosemu: dexeconfig, hdinfo, mkhdimage,
137 mkfatimage16.
138
139 %prep
140 %setup -q -a1 -a2
141 %patch0 -p1
142 %patch1 -p1
143 %patch2 -p1
144 %patch3 -p1
145 %patch4 -p1
146 %patch5 -p0
147 %patch6 -p1
148 %patch7 -p0
149 %patch8 -p0
150 %patch9 -p1
151 %patch10 -p1
152 %patch11 -p0
153
154 %build
155 OPTFLAGS="%{rpmcflags} %{!?debug:-fomit-frame-pointer}"; export OPTFLAGS
156
157 #./mkpluginhooks enable plugin_keyboard off plugin_kbd_unicode on \
158 #plugin_extra_charset on plugin_term on plugin_translate on plugin_demo off
159
160 cp -f base-configure.in configure.in
161 %{__autoconf}
162
163 # non-X version
164 %configure \
165 %{?_with_static:--enable-linkstatic} \
166         --enable-new-intcode \
167         --enable-aspi \
168         --without-x
169
170 echo | %{__make}
171 mv -f bin/dosemu.bin bin/dos-nox
172
173 # X version
174 %configure \
175 %{?_with_static:--enable-linkstatic} \
176         --enable-new-intcode \
177         --enable-aspi
178 echo | %{__make}
179 mv -f bin/dosemu.bin bin/dos-x
180 mv -f bin/dos-nox bin/dosemu.bin
181
182 mv -f man/dosemu.bin.1 man/dos.1
183
184 # documentation
185 #%{__make} docs
186 #find src/doc -name "*.html" -exec cp -f '{}' doc/ ';'
187
188 # midid daemon
189 %{__make} midid
190
191 %install
192 rm -rf $RPM_BUILD_ROOT
193 install -d $RPM_BUILD_ROOT{%{_bindir},%{_xbindir},%{_sysconfdir},%{_pixmapsdir}} \
194         $RPM_BUILD_ROOT{%{_mandir}/man1,%{_mandir}/pl/man1} \
195         $RPM_BUILD_ROOT%{_dosemudir}/bootdir/{dosemu,freedos/doc/fdkernel} \
196         $RPM_BUILD_ROOT%{_applnkdir}/System
197         
198 install bin/dosemu.bin $RPM_BUILD_ROOT%{_bindir}/dos
199 install bin/dos-x $RPM_BUILD_ROOT%{_xbindir}/dos
200 install bin/midid $RPM_BUILD_ROOT%{_bindir}/midid
201 ln -sf dos $RPM_BUILD_ROOT%{_xbindir}/xdos
202 ln -sf dos $RPM_BUILD_ROOT%{_xbindir}/dosexec
203 install bin/dosdebug $RPM_BUILD_ROOT%{_bindir}/dosdebug
204 install src/tools/periph/{dexeconfig,hdinfo,mkhdimage,mkfatimage16} $RPM_BUILD_ROOT%{_bindir}
205 ln -sf dos $RPM_BUILD_ROOT%{_bindir}/dosexec
206
207 install etc/dosemu.xpm $RPM_BUILD_ROOT%{_prefix}/X11R6/share/pixmaps
208 install etc/dosemu.users.secure $RPM_BUILD_ROOT%{_sysconfdir}/dosemu.users
209 install etc/global.conf $RPM_BUILD_ROOT%{_dosemudir}/global.conf
210 install etc/dosemu.conf $RPM_BUILD_ROOT%{_sysconfdir}/dosemu.conf
211
212 install man/{dos.1,dosdebug.1,xdos.1,mkfatimage16.1} $RPM_BUILD_ROOT%{_mandir}/man1
213 install pl/man1/{dos.1,dosdebug.1,xdos.1} $RPM_BUILD_ROOT%{_mandir}/pl/man1
214
215 install src/plugin/commands/*.com $RPM_BUILD_ROOT%{_dosemudir}/bootdir/dosemu
216 install dosemu/*.sys $RPM_BUILD_ROOT%{_dosemudir}/bootdir/dosemu
217 cp %{SOURCE3} PRZECZYTAJ_TO
218 cp %{SOURCE4} README.PLD
219 install %{SOURCE5} $RPM_BUILD_ROOT%{_applnkdir}/System/
220
221 #ln -sf dosemu/comcom.com $RPM_BUILD_ROOT%{_dosemudir}/bootdir/command.com
222
223 # Take out irritating ^H's from the documentation
224 for i in `ls --color=no doc/` ; do cat doc/$i > $i ; cat $i | perl -p -e 's/.\010//g' > doc/$i ; done
225
226 rm -f doc/{configuration,dosemu.lsm}
227
228 %clean
229 rm -rf $RPM_BUILD_ROOT
230
231 %files
232 %defattr(644,root,root,755)
233 %doc QuickStart COPYING ChangeLog* doc/* PRZECZYTAJ_TO README.PLD
234 %dir %{_dosemudir}
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
249
250 %files -n xdosemu
251 %defattr(644,root,root,755)
252 %doc QuickStart COPYING ChangeLog* doc/* PRZECZYTAJ_TO README.PLD
253 %dir %{_dosemudir}
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
270
271 %files utils
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
This page took 0.105775 seconds and 3 git commands to generate.