File dolphin-emu.spec of Package dolphin-emu
#
# spec file for dolphin-emu
#
# Copyright (c) 2010 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 Sour ce 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: dolphin-emu
Version: 2.0.rev6314
Release: 0
License: GPLv2
Summary: Gamecube / Wii / Triforce Emulator
Url: http://www.dolphin-emu.com/
Group: System/Emulators/Other
Source0: %{name}-%{version}.tar.bz2
# TODO: Only use -fPIC with plugins
# I allow the use of SSE2 instructions, even if this will generate a i586 package, because it fails to build otherwise
Patch0: %{name}-2.0.rev6314-cflags.patch
Patch1: %{name}-2.0.rev6314-lib64.patch
BuildRequires: alsa-devel
BuildRequires: bluez-devel
BuildRequires: cg-devel
BuildRequires: gcc-c++
BuildRequires: glew-devel
BuildRequires: libSDL-devel
BuildRequires: libSOIL-devel
BuildRequires: libao-devel
BuildRequires: libpulse-devel
BuildRequires: lzo-devel
BuildRequires: openal-devel
BuildRequires: pkg-config
BuildRequires: portaudio-devel
BuildRequires: scons
BuildRequires: sfml-devel
BuildRequires: update-desktop-files
BuildRequires: wxGTK-devel
BuildRequires: zlib-devel
%description
Gamecube / Wii / Triforce Emulator.
%prep
%setup -q
%patch0
if [ %{_lib} = lib64 ]; then
%patch1
fi
%build
export CCFLAGS='%{optflags}'
scons %{?_smp_mflags} verbose=true install=global destdir=%{?buildroot}
%install
export CCFLAGS='%{optflags}'
scons %{?_smp_mflags} verbose=true install=global destdir=%{?buildroot} install
%{__install} -p -D -m 0755 Source/Core/DolphinWX/resources/Dolphin.xpm %{buildroot}%{_datadir}/icons/hicolor/32x32/apps/dolphin-emu.xpm
# Still waiting for the day Game;Emulator; is supported
%suse_update_desktop_file -c %name Dolphin 'Gamecube / Wii / Triforce Emulator' %{name} %{name} 'System;Emulator;'
%files
%defattr(0644, root, root, 0755)
%doc license.txt Readme.txt
%attr(0755, root, root) %{_bindir}/%{name}
%{_libdir}/%{name}
%{_datadir}/%{name}
%{_datadir}/icons/hicolor/32x32/apps/dolphin-emu.xpm
%{_datadir}/applications/%{name}.desktop
%changelog