]> git.pld-linux.org Git - packages/dosemu.git/blob - dosemu.spec
- rel 0.2 for fixed desktop file
[packages/dosemu.git] / dosemu.spec
1 #
2 # Conditional build:
3 %bcond_with     static          # linked statically
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 DOS-a
10 Summary(pt_BR): Emulador DOS
11 Summary(tr):    DOS öykünümcüsü
12 Name:           dosemu
13 Version:        1.3.1
14 Release:        0.2
15 License:        GPL v2
16 Group:          Applications/Emulators
17 Source0:        http://dl.sourceforge.net/dosemu/%{name}-%{version}.tgz
18 # Source0-md5:  d64c0d2d63944c407401a04367cfadc4
19 #Source2:       %{name}-sys.tar.gz
20 Source3:        %{name}-PRZECZYTAJ_TO
21 Source4:        %{name}-README.PLD
22 Source5:        %{name}.desktop
23 Source6:        http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-pl-man-pages.tar.bz2
24 # Source6-md5:  7a8abf5c656e6b99bdd03a4783751895
25 Patch0:         %{name}-man-pages.patch
26 Patch1:         %{name}-make-new.patch
27 Patch2:         %{name}-%{name}_conf.patch
28 Patch3:         %{name}-doSgmlTools.patch
29 Patch4:         %{name}-makehtml.patch
30 URL:            http://www.dosemu.org/
31 BuildRequires:  XFree86-devel
32 %{?with_static:BuildRequires:   XFree86-static}
33 BuildRequires:  autoconf >= 2.57
34 BuildRequires:  bin86
35 BuildRequires:  bison
36 BuildRequires:  docbook-dtd30-sgml
37 BuildRequires:  flex
38 %{?with_static:BuildRequires:   glibc-static}
39 BuildRequires:  lynx
40 BuildRequires:  openjade
41 BuildRequires:  perl
42 BuildRequires:  sgml-tools
43 BuildRequires:  slang-devel
44 %{?with_static:BuildRequires:   slang-static}
45 BuildRequires:  util-linux
46 BuildRequires:  unzip
47 ExclusiveArch:  %{ix86}
48 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
49 Conflicts:      dosemu-freedos-minimal < 2.0.33
50 Conflicts:      kernel < 2.0.28
51 Conflicts:      mtools < 3.6
52 Obsoletes:      xdosemu
53
54 %define         _dosemudir      /var/lib/dosemu
55 %define         specflags       -fomit-frame-pointer
56
57 %description
58 Dosemu is a DOS emulator. Once you've installed dosemu, start the DOS
59 emulator by typing in the "dos" command.
60
61 You need to install dosemu if you use DOS programs and you want to be
62 able to run them on your GNU/Linux system. You may also need to
63 install the dosemu-freedos-* packages.
64
65 %description -l es
66 Esta es una versión del emulador DOS que fue proyectada para
67 ejecutarse en secciones X Window. Ofrece soporte a gráficos VGA como
68 también soporte a ratón.
69
70 %description -l pl
71 Dosemu to Emulator systemu DOS. Po zainstalowaniu mo¿esz go uruchomiæ
72 komend± "dos".
73
74 Je¶li korzystasz z dosowych programów i chcia³by¶ je uruchamiaæ na
75 twoim Linuksowym systemie zainstaluj dosemu. Mo¿esz te¿ potrzebowaæ
76 pakietów dosemu-freedos-*.
77
78 %description -l pt_BR
79 Essa é uma versão do emulador DOS que foi projetada para rodar em
80 sessões X Window. Oferece suporte para gráficos VGA bem como suporte
81 para mouse.
82
83 %package -n xdosemu
84 Summary:        A DOS emulator for the X Window System
85 Summary(de):    DOS-Emulator für X
86 Summary(es):    Emulador DOS que se ejecuta en X
87 Summary(fr):    Émulateur DOS conçu pou être lancé sous X
88 Summary(pl):    Emulator DOS-a dla Systemu X Window
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 = %{version}-%{release}
93 Obsoletes:      dosemu
94 Conflicts:      dosemu-freedos-minimal < 2.0.33
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-Window-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 -a6
139 #sh tmp/do_patch
140 %patch0 -p1
141 %patch1 -p1
142 %patch2 -p1
143 %patch3 -p1
144 %patch4 -p1
145
146 %build
147 OPTFLAGS="%{rpmcflags}"; export OPTFLAGS
148
149 ./mkpluginhooks enable plugin_keyboard off plugin_kbd_unicode on \
150 plugin_extra_charset on plugin_term on plugin_translate on plugin_demo off
151
152 %{__autoconf}
153 # configure2_13 must be used though because of ./default-configure
154
155 # non-X version
156 %configure2_13 \
157 %{?with_static:--enable-linkstatic} \
158         --enable-new-intcode \
159         --enable-aspi \
160         --without-x
161
162 %{__make} WAIT=no
163 mv -f bin/dosemu.bin bin/dos-nox
164
165 # X version
166 %configure2_13 \
167 %{?with_static:--enable-linkstatic} \
168         --enable-new-intcode \
169         --enable-aspi
170 %{__make} WAIT=no
171 %{__make} -C man
172
173 mv -f man/dosemu.bin.1 man/dosemu.1
174 echo '.so dosemu.1' > man/dos.1
175 mv -f man/ru/dosemu.bin.1 man/ru/dosemu.1
176 echo '.so dosemu.1' > man/ru/dos.1
177
178 mv -f pl/man1/dos.1 pl/man1/dosemu.1
179 echo '.so dosemu.1' > pl/man1/dos.1
180 echo '.so dosemu.1' > pl/man1/xdosemu.1
181 echo '.so dosemu.1' > pl/man1/dosdebug.1
182
183 # documentation
184 %{__make} -C src/doc/DANG html
185 %{__make} -C src/doc/HOWTO html
186 %{__make} -C src/doc/README html
187
188 find src/doc -name "*.html" -exec cp -f '{}' doc/ ';'
189
190 %install
191 rm -rf $RPM_BUILD_ROOT
192 install -d $RPM_BUILD_ROOT{%{_bindir},%{_sysconfdir},%{_pixmapsdir},%{_desktopdir}} \
193         $RPM_BUILD_ROOT{%{_mandir}/man1,%{_mandir}/{pl,ru}/man1} \
194         $RPM_BUILD_ROOT%{_dosemudir}/bootdir/{dosemu,freedos/doc/fdkernel}
195
196 #%%{__make} install \
197 #       DESTDIR=$RPM_BUILD_ROOT
198
199 install bin/dosemu.bin $RPM_BUILD_ROOT%{_bindir}/dosemu
200 install bin/dos-nox $RPM_BUILD_ROOT%{_bindir}/dos
201 install bin/midid $RPM_BUILD_ROOT%{_bindir}/midid
202 ln -sf dosemu $RPM_BUILD_ROOT%{_bindir}/xdosemu
203 ln -sf dosemu $RPM_BUILD_ROOT%{_bindir}/xdosexec
204 ln -sf dosemu $RPM_BUILD_ROOT%{_bindir}/xdos
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%{_pixmapsdir}
210 install etc/dosemu.users.example $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/{dosemu.1,dosdebug.1,xdosemu.1,dos.1,mkfatimage16.1} $RPM_BUILD_ROOT%{_mandir}/man1
215 install pl/man1/{dosemu.1,dosdebug.1,xdosemu.1,dos.1} $RPM_BUILD_ROOT%{_mandir}/pl/man1
216 install man/ru/{dosemu.1,dosdebug.1,xdosemu.1,dos.1,mkfatimage16.1} $RPM_BUILD_ROOT%{_mandir}/ru/man1
217
218 install commands/*.com $RPM_BUILD_ROOT%{_dosemudir}/bootdir/dosemu
219 install commands/*.sys $RPM_BUILD_ROOT%{_dosemudir}/bootdir/dosemu
220 cp %{SOURCE3} PRZECZYTAJ_TO
221 cp %{SOURCE4} README.PLD
222 install %{SOURCE5} $RPM_BUILD_ROOT%{_desktopdir}
223
224 rm -f doc/{configuration,dosemu.lsm}
225
226 %clean
227 rm -rf $RPM_BUILD_ROOT
228
229 %files
230 %defattr(644,root,root,755)
231 %doc QuickStart COPYING ChangeLog* doc/* README.PLD
232 %lang(pl) %doc PRZECZYTAJ_TO
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}/dos
238 %attr(755,root,root) %{_bindir}/dosdebug
239 %attr(755,root,root) %{_bindir}/dosexec
240 %attr(755,root,root) %{_bindir}/midid
241 %dir %{_dosemudir}/bootdir
242 %dir %{_dosemudir}/bootdir/dosemu
243 %{_dosemudir}/bootdir/dosemu/*
244 %{_mandir}/man1/d*
245 %lang(pl) %{_mandir}/pl/man1/d*
246 %lang(ru) %{_mandir}/ru/man1/d*
247 %{_pixmapsdir}/dosemu.xpm
248
249 %files -n xdosemu
250 %defattr(644,root,root,755)
251 %doc QuickStart COPYING ChangeLog* doc/* README.PLD
252 %lang(pl) %doc PRZECZYTAJ_TO
253 %dir %{_dosemudir}
254 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dosemu.conf
255 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dosemu.users
256 %config(noreplace) %verify(not size mtime md5) %{_dosemudir}/global.conf
257 %attr(755,root,root) %{_bindir}/dosdebug
258 %attr(755,root,root) %{_bindir}/midid
259 %attr(755,root,root) %{_bindir}/dosemu
260 %attr(755,root,root) %{_bindir}/xdos*
261 %dir %{_dosemudir}/bootdir
262 %dir %{_dosemudir}/bootdir/dosemu
263 %{_dosemudir}/bootdir/dosemu/*
264 %{_mandir}/man1/d*
265 %{_mandir}/man1/xdosemu.1*
266 %lang(pl) %{_mandir}/pl/man1/d*
267 %lang(pl) %{_mandir}/pl/man1/xdosemu.1*
268 %lang(ru) %{_mandir}/ru/man1/d*
269 %lang(ru) %{_mandir}/ru/man1/xdosemu.1*
270 %{_desktopdir}/*
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
279 %{_mandir}/man1/mkfatimage16.1*
280 %lang(ru) %{_mandir}/ru/man1/mkfatimage16.1*
This page took 0.088373 seconds and 3 git commands to generate.