]> git.pld-linux.org Git - packages/dosemu.git/blob - dosemu.spec
- update to development release 1.3.0
[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.0
14 Release:        0.1
15 License:        GPL v2
16 Group:          Applications/Emulators
17 Source0:        http://dl.sourceforge.net/dosemu/%{name}-1.3.0.tgz
18 # Source0-md5:  d2864cecdfe6a2f7adb97270e892f0d5
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:      kernel < 2.0.28
50 Conflicts:      mtools < 3.6
51 Obsoletes:      xdosemu
52
53 %define         _dosemudir      /var/lib/dosemu
54 %define         specflags       -fomit-frame-pointer
55
56 %description
57 Dosemu is a DOS emulator. Once you've installed dosemu, start the DOS
58 emulator by typing in the "dos" command.
59
60 You need to install dosemu if you use DOS programs and you want to be
61 able to run them on your GNU/Linux system. You may also need to
62 install the dosemu-freedos-* packages.
63
64 %description -l es
65 Esta es una versión del emulador DOS que fue proyectada para
66 ejecutarse en secciones X Window. Ofrece soporte a gráficos VGA como
67 también soporte a ratón.
68
69 %description -l pl
70 Dosemu to Emulator systemu DOS. Po zainstalowaniu mo¿esz go uruchomiæ
71 komend± "dos".
72
73 Je¶li korzystasz z dosowych programów i chcia³by¶ je uruchamiaæ na
74 twoim Linuksowym systemie zainstaluj dosemu. Mo¿esz te¿ potrzebowaæ
75 pakietów dosemu-freedos-*.
76
77 %description -l pt_BR
78 Essa é uma versão do emulador DOS que foi projetada para rodar em
79 sessões X Window. Oferece suporte para gráficos VGA bem como suporte
80 para mouse.
81
82 %package -n xdosemu
83 Summary:        A DOS emulator for the X Window System
84 Summary(de):    DOS-Emulator für X
85 Summary(es):    Emulador DOS que se ejecuta en X
86 Summary(fr):    Émulateur DOS conçu pou être lancé sous X
87 Summary(pl):    Emulator DOS-a dla Systemu X Window
88 Summary(pt_BR): Emulador DOS que roda no X
89 Summary(tr):    X altýnda çalýþan DOS öykünümcüsü
90 Group:          Applications/Emulators
91 Provides:       dosemu
92 Obsoletes:      dosemu
93
94 %description -n xdosemu
95 Xdosemu is a version of the dosemu DOS emulator that runs with the X
96 Window System. Xdosemu provides VGA graphics and mouse support.
97
98 %description -n xdosemu -l de
99 Dies ist eine Version des DOS-Emulators für X-Window-Sitzungen. Er
100 unterstützt VGA-Grafiken und Maus.
101
102 %description -n xdosemu -l es
103 Esta es la versión del emulador DOS dibujada para ejecutarse en una
104 ventana del X Window. Posee soporte para gráficos VGA y ratón.
105
106 %description -n xdosemu -l fr
107 Version de l'émulateur DOS conçue pour tourner dans une session X.
108 Offre une gestion des graphismes VGA et de la souris.
109
110 %description -n xdosemu -l pl
111 Xdosemu jest wersj± emulatora dosemu dzia³aj±c± w X Window System.
112 Xdosemu ma wsparcie dla grafiki VGA i obs³ugi myszki.
113
114 %description -n xdosemu -l pt_BR
115 Esta é a versão do emulador DOS desenhada para rodar em uma janela do
116 X Window. Possui suporte a gráficos VGA e mouse.
117
118 %description -n xdosemu -l tr
119 Bu yazýlým, DOS öykünümcüsünün X altýnda çalýþan bir sürümüdür. VGA
120 grafikleri ve fare desteði vardýr.
121
122 %package utils
123 Summary:        Utilities for dosemu
124 Summary(pl):    Programy pomocnicze do dosemu
125 Group:          Applications/Emulators
126 Requires:       dosemu
127
128 %description utils
129 Utilities for dosemu: dexeconfig, hdinfo, mkhdimage, mkfatimage16.
130
131 %description utils -l pl
132 Programy pomocnicze dla dosemu: dexeconfig, hdinfo, mkhdimage,
133 mkfatimage16.
134
135 %prep
136 %setup -q -a6
137 #sh tmp/do_patch
138 %patch0 -p1
139 %patch1 -p1
140 %patch2 -p1
141 %patch3 -p1
142 %patch4 -p1
143
144 %build
145 OPTFLAGS="%{rpmcflags}"; export OPTFLAGS
146
147 ./mkpluginhooks enable plugin_keyboard off plugin_kbd_unicode on \
148 plugin_extra_charset on plugin_term on plugin_translate on plugin_demo off
149
150 %{__autoconf}
151 # configure2_13 must be used though because of ./default-configure
152
153 # non-X version
154 %configure2_13 \
155 %{?with_static:--enable-linkstatic} \
156         --enable-new-intcode \
157         --enable-aspi \
158         --without-x
159
160 %{__make} WAIT=no
161 mv -f bin/dosemu.bin bin/dos-nox
162
163 # X version
164 %configure2_13 \
165 %{?with_static:--enable-linkstatic} \
166         --enable-new-intcode \
167         --enable-aspi
168 %{__make} WAIT=no
169 %{__make} -C man
170
171 mv -f man/dosemu.bin.1 man/dosemu.1
172 echo '.so dosemu.1' > man/dos.1
173 mv -f man/ru/dosemu.bin.1 man/ru/dosemu.1
174 echo '.so dosemu.1' > man/ru/dos.1
175
176 mv -f pl/man1/dos.1 pl/man1/dosemu.1
177 echo '.so dosemu.1' > pl/man1/dos.1
178 echo '.so dosemu.1' > pl/man1/xdosemu.1
179 echo '.so dosemu.1' > pl/man1/dosdebug.1
180
181 # documentation
182 %{__make} -C src/doc/DANG html
183 %{__make} -C src/doc/HOWTO html
184 %{__make} -C src/doc/README html
185
186 find src/doc -name "*.html" -exec cp -f '{}' doc/ ';'
187
188 %install
189 rm -rf $RPM_BUILD_ROOT
190 install -d $RPM_BUILD_ROOT{%{_bindir},%{_sysconfdir},%{_pixmapsdir},%{_desktopdir}} \
191         $RPM_BUILD_ROOT{%{_mandir}/man1,%{_mandir}/{pl,ru}/man1} \
192         $RPM_BUILD_ROOT%{_dosemudir}/bootdir/{dosemu,freedos/doc/fdkernel}
193
194 #%%{__make} install \
195 #       DESTDIR=$RPM_BUILD_ROOT
196
197 install bin/dosemu.bin $RPM_BUILD_ROOT%{_bindir}/dosemu
198 install bin/dos-nox $RPM_BUILD_ROOT%{_bindir}/dos
199 install bin/midid $RPM_BUILD_ROOT%{_bindir}/midid
200 ln -sf dosemu $RPM_BUILD_ROOT%{_bindir}/xdosemu
201 ln -sf dosemu $RPM_BUILD_ROOT%{_bindir}/xdosexec
202 ln -sf dosemu $RPM_BUILD_ROOT%{_bindir}/xdos
203 install bin/dosdebug $RPM_BUILD_ROOT%{_bindir}/dosdebug
204 install src/tools/periph/{dexeconfig,hdinfo,mkhdimage,mkfatimage16} $RPM_BUILD_ROOT%{_bindir}
205 ln -sf dos $RPM_BUILD_ROOT%{_bindir}/dosexec
206
207 install etc/dosemu.xpm $RPM_BUILD_ROOT%{_pixmapsdir}
208 install etc/dosemu.users.example $RPM_BUILD_ROOT%{_sysconfdir}/dosemu.users
209 install etc/global.conf $RPM_BUILD_ROOT%{_dosemudir}/global.conf
210 install etc/dosemu.conf $RPM_BUILD_ROOT%{_sysconfdir}/dosemu.conf
211
212 install man/{dosemu.1,dosdebug.1,xdosemu.1,dos.1,mkfatimage16.1} $RPM_BUILD_ROOT%{_mandir}/man1
213 install pl/man1/{dosemu.1,dosdebug.1,xdosemu.1,dos.1} $RPM_BUILD_ROOT%{_mandir}/pl/man1
214 install man/ru/{dosemu.1,dosdebug.1,xdosemu.1,dos.1,mkfatimage16.1} $RPM_BUILD_ROOT%{_mandir}/ru/man1
215
216 install commands/*.com $RPM_BUILD_ROOT%{_dosemudir}/bootdir/dosemu
217 install commands/*.sys $RPM_BUILD_ROOT%{_dosemudir}/bootdir/dosemu
218 cp %{SOURCE3} PRZECZYTAJ_TO
219 cp %{SOURCE4} README.PLD
220 install %{SOURCE5} $RPM_BUILD_ROOT%{_desktopdir}
221
222 rm -f doc/{configuration,dosemu.lsm}
223
224 %clean
225 rm -rf $RPM_BUILD_ROOT
226
227 %files
228 %defattr(644,root,root,755)
229 %doc QuickStart COPYING ChangeLog* doc/* README.PLD
230 %lang(pl) %doc PRZECZYTAJ_TO
231 %dir %{_dosemudir}
232 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dosemu.conf
233 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dosemu.users
234 %config(noreplace) %verify(not size mtime md5) %{_dosemudir}/global.conf
235 %attr(755,root,root) %{_bindir}/dos
236 %attr(755,root,root) %{_bindir}/dosdebug
237 %attr(755,root,root) %{_bindir}/dosexec
238 %attr(755,root,root) %{_bindir}/midid
239 %dir %{_dosemudir}/bootdir
240 %dir %{_dosemudir}/bootdir/dosemu
241 %{_dosemudir}/bootdir/dosemu/*
242 %{_mandir}/man1/d*
243 %lang(pl) %{_mandir}/pl/man1/d*
244 %lang(ru) %{_mandir}/ru/man1/d*
245 %{_pixmapsdir}/dosemu.xpm
246
247 %files -n xdosemu
248 %defattr(644,root,root,755)
249 %doc QuickStart COPYING ChangeLog* doc/* README.PLD
250 %lang(pl) %doc PRZECZYTAJ_TO
251 %dir %{_dosemudir}
252 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dosemu.conf
253 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dosemu.users
254 %config(noreplace) %verify(not size mtime md5) %{_dosemudir}/global.conf
255 %attr(755,root,root) %{_bindir}/dosdebug
256 %attr(755,root,root) %{_bindir}/midid
257 %attr(755,root,root) %{_bindir}/dosemu
258 %attr(755,root,root) %{_bindir}/xdos*
259 %dir %{_dosemudir}/bootdir
260 %dir %{_dosemudir}/bootdir/dosemu
261 %{_dosemudir}/bootdir/dosemu/*
262 %{_mandir}/man1/d*
263 %{_mandir}/man1/xdosemu.1*
264 %lang(pl) %{_mandir}/pl/man1/d*
265 %lang(pl) %{_mandir}/pl/man1/xdosemu.1*
266 %lang(ru) %{_mandir}/ru/man1/d*
267 %lang(ru) %{_mandir}/ru/man1/xdosemu.1*
268 %{_desktopdir}/*
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.091421 seconds and 3 git commands to generate.