File aranym.spec of Package aranym

#
# spec file for package aranym
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#



Name:           aranym
BuildRequires:  Mesa-devel SDL-devel SDL_image-devel automake gcc-c++ unzip update-desktop-files
Url:            http://aranym.org/
Summary:        ARAnyM (Atari Running on Any Machine)
Version:        0.9.7beta
Release:        1
Group:          System/Emulators/Other
License:        GPL-2.0+ ; LGPL-2.1+
Source:         %{name}-%{version}.tar.gz
Source1:        afros-0.9.6-1.zip
Patch:          %{name}-%{version}.diff
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
ARAnyM is a multiplatform virtual machine (a software layer) for
running Atari ST/TT/Falcon TOS/GEM applications on any hardware with
many host operating systems. The reason for writing ARAnyM is to
provide Atari power users with faster and better machines. The ultimate
goal is to create a new platform where TOS/GEM applications could
continue to live forever.

Features:

* 68040 CPU (including MMU040)

* 68040 and 68881/2 FPU

* 14 MB ST-RAM and up to 3824 MB (configurable) of FastRAM

* VIDEL, Blitter, MFP, ACIA, IKBD for highest possible compatibility

* Sound (compatible with Atari XBIOS Sound subsystem, including
   TimerA DMA IRQ)

* Atari floppy DD/HD for connecting floppy image or real floppy
   drive

* Two IDE channels for connecting disk images, hard drives, or
   CD-ROMs

* Extended keyboard and mouse support (including mouse wheel)

* Direct access to host file system via BetaDOS and MiNT xfs drivers

* Networking using ethernet emulation with a driver for MiNT-Net

* TOS 4.04, EmuTOS, or Linux as the booting operating system

* Runs with FreeMiNT, MagiC, and any other operating system that
   runs also on real Atari computers

* Native CD-ROM access (under Linux, other OS: audio CD only) without
scsi, ide, or other emulation



Authors:
--------
    Ctirad Fertr <phanatic@volny.cz>
    Milan Jurik <M.Jurik@sh.cvut.cz>
    Stanislav Opichal <opichals@seznam.cz>
    Petr Stehlik <pstehlik@sophics.cz>
    Johan Klockars <rand@cd.chalmers.se>
    Didier MEQUIGNON <didier.mequignon@wanadoo.fr>
    Patrice Mandin <pmandin@caramail.com>
    Xavier Joubert
    Andreas Schwab <schwab@suse.de>

%prep
%setup -q -n %{name}-%{version} -a 1
%patch

%build
autoreconf -fi
%ifarch %ix86
./configure CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" \
	    --prefix=/usr --mandir=%{_mandir} --disable-nat-debug \
	    --enable-addressing=direct --enable-jit-compiler
make depend
make %{?jobs:-j%jobs}
mv aranym aranym-jit
make clean
%endif
./configure CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" \
	    --prefix=/usr --mandir=%{_mandir} --disable-nat-debug \
%ifarch ppc ppc64
	    --enable-fpe=uae \
%endif
	    --enable-addressing=direct \
	    --enable-lilo --enable-fullmmu
make depend
make %{?jobs:-j%jobs}
mv aranym aranym-mmu
make clean
./configure CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" \
	    --prefix=/usr --mandir=%{_mandir} --disable-nat-debug \
%ifarch ppc ppc64
	    --enable-fpe=uae \
%endif
	    --enable-addressing=direct
make depend
make %{?jobs:-j%jobs}

%install
make install DESTDIR=$RPM_BUILD_ROOT docdir=%{_docdir}
%ifarch %ix86
install -m 755 aranym-jit $RPM_BUILD_ROOT%{_bindir}
%endif
install -m 755 aranym-mmu $RPM_BUILD_ROOT%{_bindir}
install -d $RPM_BUILD_ROOT%{_datadir}/pixmaps
install -m 644 contrib/icon-32.png $RPM_BUILD_ROOT%{_datadir}/pixmaps/aranym.png
%suse_update_desktop_file -i aranym
cp -a afros-* $RPM_BUILD_ROOT%{_datadir}/aranym/afros
find $RPM_BUILD_ROOT%{_datadir}/aranym/afros -type d -name CVS -exec rm -rf {} +

%post
%run_permissions
%verifyscript
%verify_permissions -e %{_bindir}/aratapif

%clean
rm -fr $RPM_BUILD_ROOT

%files
%defattr(-, root, root)
%doc %{_docdir}/aranym
%verify(not mode) %attr(755,root,root) %{_bindir}/aratapif
%{_bindir}/aranym*
%{_mandir}/man1/*.gz
%{_datadir}/aranym
%{_datadir}/pixmaps/*
%{_datadir}/applications/*

%changelog