]> git.pld-linux.org Git - packages/dosemu.git/blob - dosemu.spec
- added util-linux to BR
[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}-%{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:  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:  util-linux
47 BuildRequires:  unzip
48 #Requires:      dos
49 %{?_with_static:BuildRequires:  glibc-static}
50 %{?_with_static:BuildRequires:  XFree86-static}
51 %{?_with_static:BuildRequires:  slang-static}
52 ExclusiveArch:  %{ix86}
53 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
54 Conflicts:      kernel < 2.0.28
55 Conflicts:      mtools < 3.6
56 Obsoletes:      xdosemu
57
58 %define         _xbindir        /usr/X11R6/bin
59 %define         _dosemudir      /var/lib/dosemu
60
61 %description
62 Dosemu is a DOS emulator. Once you've installed dosemu, start the DOS
63 emulator by typing in the "dos" command.
64
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.
68
69 %description -l es
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.
73
74 %description -l pl
75 Dosemu to Emulator systemu DOS. Po zainstalowaniu mo¿esz go uruchomiæ
76 komend± "dos".
77
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-*.
81
82 %description -l pt_BR
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
85 para mouse.
86
87 %package -n xdosemu
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
96 Provides:       dosemu
97 Obsoletes:      dosemu
98 #Requires:      dos
99
100 %description -n xdosemu
101 Xdosemu is a version of the dosemu DOS emulator that runs with the X
102 Window System. Xdosemu provides VGA graphics and mouse support.
103
104 %description -n xdosemu -l de
105 Dies ist eine Version des DOS-Emulators für X-Windows-Sitzungen. Er
106 unterstützt VGA-Grafiken und Maus.
107
108 %description -n xdosemu -l es
109 Esta es la versión del emulador DOS dibujada para ejecutarse en una
110 ventana del X Window. Posee soporte para gráficos VGA y ratón.
111
112 %description -n xdosemu -l fr
113 Version de l'émulateur DOS conçue pour tourner dans une session X.
114 Offre une gestion des graphismes VGA et de la souris.
115
116 %description -n xdosemu -l pl
117 Xdosemu jest wersj± emulatora dosemu dzia³aj±c± w X Window System.
118 Xdosemu ma wsparcie dla grafiki VGA i obs³ugi myszki.
119
120 %description -n xdosemu -l pt_BR
121 Esta é a versão do emulador DOS desenhada para rodar em uma janela do
122 X Window. Possui suporte a gráficos VGA e mouse.
123
124 %description -n xdosemu -l tr
125 Bu yazýlým, DOS öykünümcüsünün X altýnda çalýþan bir sürümüdür. VGA
126 grafikleri ve fare desteði vardýr.
127
128 %package utils
129 Summary:        Utilities for dosemu
130 Summary(pl):    Programy pomocnicze do dosemu
131 Group:          Applications/Emulators
132 Requires:       dosemu
133
134 %description utils
135 Utilities for dosemu: dexeconfig, hdinfo, mkhdimage, mkfatimage16.
136
137 %description utils -l pl
138 Programy pomocnicze dla dosemu: dexeconfig, hdinfo, mkhdimage,
139 mkfatimage16.
140
141 %prep
142 %setup -q -a1 -a2
143 %patch0 -p1
144 %patch1 -p1
145 %patch2 -p1
146 %patch3 -p1
147 %patch4 -p1
148 %patch5 -p0
149 %patch6 -p1
150 %patch7 -p0
151 %patch8 -p0
152 %patch9 -p1
153 %patch10 -p1
154 %patch11 -p0
155
156 %build
157 OPTFLAGS="%{rpmcflags} %{!?debug:-fomit-frame-pointer}"; export OPTFLAGS
158
159 #./mkpluginhooks enable plugin_keyboard off plugin_kbd_unicode on \
160 #plugin_extra_charset on plugin_term on plugin_translate on plugin_demo off
161
162 cp -f base-configure.in configure.in
163 %{__autoconf}
164
165 # non-X version
166 %configure \
167 %{?_with_static:--enable-linkstatic} \
168         --enable-new-intcode \
169         --enable-aspi \
170         --without-x
171
172 echo | %{__make}
173 mv -f bin/dosemu.bin bin/dos-nox
174
175 # X version
176 %configure \
177 %{?_with_static:--enable-linkstatic} \
178         --enable-new-intcode \
179         --enable-aspi
180 echo | %{__make}
181 mv -f bin/dosemu.bin bin/dos-x
182 mv -f bin/dos-nox bin/dosemu.bin
183
184 mv -f man/dosemu.bin.1 man/dos.1
185
186 # documentation
187 #%{__make} docs
188 #find src/doc -name "*.html" -exec cp -f '{}' doc/ ';'
189
190 # midid daemon
191 %{__make} midid
192
193 %install
194 rm -rf $RPM_BUILD_ROOT
195 install -d $RPM_BUILD_ROOT{%{_bindir},%{_xbindir},%{_sysconfdir},%{_pixmapsdir}} \
196         $RPM_BUILD_ROOT{%{_mandir}/man1,%{_mandir}/pl/man1} \
197         $RPM_BUILD_ROOT%{_dosemudir}/bootdir/{dosemu,freedos/doc/fdkernel} \
198         $RPM_BUILD_ROOT%{_applnkdir}/System
199
200 install bin/dosemu.bin $RPM_BUILD_ROOT%{_bindir}/dos
201 install bin/dos-x $RPM_BUILD_ROOT%{_xbindir}/dos
202 install bin/midid $RPM_BUILD_ROOT%{_bindir}/midid
203 ln -sf dos $RPM_BUILD_ROOT%{_xbindir}/xdos
204 ln -sf dos $RPM_BUILD_ROOT%{_xbindir}/dosexec
205 install bin/dosdebug $RPM_BUILD_ROOT%{_bindir}/dosdebug
206 install src/tools/periph/{dexeconfig,hdinfo,mkhdimage,mkfatimage16} $RPM_BUILD_ROOT%{_bindir}
207 ln -sf dos $RPM_BUILD_ROOT%{_bindir}/dosexec
208
209 install etc/dosemu.xpm $RPM_BUILD_ROOT%{_prefix}/X11R6/share/pixmaps
210 install etc/dosemu.users.secure $RPM_BUILD_ROOT%{_sysconfdir}/dosemu.users
211 install etc/global.conf $RPM_BUILD_ROOT%{_dosemudir}/global.conf
212 install etc/dosemu.conf $RPM_BUILD_ROOT%{_sysconfdir}/dosemu.conf
213
214 install man/{dos.1,dosdebug.1,xdos.1,mkfatimage16.1} $RPM_BUILD_ROOT%{_mandir}/man1
215 install pl/man1/{dos.1,dosdebug.1,xdos.1} $RPM_BUILD_ROOT%{_mandir}/pl/man1
216
217 install src/plugin/commands/*.com $RPM_BUILD_ROOT%{_dosemudir}/bootdir/dosemu
218 install dosemu/*.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/
222
223 #ln -sf dosemu/comcom.com $RPM_BUILD_ROOT%{_dosemudir}/bootdir/command.com
224
225 # Take out irritating ^H's from the documentation
226 for i in `ls --color=no doc/` ; do cat doc/$i > $i ; cat $i | perl -p -e 's/.\010//g' > doc/$i ; done
227
228 rm -f doc/{configuration,dosemu.lsm}
229
230 %clean
231 rm -rf $RPM_BUILD_ROOT
232
233 %files
234 %defattr(644,root,root,755)
235 %doc QuickStart COPYING ChangeLog* doc/* PRZECZYTAJ_TO README.PLD
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}/dos
241 %attr(755,root,root) %{_bindir}/dosdebug
242 %attr(755,root,root) %{_bindir}/dosexec
243 %attr(755,root,root) %{_bindir}/midid
244 %dir %{_dosemudir}/bootdir
245 %dir %{_dosemudir}/bootdir/dosemu
246 %{_dosemudir}/bootdir/dosemu/*
247 #%{_dosemudir}/bootdir/command.com
248 %{_mandir}/man1/[dm]*
249 %lang(pl) %{_mandir}/pl/man1/d*
250 %{_pixmapsdir}/dosemu.xpm
251
252 %files -n xdosemu
253 %defattr(644,root,root,755)
254 %doc QuickStart COPYING ChangeLog* doc/* PRZECZYTAJ_TO README.PLD
255 %dir %{_dosemudir}
256 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dosemu.conf
257 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dosemu.users
258 %config(noreplace) %verify(not size mtime md5) %{_dosemudir}/global.conf
259 %attr(755,root,root) %{_bindir}/dosdebug
260 %attr(755,root,root) %{_bindir}/midid
261 %attr(755,root,root) %{_xbindir}/*
262 %dir %{_dosemudir}/bootdir
263 %dir %{_dosemudir}/bootdir/dosemu
264 %{_dosemudir}/bootdir/dosemu/*
265 #%{_dosemudir}/bootdir/command.com
266 %{_mandir}/man1/[dm]*
267 %{_mandir}/man1/xdos.1*
268 %lang(pl) %{_mandir}/pl/man1/d*
269 %lang(pl) %{_mandir}/pl/man1/xdos.1*
270 %{_applnkdir}/System/*
271 %{_pixmapsdir}/dosemu.xpm
272
273 %files utils
274 %defattr(644,root,root,755)
275 %attr(755,root,root) %{_bindir}/dexeconfig
276 %attr(755,root,root) %{_bindir}/hdinfo
277 %attr(755,root,root) %{_bindir}/mkhdimage
278 %attr(755,root,root) %{_bindir}/mkfatimage16
This page took 0.042541 seconds and 3 git commands to generate.