Sophie

Sophie

distrib > Mandriva > 8.2 > i586 > by-pkgid > faad555764ce541026009beca8f9703a > files > 13

uae-jit-0.8.15-6mdk.src.rpm

%define name uae-jit
%define version 0.8.15
%define sversion JIT
%define jitversion IT2
%define release 6mdk
%define cdvers 1.8.1

Summary: A software emulation of the Amiga 500/1000/2000
Name: %{name}
Version: %{version}
Release: %{release}
URL: http://byron.csse.monash.edu.au
Source: http://byron.csse.monash.edu.au/uae-%{version}-%{sversion}_%{jitversion}.tar.bz2
Source1: cdrecord-%{cdvers}.tar.bz2
Source2: http://xyzzy.dyn.dhs.org/uae/bsdsocket_000823.tar.bz2
Patch0: uae-opt.patch.bz2
Patch1: uae-0.8.10-cmdline.patch.bz2
Patch2: uae-opt2.patch.bz2
Patch3: uae-jit-ugly.patch.bz2
Patch4: uae-jit-configure.patch.bz2
Patch5: uae-bsdsocket.patch.bz2
Patch6: uae-jit-0.8.15-direct.patch.bz2

# fucomi instructions are for P6+ cores only. Don't use them on K6-2,
# for example.
Patch7: uae-jit-fucomi.patch.bz2

# Small fix for the register allocator
Patch8: uae-jit-regalloc.patch.bz2

# Fixes for shift/rotate code generators
Patch9: uae-jit-rotshi.patch.bz2

# Fix condition codes handling for BFINS instructions
Patch10: uae-bfins-flags.patch.bz2

License: GPL
Group: Emulators
Prefix: /usr
BuildRoot: %{_tmppath}/%{name}-%{version}-root
BuildPreReq: XFree86-devel, gtk+-devel, glib-devel

%description
UAE is a software emulation of the Amiga 500/1000/2000 system
hardware, which enables you to run most available Amiga software.  Since
it is a software emulation, no extra or special hardware is needed.
The Amiga hardware is emulated accurately, so that Amiga software 
is tricked into thinking it is running on the real thing.  Your computer's
display, keyboard, hard disk and mouse assume the roles of their emulated
counterparts.

Note that to fully emulate the Amiga you need the Amiga KickStart
ROM images, which are copyrighted and, of course, not included here.

%prep
%setup -q -a 1 -a 2 -n uae-%{version}_%{jitversion}
%patch0 -p1 -b .opt
%patch1 -p1 -b .cmdline
%patch2 -p1 -b .opt2
%patch3 -p1 -b .ugly
%patch4 -p1 -b .config
%patch5 -p1 -b .socket
%patch6 -p1
%patch7 -p1 -b .jit-fucomi
%patch8 -p1 -b .jit-regalloc
%patch9 -p1 -b .jit-rotshi
%patch10 -p1 -b .bfins-flags

%build
cd cdrecord-%{cdvers}
CFLAGS="$RPM_OPT_FLAGS -fno-fast-math" CONFFLAGS="%{_target_platform} --prefix=%{prefix}" \
	XK_ARCH=%{_target_cpu} ./Gmake
cd ../src
./install_libscg ../cdrecord-%{cdvers}
cd ..
mv -f bsdsocket.c src
mv -f bsdsocket.library amiga
autoconf
./configure --prefix=%{prefix} \
            --with-x \
            --enable-dga \
            --enable-vidmode \
            --enable-ui \
            --enable-threads \
            --enable-scsi-device \
            --enable-sound \
	    --enable-jit

%ifarch i386 i486 i586 i686 k6 k7
make RPM_OPT_FLAGS="$RPM_OPT_FLAGS -fno-strength-reduce -fno-fast-math"
%else
make RPM_OPT_FLAGS="$RPM_OPT_FLAGS -fno-fast-math"
%endif

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/%{prefix}/{bin,lib/uae/amiga/source,X11R6/bin}
install -m 755 -s readdisk $RPM_BUILD_ROOT/%{prefix}/bin
install -m 755 -s uae $RPM_BUILD_ROOT/%{prefix}/X11R6/bin
cp -pR amiga/* $RPM_BUILD_ROOT/%{prefix}/lib/uae/amiga/.

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc docs/*
%{prefix}/bin/*
%{prefix}/lib/uae
%{prefix}/X11R6/bin/*

%changelog
* Mon Feb 11 2002 Gwenole Beauchesne <gbeauchesne@mandrakesoft.com> 0.8.15-6mdk
- 4 new patches:
  - Patch7: fucomi instructions are for P6+ cores only. e.g. Exclude K6-2
  - Patch8: Small fix for the register allocator
  - Patch9: Fixes for shift/rotate code generators
  - Patch10: Fix condition codes handling for BFINS instructions

* Wed Sep 05 2001 Lenny Cartier <lenny@mandrakesoft.com> 0.8.15-5mdk
- rebuild

* Wed Jan 24 2001 Giuseppe Ghibò <ghibo@mandrakesoft.com> 0.8.15-4mdk
- added missed direct_access.c file.

* Mon Dec 18 2000 Giuseppe Ghibò <ghibo@mandrakesoft.com> 0.8.15-3mdk
- added bsdsocket.library support.

* Sun Dec 17 2000 Giuseppe Ghibò <ghibo@mandrakesoft.com> 0.8.15-2mdk
- updated to version JIT-IT2.
- fixed typo in configure.in.
- removed scsi patch (no longer needed).

* Sun Dec 03 2000 Giuseppe Ghibò <ghibo@mandrakesoft.com> 0.8.15-1mdk
- updated with JIT version.

* Fri Aug 11 2000 Giuseppe Ghibò <ghibo@mandrakesoft.com> 0.8.13-2mdk
- added SCSI support.

* Thu Aug 10 2000 Giuseppe Ghibò <ghibo@mandrakesoft.com> 0.8.13-1mdk
- updated to new version.

* Thu Apr 20 2000 Giuseppe Ghibò <ghibo@mandrakesoft.com> 0.8.12-2mdk
- fixed group.

* Thu Mar 16 2000 Giuseppe Ghibò <ghibo@mandrakesoft.com> 0.8.12-1mdk
- updated to version 0.8.12.

* Thu Feb 03 2000 Giuseppe Ghibò <ghibo@linux-mandrake.com>
- updated to version 0.8.11.

* Sat Oct 31 1999 Giuseppe Ghibò <ghibo@linux-mandrake.com>
- updated to version 0.8.10.
- added patch to show config help.
- added BuildPreReq.

* Sat Jul 24 1999 Giuseppe Ghibò <ghibo@linux-mandrake.com>
  [0.8.9-2mdk]
- mandrake adaptions

* Sun Jul 04 1999 Arne Coucheron <arneco@online.no>
  [0.8.9-1]

* Mon May 24 1999 Arne Coucheron <arneco@online.no>
  [0.8.8-2]
- changed the Summary tag
- changed the Group tag
- changed the %description
- installing the utilities
- readdisk moved to /usr/bin

* Tue Mar 30 1999 Arne Coucheron <arneco@online.no>
  [0.8.8-1]
- corrected the Source tag

* Sat Jan 09 1999 Arne Coucheron <arneco@online.no>
  [0.8.7-1]

* Mon Jul 27 1998 Arne Coucheron <arneco@online.no>
  [0.8.6-1]

* Sat Jul 11 1998 Arne Coucheron <arneco@online.no>
  [0.8.5-1]

* Wed Jun 03 1998 Arne Coucheron <arneco@online.no>
  [0.8.4-1]