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