info: dosemu.spec
mkorz@jaguar.domek.pl
mkorz w jaguar.domek.pl
¦ro, 23 Wrz 1998, 22:08:08 CEST
Hej,
odrobinê zmodyfikowany spec z rawhide...
--
Marcin Korzonek
mkorz w shadow.eu.org
-------------- nastêpna czê¶æ ---------
Summary: DOS emulator
Summary(de): DOS-Emulator
Summary(fr): Emulateur DOS
Summary(pl): Emulator systemu DOS
Summary(tr): DOS öykünümcüsü
Name: dosemu
Version: 0.98.1
Release: 1
Exclusivearch: i386
Copyright: distributable
Group: Applications/Emulators
Source0: ftp://dtp.dosemu.org/dosemu/%{name}-%{version}.tgz
Source1: http://www.freedos.org/files/fdbeta1.zip
Source2: rundos
# this kernel is generated from the freedos.144 floppy image coming with the
# above. Why they ship the kernel on the floppy image only ?!
Source2: dosemu-freedos-kernel.tar.gz
Patch0: dosemu-0.66.7-config.patch
Patch1: dosemu-0.66.7-glibc.patch
Patch2: dosemu-0.66.7-pushal.patch
Patch3: dosemu-0.98.1-security.patch
Patch4: dosemu-0.98.1-justroot.patch
Patch5: dosemu-glibc-2.1.patch
Icon: dosemu.gif
Requires: kernel >= 2.0.28, mtools >= 3.6
Url: http://www.dosemu.org
Buildroot: /var/tmp/%{name}-%{version}-root
%package -n xdosemu
Requires: dosemu = %{version}
Summary: DOS emulator designed to run under X
Group: Applications/Emulators
Summary(de): DOS-Emulator für X
Summary(fr): Émulateur DOS conçu pou être lancé sous X
Summary(pl): Emulator systemu DOS uruchamiany pod X-Window
Summary(tr): X altında çalışan DOS öykünümcüsü
%package freedos
Requires: dosemu = %{version}
Summary: A FreeDOS hdimage for dosemu as a replacement for some other DOS versions
Summary(pl): Darmowa implementacja systemu DOS w postaci obrazu dysku dla dosemu.
Group: Applications/Emulators
%description
This package enables you to run a number of DOS programs under Linux. This
package includes an image with DOS-C kernel (MS DOS 3.31 compatible) and FreeDos
utilities. You should be able to start up the DOS emulator by logging in as
root and typing 'dos' at the prompt.
%description -l pl
dosemu umo¿liwia uruchomienie wielu programów z systemu DOS pod
Linuksem. W tym pakiecie zawarty równie¿ zestaw narzêdzi pochodz±cych z
darmowej implementacji systemu DOS 3.31 -- FreeDos.
%description -n xdosemu
This is a version of the DOS emulator that is designed to run in an X window
session. It provides VGA graphics support as well as mouse support.
%description freedos
This package includes a hdimage file that will be installed in
/var/lib/dosemu directory if you need some version of DOS to start using
dosemu.
Generally dosemu requires you to have some version of DOS available
to bootstrap your hdimage files before first use, or to have partitions
formatted and installed with DOS. If you have neither you can use this image
that is already bootable with FreeDOS.
You will need to edit your /etc/dosemu.conf file to add this image to the
list of "drives" used by dosemu.
%description -l pl freedos
Aby u¿ywaæ dosemu potrzebujesz jak±kolwiek wersjê systemu DOS. W tym
pakiecie zawarta jest jego darmowa implementacja -- FreeDos, w postaci
obrazu dysku. Jego u¿ycie wymaga dopisania do /etc/dosemu.conf.
%description -l de -n xdosemu
Dies ist eine Version des DOS-Emulators für X-Windows-Sitzungen.
Er unterstützt VGA-Grafiken und Maus.
%description -l fr -n xdosemu
Version de l'émulateur DOS conçue pour tourner dans une session X. Offre une
gestion des graphismes VGA et de la souris.
%description -l pl -n xdosemu
Ta wersja emulatora systemu DOS przeznaczona jest do uruchomienia w
systemie X-Window.
%description -l tr -n xdosemu
Bu yazılım, DOS öykünümcüsünün X altında çalışan bir sürümüdür. VGA grafikleri
ve fare desteği vardır.
%prep
%setup -q
%patch0 -p1 -b .lock
#%patch2 -p1 -b .pushal
%patch3 -p1 -b .security
%patch4 -p1 -b .justroot
%patch5 -p1 -b .glibc-2.1
unzip -qq -L $RPM_SOURCE_DIR/fdbeta1.zip
rm -rf freedos
mkdir freedos
for i in orlando/{base,sys,util}/?/*.zip ; do
unzip -qq -d freedos -q $i
done
tar xzf $RPM_SOURCE_DIR/dosemu-freedos-kernel.tar.gz -C freedos
%build
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin
./default-configure
echo | make
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT/etc
install -d $RPM_BUILD_ROOT/usr/bin
install -d $RPM_BUILD_ROOT/usr/share/icons
install -d $RPM_BUILD_ROOT/usr/man/man1
install -d $RPM_BUILD_ROOT/usr/X11R6/lib/X11/fonts/misc
install -d $RPM_BUILD_ROOT/var/lib/dosemu
# let's do it by hand
#make install INSTROOT=$RPM_BUILD_ROOT
install bin/{dos,dosdebug,dosexec,xdos} $RPM_BUILD_ROOT/usr/bin
install etc/xtermdos $RPM_BUILD_ROOT/usr/bin
install man/{dos.1,dosdebug.1,mkfatimage16.1,xdos.1,xtermdos.1} $RPM_BUILD_ROOT/usr/man/man1
install src/tools/periph/{hdinfo,mkhdimage,mkfatimage16} $RPM_BUILD_ROOT/usr/bin
install etc/dosemu.xpm $RPM_BUILD_ROOT/usr/share/icons
install etc/dosemu.users.secure $RPM_BUILD_ROOT/etc/dosemu.users
install etc/dosemu.conf $RPM_BUILD_ROOT/etc
install etc/global.conf $RPM_BUILD_ROOT/var/lib/dosemu
install etc/hdimage.dist $RPM_BUILD_ROOT/var/lib/dosemu/hdimage
install $RPM_SOURCE_DIR/rundos $RPM_BUILD_ROOT/usr/bin/rundos
install etc/vga.pcf $RPM_BUILD_ROOT/usr/X11R6/lib/X11/fonts/misc
#prepare disk image with FreeDos
src/tools/periph/mkfatimage16 -p -k 8192 -l FreeDos \
-b freedos/kernel/boot.bin \
-f $RPM_BUILD_ROOT/var/lib/dosemu/hdimage.freedos \
freedos/kernel/*
FREEDOS=`/bin/mktemp /tmp/freedos.XXXXXX`
echo "drive n: file=\"$RPM_BUILD_ROOT/var/lib/dosemu/hdimage.freedos\" offset=8832" > $FREEDOS
MTOOLSRC=$FREEDOS
export MTOOLSRC
mcopy -o freedos/BIN freedos/DOC freedos/HELP n:
mmd n:/DOSEMU
mcopy commands/* n:/DOSEMU
mcopy commands/exitemu* n:/
mdir -w n:
rm -f $FREEDOS
unset MTOOLSRC
%post -n xdosemu
if [ -x /usr/X11R6/bin/mkfontdir ]; then
(cd /usr/X11R6/lib/X11/fonts/misc; /usr/X11R6/bin/mkfontdir)
fi
%postun -n xdosemu
if [ -x /usr/X11R6/bin/mkfontdir ]; then
(cd /usr/X11R6/lib/X11/fonts/misc; /usr/X11R6/bin/mkfontdir)
fi
%post freedos
[ -e /var/lib/dosemu/hdimage.first ] || \
ln -s hdimage.freedos /var/lib/dosemu/hdimage.first
%files
%defattr(644, root, root, 755)
%doc QuickStart doc/*
%dir /var/lib/dosemu
%attr(644, root, root) %config(noreplace) %verify(not size md5 mtime) /etc/dosemu.conf
%attr(644, root, root) %config(noreplace) %verify(not size md5 mtime) /etc/dosemu.users
%attr(644, root, root) %config(noreplace) %verify(not size md5 mtime) /var/lib/dosemu/hdimage
%attr(644, root, root) %config(noreplace) %verify(not size md5 mtime) /var/lib/dosemu/global.conf
%attr(711, root, root) /usr/bin/dos
%attr(711, root, root) /usr/bin/dosdebug
%attr(711, root, root) /usr/bin/dosexec
%attr(711, root, root) /usr/bin/hdinfo
%attr(711, root, root) /usr/bin/mkhdimage
%attr(711, root, root) /usr/bin/mkfatimage16
%attr(755, root, root) /usr/bin/rundos
%attr(644, root, man) /usr/man/man1/dos.1
%attr(644, root, man) /usr/man/man1/dosdebug.1
%attr(644, root, man) /usr/man/man1/mkfatimage16.1
%attr(644, root, root) /usr/share/icons/dosemu.xpm
%files -n xdosemu
%defattr(644, root, root, 755)
%attr(711, root, root) /usr/bin/xdos
%attr(711, root, root) /usr/bin/xtermdos
%attr(644, root, man) /usr/man/man1/xdos.1
%attr(644, root, man) /usr/man/man1/xtermdos.1
%attr(644, root, root) /usr/X11R6/lib/X11/fonts/misc/vga.pcf
%files freedos
%config /var/lib/dosemu/hdimage.freedos
%clean
rm -rf $RPM_BUILD_ROOT
%changelog
* Tue Sep 22 1998 Marcin Korzonek <mkorz w shadow.eu.org>
- translations modified for pl
- sed "s/X windows/X window/g" for all description (no tribute to Mr. Gates)
- added rundos as a separate source file
- changed files permission
- build against glibc 2.1
* Tue Sep 15 1998 Cristian Gafton <gafton w redhat.com>
- version 0.98.1
- freedos has its own subpackage
* Wed Jun 24 1998 Alan Cox <alan w redhat.com>
- Wrote additional fixes for dexe overflow problem in parser.y
* Tue Jun 23 1998 Alan Cox <alan w redhat.com>
- Applied the security fixes from Hans Lerman
* Fri May 08 1998 Prospector System <bugs w redhat.com>
- translations modified for de, fr, tr
* Fri Apr 10 1998 Cristian Gafton <gafton w redhat.com>
- added DOS-C kernel and FreeDos utilities
* Thu Jan 29 1998 Cristian Gafton <gafton w redhat.com>
- updated spec file to include all the available commands
- uses a buildroot
- ship mkfatimage16, which is the only binary that can create a real hdimage
file
* Mon Nov 03 1997 Michael K. Johnson <johnsonm w redhat.com>
- Updated to 0.66.7
- Ported to glibc
* Wed Apr 16 1997 Erik Troan <ewt w redhat.com>
- Updated to 0.66.2.
- Removed /usr/bin/load-dosmods as we don't need emumod.o anymore
* Tue Mar 11 1997 Michael K. Johnson <johnsonm w redhat.com>
- Modify the default configuration file to use /var/lock in
ascii format for lock files, as specified in the FSSTD/FHS.
* Thu Mar 06 1997 Michael K. Johnson <johnsonm w redhat.com>
- Assume vm86plus system call does not exist.
- N.B. This should be changed in a future version with a later kernel
that supports that system call by default.
- Install the mkhdimage program.
Wiêcej informacji o li¶cie dyskusyjnej pld-devel-pl