File arnold.spec of Package arnold
#
# spec file for package arnold (Version 27012002)
#
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: arnold
BuildRequires: SDL-devel
BuildRequires: gtk1-compat-devel
BuildRequires: unzip
BuildRequires: update-desktop-files
URL: http://arnold.emuunlim.com/
License: GPL-2.0-or-later
Group: System/Emulators/Other
Version: 0.0.20020127
%define _version 27012002
Release: 872
Summary: An Amstrad CPC(+) Emulator
%if 0
# For civs:
Source: arnsrc%{_version}.zip
%else
# WARNING: This is not a comment, but the real command to repack souce:
#%(sh %{_sourcedir}/%{name}-repack-free arnsrc%{_version}.zip)
Source: arnsrc%{_version}-free.tar.bz2
%endif
Source1: arnold.desktop
Source2: arnold-repack-free
Patch: arnold.dif
Patch1: arnold-codecleanup.diff
Patch2: arnold-link.patch
%description
This is arguably the best Amstrad CPC emulator around. It is able to
recreate the Amstrad models CPC 464/664/6128, 464+/6128+, and the VEB
Mikroelektronik model KC Compact.
%prep
%setup -q -n arnold
find -name "*.[ch]" | while read ; do iconv -f CP850 -t ISO-8859-1 $REPLY >$REPLY.iso ; touch -r $REPLY $REPLY.iso ; mv $REPLY.iso $REPLY ; done
%patch
%patch1
%patch2 -p1
%build
cd src
export CFLAGS="%{optflags} -fno-strict-aliasing"
export LDFLAGS="-Wl,--allow-multiple-definition"
sh ./configure --prefix=/usr
make
%install
install -d -m 755 $RPM_BUILD_ROOT/usr/share/arnold
rm -f roms/*/file_id.diz
chmod 755 roms roms/*
chmod 644 roms/*/*
cp -a roms $RPM_BUILD_ROOT/usr/share/arnold
install -d -m 755 $RPM_BUILD_ROOT/usr/bin
install -m 755 arnold $RPM_BUILD_ROOT/usr/bin
chmod 644 readme.* whatsnew.* copying bugsetc.txt
%suse_update_desktop_file -i arnold Emulator
%files
%defattr(-,root,root)
%doc readme.* whatsnew.* copying bugsetc.txt
/usr/bin/arnold
/usr/share/arnold
/usr/share/applications/arnold.desktop
%changelog