]> git.pld-linux.org Git - packages/dosemu.git/blob - dosemu.spec
6ffc1657b2473e12630293c4d86525c3376dfff7
[packages/dosemu.git] / dosemu.spec
1 Summary:        A DOS emulator
2 Summary(de):    DOS-Emulator
3 Summary(fr):    Emulateur DOS
4 Summary(pl):    Emulator DOSa
5 Summary(tr):    DOS öykünümcüsü
6 Name:           dosemu
7 Version:        1.0.1
8 Release:        4
9 License:        Distributable
10 Group:          Applications/Emulators
11 Group(de):      Applikationen/Emulators
12 Group(pl):      Aplikacje/Emulatory
13 Source0:        ftp://ftp.dosemu.org/dosemu/%{name}-%{version}.tgz
14 Source1:        http://www.freedos.org/files/distributions/base1.zip
15 Source2:        http://www.freedos.org/files/distributions/util1.zip
16 Source3:        http://www.freedos.org/files/distributions/edit1.zip
17 Source4:        ftp://ftp.gcfl.net/freedos/kernel/ker2019x.zip
18 Source5:        ftp://ftp.home.vim.org/pub/vim/pc/vim56d16.zip
19 Source6:        ftp://ftp.home.vim.org/pub/vim/pc/vim56rt.zip
20 Source7:        autoexec.bat
21 Source8:        config.sys
22 Source9:        %{name}-pl-man-pages.tar.bz2
23 Patch0:         %{name}-0.66.7-config.patch
24 Patch1:         %{name}-0.66.7-glibc.patch
25 Patch2:         %{name}-0.66.7-pushal.patch
26 Patch3:         %{name}-0.98.1-security.patch
27 Patch4:         %{name}-0.98.1-justroot.patch
28 Patch5:         %{name}-make-new.patch
29 Patch6:         %{name}m-1.0.0-glibc22.patch
30 Patch7:         %{name}-1.0.1-broken.patch
31 Patch8:         %{name}-time.patch
32 Patch9:         %{name}-man-pages.patch
33 URL:            http://www.dosemu.org/
34 BuildRequires:  bin86
35 BuildRequires:  mtools
36 BuildRequires:  unzip
37 BuildRequires:  bison
38 BuildRequires:  flex
39 Requires:       mtools >= 3.6
40 Exclusivearch:  %{ix86}
41 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
42 Conflicts:      kernel < 2.0.28
43
44 %description
45 Dosemu is a DOS emulator. Once you've installed dosemu, start the DOS
46 emulator by typing in the "dos" command.
47
48 You need to install dosemu if you use DOS programs and you want to be
49 able to run them on your GNU/Linux system. You may also need to
50 install the dosemu-freedos package.
51
52 %description -l pl
53 Dosemu to Emulator systemu DOS. Po zainstalowaniu mo¿esz go uruchomiæ
54 komend± "dos".
55
56 Powiniene¶ zainstalowaæ dosemu, je¶li korzystasz z dosowych programów
57 i chcia³by¶ je uruchamiaæ na twoim Linuksowym systemie. Mo¿esz te¿
58 potrzebowaæ pakiet dosemu-freedos.
59
60 %package -n xdosemu
61 Summary:        A DOS emulator for the X Window System
62 Summary(de):    DOS-Emulator für X
63 Summary(fr):    Émulateur DOS conçu pou être lancé sous X
64 Summary(tr):    X altýnda çalýþan DOS öykünümcüsü
65 Group:          Applications/Emulators
66 Group(de):      Applikationen/Emulators
67 Group(pl):      Aplikacje/Emulatory
68 Requires:       %{name} = %{version}
69
70 %description -n xdosemu
71 Xdosemu is a version of the dosemu DOS emulator that runs with the X
72 Window System. Xdosemu provides VGA graphics and mouse support.
73
74 Install xdosemu if you need to run DOS programs on your system, and
75 you'd like to do so with the convenience of graphics support and mouse
76 capabilities.
77
78 %description -l de -n xdosemu
79 Dies ist eine Version des DOS-Emulators für X-Windows-Sitzungen. Er
80 unterstützt VGA-Grafiken und Maus.
81
82 %description -l fr -n xdosemu
83 Version de l'émulateur DOS conçue pour tourner dans une session X.
84 Offre une gestion des graphismes VGA et de la souris.
85
86 %description -l pl -n xdosemu
87 Xdosemu jest wersj± emulatora dosemu dzia³aj±c± w X Window System.
88 Xdosemu ma wsparcie dla grafiki VGA i obs³ugi myszki.
89
90 %description -l tr -n xdosemu
91 Bu yazýlým, DOS öykünümcüsünün X altýnda çalýþan bir sürümüdür. VGA
92 grafikleri ve fare desteði vardýr.
93
94 %package freedos
95 Requires:       %{name} = %{version}
96 Summary:        A FreeDOS hdimage for dosemu, a DOS emulator, to use.
97 Group:          Applications/Emulators
98 Group(de):      Applikationen/Emulators
99 Group(pl):      Aplikacje/Emulatory
100
101 %description freedos
102 Generally, the dosemu DOS emulator requires either that your system
103 have some version of DOS available or that your system's partitions
104 were formatted and installed with DOS. If your system does not meet
105 either of the previous requirements, you can instead use the dosemu-
106 freedos package, which contains an hdimage file which will be
107 installed in the /var/lib/dosemu directory. The hdimage file is
108 already bootable with FreeDOS.
109
110 You will need to edit your /etc/dosemu.conf file to add the image to
111 the list of disk 'drives' used by dosemu.
112
113 Install dosemu-freedos if you are installing the dosemu package and
114 you don't have a version of DOS available on your system, and your
115 system's partitions were not formatted and installed with DOS.
116
117 %description -l pl freedos
118 Ogólnie rzecz bior±c dosemu wymaga posiadania b±d¼ jakiej¶ wersji
119 systemu DOS w systemie, b±d¼ partycji z zainstalowanym DOSem. Je¶li
120 ¿aden z tych warunków nie jest spe³niony, to mo¿esz w zastêpstwie u¿yæ
121 pakietu dosemu-freedos. Zawiera on obraz obraz dysku (który bêdzie
122 zainstalowany w katalogu /var/lib/dosemu) z zainstalowanym FreeDOSem.
123
124 Musisz wyedytowaæ plik /etc/dosemu.conf aby dodaæ ten plik do listy
125 'drives' uzywanych przez dosemu.
126
127 Zainstaluj dosemu-freedos, je¶li zainstalowa³e¶ pakiet dosemu, a nie
128 masz dostêpnej ¿adnej innej wersji DOSa.
129
130 %prep
131 %setup -q
132 %patch0 -p1
133 #%patch2 -p1
134 %patch3 -p1
135 %patch4 -p1
136 %patch5 -p1
137 %patch6 -p1
138 %patch7 -p1
139 %patch8 -p1
140 %patch9 -p1
141
142 rm -rf freedos
143 mkdir freedos
144 mkdir freedos/kernel
145 mkdir freedos/tmp
146 mkdir freedos/vim
147
148 unzip -o -L -d freedos/kernel/ -j %{SOURCE4}
149 cp -f contrib/dosC/dist/* freedos/kernel
150 for i in %{SOURCE1} %{SOURCE3} %{SOURCE2} ; do
151         unzip -o -L -d freedos/tmp $i
152 done
153 for i in freedos/tmp/*.zip ; do 
154         unzip -o -L -o -d freedos $i
155 done
156 unzip -L -o -d freedos %{SOURCE6}
157 unzip -L -o -d freedos/vim-5.6 %{SOURCE5}
158
159 %build
160 ./default-configure --without-x
161 echo | make
162 mv -f bin/dos bin/dos-nox
163 ./default-configure
164 echo | make
165 mv -f bin/dos bin/dos-x
166 mv -f bin/dos-nox bin/dos
167
168 %install
169 rm -rf $RPM_BUILD_ROOT
170 install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_mandir}/man1,%{_pixmapsdir},/var/lib/dosemu,%{_datadir}/fonts}
171
172 %{__make} install INSTROOT=$RPM_BUILD_ROOT
173
174 rm -f $RPM_BUILD_ROOT%{_bindir}/xdos
175
176 install bin/dos-x $RPM_BUILD_ROOT%{_bindir}/xdos
177 install setup-hdimage $RPM_BUILD_ROOT%{_bindir}
178 install src/tools/periph/{dexeconfig,hdinfo,mkhdimage,mkfatimage16} $RPM_BUILD_ROOT%{_bindir}
179 install etc/dosemu.xpm $RPM_BUILD_ROOT%{_prefix}/X11R6/share/pixmaps
180 install etc/dosemu.users.secure $RPM_BUILD_ROOT%{_sysconfdir}/dosemu.users
181         src/tools/periph/mkfatimage16 -p -k 16192 -l FreeDos \
182         -b freedos/kernel/boot.bin \
183         -f $RPM_BUILD_ROOT/var/lib/dosemu/hdimage.freedos \
184         freedos/kernel/* 
185 FREEDOS=`/bin/mktemp /tmp/freedos.XXXXXX`
186 echo "drive n: file=\"$RPM_BUILD_ROOT/var/lib/dosemu/hdimage.freedos\" offset=8832" > $FREEDOS
187 MTOOLSRC=$FREEDOS
188 export MTOOLSRC
189 mcopy -o/ freedos/vim-5.6 freedos/bin freedos/doc freedos/help freedos/emacs n:
190 mmd n:/DOSEMU
191 mcopy -/ commands/* n:/DOSEMU
192 mcopy -o %{SOURCE7} %{SOURCE8} commands/exitemu* n:/
193 mdir -w n:
194 rm -f $FREEDOS
195 unset MTOOLSRC
196
197 install etc/hdimage.dist $RPM_BUILD_ROOT/var/lib/dosemu/hdimage
198 # install dexe utils
199 install dexe/{do_mtools,extract-dos,mkdexe,myxcopy} $RPM_BUILD_ROOT%{_bindir}
200
201 cat <<EOF >$RPM_BUILD_ROOT%{_bindir}/rundos
202 #!/bin/sh
203 BINDIR=/bin
204 export BINDIR 
205 # ignore errors if user does not have module installed
206 %attr(755,root,root) %{_bindir}/dos
207 EOF
208
209 # Take out irritating ^H's from the documentation
210 for i in `ls --color=no doc/` ; do cat doc/$i > $i ; cat $i | perl -p -e 's/.\b//g' > doc/$i ; done
211
212 rm -f doc/{configuration,dosemu.lsm}
213
214 mv $RPM_BUILD_ROOT/usr/X11R6/lib/X11/fonts/misc \
215         $RPM_BUILD_ROOT%{_datadir}/fonts
216
217 bzip2 -dc %{SOURCE9} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
218
219 gzip -9nf QuickStart COPYING ChangeLog* doc/* \
220         $RPM_BUILD_ROOT%{_datadir}/fonts/misc/*
221
222 %clean
223 rm -rf $RPM_BUILD_ROOT
224
225 %post -n xdosemu
226 if [ -x /usr/X11R6/bin/mkfontdir ]; then
227         (cd /usr/share/fonts/misc; /usr/X11R6/bin/mkfontdir)
228 fi
229 killall -USR1 xfs > /dev/null 2>&1 ||:
230
231 %postun -n xdosemu
232 if [ -x /usr/X11R6/bin/mkfontdir ]; then
233         (cd /usr/share/fonts/misc; /usr/X11R6/bin/mkfontdir)
234 fi
235 killall -USR1 xfs > /dev/null 2>&1 ||:
236
237 %post freedos
238 [ -e /var/lib/dosemu/hdimage.first ] || \
239     ln -s hdimage.freedos /var/lib/dosemu/hdimage.first
240
241 %postun freedos
242 if [ "$1" =" 0" ]; then
243         if [ -e /var/lib/dosemu/hdimage.first ]; then
244                 rm -f /var/lib/dosemu/hdimage.first
245         fi
246 fi
247     
248 %files
249 %defattr(644,root,root,755)
250 %doc *.gz doc/*
251 %dir /var/lib/dosemu
252 %config %{_sysconfdir}/dosemu.conf
253 %config %{_sysconfdir}/dosemu.users
254 %config /var/lib/dosemu/hdimage
255 %config /var/lib/dosemu/global.conf
256 %attr(4755,root,root) %{_bindir}/dos
257 %attr(755,root,root) %{_bindir}/dosdebug
258 %attr(755,root,root) %{_bindir}/dosexec
259 %attr(755,root,root) %{_bindir}/dexeconfig
260 %attr(755,root,root) %{_bindir}/hdinfo
261 %attr(755,root,root) %{_bindir}/do_mtools
262 %attr(755,root,root) %{_bindir}/extract-dos
263 %attr(755,root,root) %{_bindir}/mkdexe
264 %attr(755,root,root) %{_bindir}/myxcopy
265 %attr(755,root,root) %{_bindir}/mkhdimage
266 %attr(755,root,root) %{_bindir}/mkfatimage16
267 %attr(755,root,root) %{_bindir}/rundos
268 %attr(755,root,root) %{_bindir}/setup-hdimage
269 %{_mandir}/man1/dos*
270 %{_mandir}/man1/mkfatimage16.1*
271 %lang(pl) %{_mandir}/pl/man1/dos*
272 %{_pixmapsdir}/dosemu.xpm
273
274 %files -n xdosemu
275 %defattr(644,root,root,755)
276 %attr(4755,root,root) %{_bindir}/xdos
277 # %attr(755,root,root) %{_bindir}/xtermdos
278 %{_mandir}/man1/xdos.1*
279 %lang(pl) %{_mandir}/pl/man1/xdos.1*
280 # %{_mandir}/man1/xtermdos.1*
281 %{_datadir}/fonts/misc/*
282
283 %files freedos
284 %defattr(644,root,root,755)
285 %config /var/lib/dosemu/hdimage.freedos
This page took 0.063518 seconds and 3 git commands to generate.