]> git.pld-linux.org Git - packages/dosemu.git/blob - dosemu.spec
- removed obsolete fix and gcc33 patches
[packages/dosemu.git] / dosemu.spec
1 #
2 # Conditional build:
3 # _with_static          - linked static
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 %define         ver 1.1.5
14 %define         subver 7
15 Version:        %{ver}.%{subver}
16 # Please don't bump to 1 until dosemu-1.2
17 Release:        0.1
18 License:        GPL v2
19 Group:          Applications/Emulators
20 Source0:        http://dl.sourceforge.net/dosemu/%{name}-%{ver}.tgz
21 # Source0-md5:  15b37a5e45bbeaa31bb19269327707ff
22 Source1:        http://dosemu.sourceforge.net/testing/patchset-%{version}.tgz
23 # Source1-md5:  d1967c4999b23f5c35188648c45fafef
24 #Source2:       %{name}-sys.tar.gz
25 Source3:        %{name}-PRZECZYTAJ_TO
26 Source4:        %{name}-README.PLD
27 Source5:        %{name}.desktop
28 Source6:        http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-pl-man-pages.tar.bz2
29 # Source6-md5:  7a8abf5c656e6b99bdd03a4783751895
30 Patch0:         %{name}-man-pages.patch
31 Patch1:         %{name}-make-new.patch
32 Patch2:         %{name}-%{name}_conf.patch
33 Patch3:         %{name}-doSgmlTools.patch
34 Patch4:         %{name}-makehtml.patch
35 URL:            http://www.dosemu.org/
36 BuildRequires:  XFree86-devel
37 %{?_with_static:BuildRequires:  XFree86-static}
38 BuildRequires:  autoconf >= 2.57
39 BuildRequires:  bin86
40 BuildRequires:  bison
41 BuildRequires:  docbook-dtd30-sgml
42 BuildRequires:  flex
43 %{?_with_static:BuildRequires:  glibc-static}
44 BuildRequires:  lynx
45 BuildRequires:  openjade
46 BuildRequires:  perl
47 BuildRequires:  sgml-tools
48 BuildRequires:  slang-devel
49 %{?_with_static:BuildRequires:  slang-static}
50 BuildRequires:  util-linux
51 BuildRequires:  unzip
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
99 %description -n xdosemu
100 Xdosemu is a version of the dosemu DOS emulator that runs with the X
101 Window System. Xdosemu provides VGA graphics and mouse support.
102
103 %description -n xdosemu -l de
104 Dies ist eine Version des DOS-Emulators für X-Window-Sitzungen. Er
105 unterstützt VGA-Grafiken und Maus.
106
107 %description -n xdosemu -l es
108 Esta es la versión del emulador DOS dibujada para ejecutarse en una
109 ventana del X Window. Posee soporte para gráficos VGA y ratón.
110
111 %description -n xdosemu -l fr
112 Version de l'émulateur DOS conçue pour tourner dans une session X.
113 Offre une gestion des graphismes VGA et de la souris.
114
115 %description -n xdosemu -l pl
116 Xdosemu jest wersj± emulatora dosemu dzia³aj±c± w X Window System.
117 Xdosemu ma wsparcie dla grafiki VGA i obs³ugi myszki.
118
119 %description -n xdosemu -l pt_BR
120 Esta é a versão do emulador DOS desenhada para rodar em uma janela do
121 X Window. Possui suporte a gráficos VGA e mouse.
122
123 %description -n xdosemu -l tr
124 Bu yazýlým, DOS öykünümcüsünün X altýnda çalýþan bir sürümüdür. VGA
125 grafikleri ve fare desteði vardýr.
126
127 %package utils
128 Summary:        Utilities for dosemu
129 Summary(pl):    Programy pomocnicze do dosemu
130 Group:          Applications/Emulators
131 Requires:       dosemu
132
133 %description utils
134 Utilities for dosemu: dexeconfig, hdinfo, mkhdimage, mkfatimage16.
135
136 %description utils -l pl
137 Programy pomocnicze dla dosemu: dexeconfig, hdinfo, mkhdimage,
138 mkfatimage16.
139
140 %prep
141 %setup -q -n %{name}-%{ver} -a1 -a6
142 sh tmp/do_patch
143 %patch0 -p1
144 %patch1 -p1
145 %patch2 -p1
146 %patch3 -p1
147 %patch4 -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 %{__autoconf}
156 # configure2_13 must be used though because of ./default-configure
157
158 # non-X version
159 %configure2_13 \
160 %{?_with_static:--enable-linkstatic} \
161         --enable-new-intcode \
162         --enable-aspi \
163         --without-x
164
165 %{__make} WAIT=no
166 mv -f bin/dosemu.bin bin/dos-nox
167
168 # X version
169 %configure2_13 \
170 %{?_with_static:--enable-linkstatic} \
171         --enable-new-intcode \
172         --enable-aspi
173 %{__make} WAIT=no
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 mv -f man/xdosemu.1 man/xdos.1
179 mv -f man/ru/dosemu.bin.1 man/ru/dos.1
180 mv -f man/ru/xdosemu.1 man/ru/xdos.1
181
182 # documentation
183 %{__make} -C src/doc/DANG html
184 %{__make} -C src/doc/HOWTO html
185 %{__make} -C src/doc/README html
186
187 find src/doc -name "*.html" -exec cp -f '{}' doc/ ';'
188
189 %install
190 rm -rf $RPM_BUILD_ROOT
191 install -d $RPM_BUILD_ROOT{%{_bindir},%{_xbindir},%{_sysconfdir},%{_pixmapsdir}} \
192         $RPM_BUILD_ROOT{%{_mandir}/man1,%{_mandir}/{pl,ru}/man1} \
193         $RPM_BUILD_ROOT%{_dosemudir}/bootdir/{dosemu,freedos/doc/fdkernel} \
194         $RPM_BUILD_ROOT%{_applnkdir}/System
195
196 #%%{__make} install \
197 #       DESTDIR=$RPM_BUILD_ROOT
198
199 install bin/dosemu.bin $RPM_BUILD_ROOT%{_bindir}/dos
200 install bin/dos-x $RPM_BUILD_ROOT%{_xbindir}/dos
201 install bin/midid $RPM_BUILD_ROOT%{_bindir}/midid
202 ln -sf dos $RPM_BUILD_ROOT%{_xbindir}/xdos
203 ln -sf dos $RPM_BUILD_ROOT%{_xbindir}/dosexec
204 install bin/dosdebug $RPM_BUILD_ROOT%{_bindir}/dosdebug
205 install src/tools/periph/{dexeconfig,hdinfo,mkhdimage,mkfatimage16} $RPM_BUILD_ROOT%{_bindir}
206 ln -sf dos $RPM_BUILD_ROOT%{_bindir}/dosexec
207
208 install etc/dosemu.xpm $RPM_BUILD_ROOT%{_pixmapsdir}
209 install etc/dosemu.users.example $RPM_BUILD_ROOT%{_sysconfdir}/dosemu.users
210 install etc/global.conf $RPM_BUILD_ROOT%{_dosemudir}/global.conf
211 install etc/dosemu.conf $RPM_BUILD_ROOT%{_sysconfdir}/dosemu.conf
212
213 install man/{dos.1,dosdebug.1,xdos.1,mkfatimage16.1} $RPM_BUILD_ROOT%{_mandir}/man1
214 install pl/man1/{dos.1,dosdebug.1,xdos.1} $RPM_BUILD_ROOT%{_mandir}/pl/man1
215 install man/ru/{dos.1,dosdebug.1,xdos.1,mkfatimage16.1} $RPM_BUILD_ROOT%{_mandir}/ru/man1
216
217 install commands/*.com $RPM_BUILD_ROOT%{_dosemudir}/bootdir/dosemu
218 install commands/*.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 rm -f doc/{configuration,dosemu.lsm}
224
225 %clean
226 rm -rf $RPM_BUILD_ROOT
227
228 %files
229 %defattr(644,root,root,755)
230 %doc QuickStart COPYING ChangeLog* doc/* README.PLD
231 %lang(pl) %doc PRZECZYTAJ_TO
232 %dir %{_dosemudir}
233 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dosemu.conf
234 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dosemu.users
235 %config(noreplace) %verify(not size mtime md5) %{_dosemudir}/global.conf
236 %attr(755,root,root) %{_bindir}/dos
237 %attr(755,root,root) %{_bindir}/dosdebug
238 %attr(755,root,root) %{_bindir}/dosexec
239 %attr(755,root,root) %{_bindir}/midid
240 %dir %{_dosemudir}/bootdir
241 %dir %{_dosemudir}/bootdir/dosemu
242 %{_dosemudir}/bootdir/dosemu/*
243 %{_mandir}/man1/d*
244 %lang(pl) %{_mandir}/pl/man1/d*
245 %lang(ru) %{_mandir}/ru/man1/d*
246 %{_pixmapsdir}/dosemu.xpm
247
248 %files -n xdosemu
249 %defattr(644,root,root,755)
250 %doc QuickStart COPYING ChangeLog* doc/* README.PLD
251 %lang(pl) %doc PRZECZYTAJ_TO
252 %dir %{_dosemudir}
253 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dosemu.conf
254 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dosemu.users
255 %config(noreplace) %verify(not size mtime md5) %{_dosemudir}/global.conf
256 %attr(755,root,root) %{_bindir}/dosdebug
257 %attr(755,root,root) %{_bindir}/midid
258 %attr(755,root,root) %{_xbindir}/*
259 %dir %{_dosemudir}/bootdir
260 %dir %{_dosemudir}/bootdir/dosemu
261 %{_dosemudir}/bootdir/dosemu/*
262 %{_mandir}/man1/d*
263 %{_mandir}/man1/xdos.1*
264 %lang(pl) %{_mandir}/pl/man1/d*
265 %lang(pl) %{_mandir}/pl/man1/xdos.1*
266 %lang(ru) %{_mandir}/ru/man1/d*
267 %lang(ru) %{_mandir}/ru/man1/xdos.1*
268 %{_applnkdir}/System/*
269 %{_pixmapsdir}/dosemu.xpm
270
271 %files utils
272 %defattr(644,root,root,755)
273 %attr(755,root,root) %{_bindir}/dexeconfig
274 %attr(755,root,root) %{_bindir}/hdinfo
275 %attr(755,root,root) %{_bindir}/mkhdimage
276 %attr(755,root,root) %{_bindir}/mkfatimage16
277 %{_mandir}/man1/mkfatimage16.1*
278 %lang(ru) %{_mandir}/ru/man1/mkfatimage16.1*
This page took 0.042129 seconds and 3 git commands to generate.