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