]> git.pld-linux.org Git - packages/dosemu.git/blob - dosemu.spec
- added patch for global.conf, now xdos works better than before ;-)
[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:        16
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 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
147 %build
148 OPTFLAGS="%{rpmcflags} %{!?debug:-fomit-frame-pointer}"; export OPTFLAGS
149
150 cp -f base-configure.in configure.in
151 autoconf
152
153 # non-X version
154 %configure \
155 %{?_with_static:--enable-linkstatic} \
156         --enable-new-intcode \
157         --enable-aspi \
158         --without-x
159
160 echo | %{__make}
161 mv -f bin/dosemu.bin bin/dos-nox
162
163 # X version
164 %configure \
165 %{?_with_static:--enable-linkstatic} \
166         --enable-new-intcode \
167         --enable-aspi
168 echo | %{__make}
169 mv -f bin/dosemu.bin bin/dos-x
170 mv -f bin/dos-nox bin/dosemu.bin
171
172 mv -f man/dosemu.bin.1 man/dos.1
173
174 %install
175 rm -rf $RPM_BUILD_ROOT
176 install -d $RPM_BUILD_ROOT{%{_bindir},%{_xbindir},%{_sysconfdir},%{_pixmapsdir}} \
177         $RPM_BUILD_ROOT{%{_mandir}/man1,%{_mandir}/pl/man1} \
178         $RPM_BUILD_ROOT%{_dosemudir}/bootdir/{dosemu,freedos/doc/fdkernel}
179
180 install bin/dosemu.bin $RPM_BUILD_ROOT%{_bindir}/dos
181 install bin/dos-x $RPM_BUILD_ROOT%{_xbindir}/dos
182 ln -sf dos $RPM_BUILD_ROOT%{_xbindir}/xdos
183 ln -sf dos $RPM_BUILD_ROOT%{_xbindir}/dosexec
184 install bin/dosdebug $RPM_BUILD_ROOT%{_bindir}/dosdebug
185 install src/tools/periph/{dexeconfig,hdinfo,mkhdimage,mkfatimage16} $RPM_BUILD_ROOT%{_bindir}
186 ln -sf dos $RPM_BUILD_ROOT%{_bindir}/dosexec
187
188 install etc/dosemu.xpm $RPM_BUILD_ROOT%{_prefix}/X11R6/share/pixmaps
189 install etc/dosemu.users.secure $RPM_BUILD_ROOT%{_sysconfdir}/dosemu.users
190 install etc/global.conf $RPM_BUILD_ROOT%{_dosemudir}/global.conf
191 install etc/dosemu.conf $RPM_BUILD_ROOT%{_sysconfdir}/dosemu.conf
192
193 install man/{dos.1,dosdebug.1,xdos.1,mkfatimage16.1} $RPM_BUILD_ROOT%{_mandir}/man1
194 install pl/man1/{dos.1,dosdebug.1,xdos.1} $RPM_BUILD_ROOT%{_mandir}/pl/man1
195
196 install src/plugin/commands/*.com $RPM_BUILD_ROOT%{_dosemudir}/bootdir/dosemu
197 install dosemu/*.sys $RPM_BUILD_ROOT%{_dosemudir}/bootdir/dosemu
198 cp %{SOURCE3} PRZECZYTAJ_TO
199 cp %{SOURCE4} README.PLD
200
201 #ln -sf dosemu/comcom.com $RPM_BUILD_ROOT%{_dosemudir}/bootdir/command.com
202
203 # Take out irritating ^H's from the documentation
204 for i in `ls --color=no doc/` ; do cat doc/$i > $i ; cat $i | perl -p -e 's/.\010//g' > doc/$i ; done
205
206 rm -f doc/{configuration,dosemu.lsm}
207
208 gzip -9nf QuickStart COPYING ChangeLog* doc/* PRZECZYTAJ_TO README.PLD
209
210 %clean
211 rm -rf $RPM_BUILD_ROOT
212
213 %files
214 %defattr(644,root,root,755)
215 %doc *.gz doc/*
216 %dir %{_dosemudir}
217 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dosemu.conf
218 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dosemu.users
219 %config(noreplace) %verify(not size mtime md5) %{_dosemudir}/global.conf
220 %attr(755,root,root) %{_bindir}/dos
221 %attr(755,root,root) %{_bindir}/dosdebug
222 %attr(755,root,root) %{_bindir}/dosexec
223 %dir %{_dosemudir}/bootdir
224 %dir %{_dosemudir}/bootdir/dosemu
225 %{_dosemudir}/bootdir/dosemu/*
226 #%{_dosemudir}/bootdir/command.com
227 %{_mandir}/man1/[dm]*
228 %lang(pl) %{_mandir}/pl/man1/d*
229 %{_pixmapsdir}/dosemu.xpm
230
231 %files -n xdosemu
232 %defattr(644,root,root,755)
233 %doc *.gz doc/*
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}/dosdebug
239 %attr(755,root,root) %{_xbindir}/*
240 %dir %{_dosemudir}/bootdir
241 %dir %{_dosemudir}/bootdir/dosemu
242 %{_dosemudir}/bootdir/dosemu/*
243 #%{_dosemudir}/bootdir/command.com
244 %{_mandir}/man1/[dm]*
245 %{_mandir}/man1/xdos.1*
246 %lang(pl) %{_mandir}/pl/man1/d*
247 %lang(pl) %{_mandir}/pl/man1/xdos.1*
248 %{_pixmapsdir}/dosemu.xpm
249
250 %files utils
251 %defattr(644,root,root,755)
252 %attr(755,root,root) %{_bindir}/dexeconfig
253 %attr(755,root,root) %{_bindir}/hdinfo
254 %attr(755,root,root) %{_bindir}/mkhdimage
255 %attr(755,root,root) %{_bindir}/mkfatimage16
This page took 0.074196 seconds and 3 git commands to generate.