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