2001-06-02 07:42:37 +00:00
|
|
|
Summary: Bochs Project x86 PC Emulator
|
2001-05-22 16:50:15 +00:00
|
|
|
Name: bochs
|
2001-11-10 03:39:55 +00:00
|
|
|
Version: @SEDVERSION@
|
2001-05-25 16:58:48 +00:00
|
|
|
Release: 1
|
2001-05-22 16:50:15 +00:00
|
|
|
License: LGPL
|
|
|
|
Group: Applications/Emulators
|
|
|
|
URL:http://bochs.sourceforge.net
|
|
|
|
Packager:Bryce Denney <bryce.denney@bigfoot.com>
|
2001-12-08 15:59:50 +00:00
|
|
|
Source:bochs-@SEDVERSION@.tar.gz
|
2001-12-08 05:35:57 +00:00
|
|
|
BuildRoot: /var/tmp/%{name}-buildroot
|
2001-06-06 13:57:24 +00:00
|
|
|
|
2001-05-22 16:50:15 +00: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 13:57:24 +00:00
|
|
|
|
2002-11-19 19:32:09 +00:00
|
|
|
%define pkg_name bochs
|
|
|
|
|
2001-05-22 16:50:15 +00:00
|
|
|
%prep
|
2001-12-08 15:59:50 +00:00
|
|
|
rm -rf $RPM_BUILD_DIR/bochs-@SEDVERSION@
|
|
|
|
tar xzvf $RPM_SOURCE_DIR/bochs-@SEDVERSION@.tar.gz
|
2001-12-08 05:35:57 +00:00
|
|
|
if test "/" != $RPM_BUILD_ROOT; then
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
fi
|
2001-05-22 16:50:15 +00:00
|
|
|
%build
|
2001-12-08 15:59:50 +00:00
|
|
|
cd $RPM_BUILD_DIR/bochs-@SEDVERSION@
|
2002-11-02 16:09:36 +00:00
|
|
|
CONFIGURE_ARGS="--prefix=/usr --mandir=$RPM_BUILD_ROOT/%{_mandir}"
|
2001-06-06 13:57:24 +00:00
|
|
|
export CONFIGURE_ARGS
|
|
|
|
sh .conf.linux
|
2001-05-22 16:50:15 +00:00
|
|
|
make
|
2001-12-08 05:35:57 +00:00
|
|
|
make unpack_dlx # must use prefix=/usr since this step sets up
|
|
|
|
# the paths in dlx bochsrc file.
|
2001-05-22 16:50:15 +00:00
|
|
|
%install
|
|
|
|
pwd
|
2001-12-08 15:59:50 +00:00
|
|
|
cd $RPM_BUILD_DIR/bochs-@SEDVERSION@
|
2002-11-11 13:13:16 +00:00
|
|
|
for i in "" usr usr/bin usr/lib usr/share usr/share/doc %{_mandir}; do
|
2001-12-08 05:35:57 +00:00
|
|
|
if ! test -d $RPM_BUILD_ROOT/$i; then mkdir $RPM_BUILD_ROOT/$i; fi
|
2001-06-06 13:57:24 +00:00
|
|
|
done
|
2002-06-26 17:10:36 +00:00
|
|
|
make install install_dlx prefix=$RPM_BUILD_ROOT/usr
|
2002-11-19 19:32:09 +00:00
|
|
|
# build file list on the fly
|
|
|
|
cd $RPM_BUILD_ROOT
|
|
|
|
find . -type d | sed '1,2d;s,^\.,\%attr(-\,root\,root) \%dir ,' > \
|
|
|
|
$RPM_BUILD_DIR/file.list.%{pkg_name}
|
|
|
|
find . -type f | sed -e 's,^\.,\%attr(-\,root\,root) ,' \
|
|
|
|
-e '/\/etc\//s|^|%config|' >> \
|
|
|
|
$RPM_BUILD_DIR/file.list.%{pkg_name}
|
|
|
|
find . -type l | sed 's,^\.,\%attr(-\,root\,root) ,' >> \
|
|
|
|
$RPM_BUILD_DIR/file.list.%{pkg_name}
|
|
|
|
|
|
|
|
%files -f file.list.%{pkg_name}
|
2001-06-06 13:57:24 +00:00
|
|
|
|
|
|
|
%clean
|
2001-12-08 15:59:50 +00:00
|
|
|
rm -rf $RPM_BUILD_DIR/bochs-@SEDVERSION@
|
2002-11-19 19:32:09 +00:00
|
|
|
rm -rf $RPM_BUILD_DIR/file.list.%{pkg_name}
|
2001-12-08 05:35:57 +00:00
|
|
|
if test "/" != $RPM_BUILD_ROOT; then
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
fi
|
2001-06-06 13:57:24 +00:00
|
|
|
%post
|
2002-09-04 18:18:32 +00:00
|
|
|
# for non-X-windows RPM, this script doesn't exist.
|
|
|
|
if test -x /usr/share/bochs/install-x11-fonts; then
|
|
|
|
/usr/share/bochs/install-x11-fonts
|
|
|
|
fi
|
2001-06-06 13:57:24 +00:00
|
|
|
%preun
|
|
|
|
# clean up the bochsout.txt that is always produced if you
|
|
|
|
# run bochs-dlx.
|
2002-06-26 17:10:36 +00:00
|
|
|
rm -rf /usr/share/bochs/dlxlinux/bochsout.txt core
|
2001-06-06 13:57:24 +00:00
|
|
|
%postun
|
2002-06-26 17:10:36 +00:00
|
|
|
rmdir /usr/share/bochs > /dev/null 2>&1
|