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