Bochs/bochs/build/redhat/bochs.rpmspec.template

53 lines
1.2 KiB
Plaintext
Raw Normal View History

Summary: Bochs Project x86 PC Emulator
Name: bochs
Version: @SEDVERSION@
2001-05-25 20:58:48 +04:00
Release: 1
License: LGPL
Group: Applications/Emulators
URL:http://bochs.sourceforge.net
Packager:Bryce Denney <bryce.denney@bigfoot.com>
Source:bochs.tar.gz
%description
Bochs is a portable x86 PC emulation software package that emulates enough of
the x86 CPU, related AT hardware, and BIOS to run DOS, Windows '95, Minix 2.0,
and other OS's, all on your workstation.
%prep
rm -rf $RPM_BUILD_DIR/bochs
tar xzvf $RPM_SOURCE_DIR/bochs.tar.gz
%build
cd $RPM_BUILD_DIR/bochs
CONFIGURE_ARGS="--prefix=/usr --mandir=/usr/man"
export CONFIGURE_ARGS
sh .conf.linux
make
%install
pwd
cd $RPM_BUILD_DIR/bochs
for i in "" usr usr/bin usr/man usr/man/man1; do
if ! test -d /$i; then mkdir /$i; fi
done
make install install_dlx
%files
/usr/bin/bochs
/usr/bin/bochs-docs
/usr/bin/bochs-dlx
/usr/bin/bximage
/usr/bochs/@SEDVERSION@
/usr/bochs/dlxlinux
/usr/bochs/latest
/usr/man/man1/bochs*
/usr/man/man1/bximage*
%clean
rm -rf $RPM_BUILD_DIR/bochs
%post
/usr/bochs/@SEDVERSION@/install-x11-fonts
%preun
# clean up the bochsout.txt that is always produced if you
# run bochs-dlx.
rm -rf /usr/bochs/dlxlinux/bochsout.txt core
%postun
rmdir /usr/bochs > /dev/null 2>&1