2001-06-02 11:42:37 +04:00
|
|
|
Summary: Bochs Project x86 PC Emulator
|
2001-05-22 20:50:15 +04:00
|
|
|
Name: bochs
|
2001-05-22 20:57:23 +04:00
|
|
|
Version: @VERSION@
|
2001-05-25 20:58:48 +04:00
|
|
|
Release: 1
|
2001-05-22 20:50:15 +04:00
|
|
|
License: LGPL
|
|
|
|
Group: Applications/Emulators
|
|
|
|
URL:http://bochs.sourceforge.net
|
|
|
|
Packager:Bryce Denney <bryce.denney@bigfoot.com>
|
|
|
|
Source:bochs.tar.gz
|
2001-06-06 17:57:24 +04:00
|
|
|
BuildRoot: /var/tmp/%{name}-buildroot
|
|
|
|
|
2001-05-22 20:50:15 +04:00
|
|
|
%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.
|
2001-06-06 17:57:24 +04:00
|
|
|
|
2001-05-22 20:50:15 +04:00
|
|
|
%prep
|
|
|
|
rm -rf $RPM_BUILD_DIR/bochs
|
|
|
|
tar xzvf $RPM_SOURCE_DIR/bochs.tar.gz
|
|
|
|
%build
|
|
|
|
cd $RPM_BUILD_DIR/bochs
|
2001-06-06 17:57:24 +04:00
|
|
|
CONFIGURE_ARGS="--prefix $RPM_BUILD_ROOT/usr/local --mandir=$RPM_BUILD_ROOT/usr/man"
|
|
|
|
export CONFIGURE_ARGS
|
|
|
|
sh .conf.linux
|
2001-05-22 20:50:15 +04:00
|
|
|
make
|
|
|
|
%install
|
|
|
|
pwd
|
|
|
|
cd $RPM_BUILD_DIR/bochs
|
2001-06-06 17:57:24 +04:00
|
|
|
for i in "" usr usr/local usr/local/bin usr/man usr/man/man1; do
|
|
|
|
if ! test -d $RPM_BUILD_ROOT/$i; then mkdir $RPM_BUILD_ROOT/$i; fi
|
|
|
|
done
|
|
|
|
make install install_dlx
|
|
|
|
# fix up symlinks that point to buildroot
|
|
|
|
cd $RPM_BUILD_ROOT/usr/local/bin
|
|
|
|
rm bochs; ln -sf /usr/local/bochs/@VERSION@/bochs .
|
|
|
|
rm bximage; ln -sf /usr/local/bochs/@VERSION@/bximage .
|
|
|
|
|
2001-05-22 20:50:15 +04:00
|
|
|
%files
|
|
|
|
/usr/local/bin/bochs
|
|
|
|
/usr/local/bin/bochs-docs
|
|
|
|
/usr/local/bin/bochs-dlx
|
2001-06-02 11:42:37 +04:00
|
|
|
/usr/local/bin/bximage
|
2001-05-22 20:57:23 +04:00
|
|
|
/usr/local/bochs/@VERSION@
|
2001-05-22 20:50:15 +04:00
|
|
|
/usr/local/bochs/dlxlinux
|
2001-06-02 11:42:37 +04:00
|
|
|
/usr/local/bochs/latest
|
2001-06-04 07:37:54 +04:00
|
|
|
/usr/man/man1/bochs.1
|
|
|
|
/usr/man/man1/bochsrc.1
|
|
|
|
/usr/man/man1/bochs-dlx.1
|
|
|
|
/usr/man/man1/bximage.1
|
2001-06-06 17:57:24 +04:00
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_DIR/bochs
|
|
|
|
if test "/" != $RPM_BUILD_ROOT; then
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
fi
|
|
|
|
%post
|
|
|
|
/usr/local/bochs/@VERSION@/install-x11-fonts
|
|
|
|
%preun
|
|
|
|
# clean up the bochsout.txt that is always produced if you
|
|
|
|
# run bochs-dlx.
|
|
|
|
rm -rf /usr/local/bochs/dlxlinux/bochsout.txt core
|
|
|
|
%postun
|
|
|
|
rmdir /usr/local/bochs > /dev/null 2>&1
|