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