File arnold.spec of Package arnold
#
# spec file for package spec (Version 2.0)
#
# Copyright (c) 2003 SuSE Linux AG, 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://www.suse.de/feedback/
#
# norootforbuild
Name: arnold
License: GPL
Group: unsorted
Autoreqprov: on
Version: 0.0+git20201004.471227f
Release: 0
Summary: Amstrad CPC Emulator
Source: %name-%{version}.tar.gz
Patch1: 0001-Add-icon-to-.desktop.patch
Patch2: 0002-Fix-extern-_binary-symbol-types.patch
%ifarch x86_64
Patch3: 0003-Link-with-usr-lib64.patch
%endif
BuildRequires: alsa-devel
BuildRequires: gtk2-devel
%if 0%{?suse_version} > 1600
BuildRequires: sdl12_compat-devel
%endif
BuildRequires: pulseaudio-devel
BuildRequires: SDL-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-build
URL: http://arnold.berlios.de/
%description
Amstrad CPC emulator
%prep
%setup -q
%patch 1 -p1
%patch 2 -p1
%ifarch x86_64
%patch 3 -p1
%endif
%build
make clean
CFLAGS="$RPM_OPT_FLAGS" make %{?jobs:-j%jobs}
%install
install -D -m 755 arnold $RPM_BUILD_ROOT%{_bindir}/arnold
mkdir -p %{buildroot}%{_datadir}/applications
install -m 644 opk/default.gcw0.desktop %{buildroot}%{_datadir}/applications/%{name}.desktop
mkdir -p %{buildroot}%{_datadir}/%{name}
install -m 644 opk/icon.png %{buildroot}%{_datadir}/%{name}
%suse_update_desktop_file -i -u %{name} Emulator
%files
%defattr(-,root,root)
%doc *.txt *.linux README*
/usr/bin/arnold
%dir %{_datadir}/%{name}
%{_datadir}/applications/%{name}.desktop