File kega-fusion.spec of Package kega-fusion
#
# spec file for package
#
# 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 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/
#
# norootforbuild
Name: kega-fusion
Version: 3.63
Release: 6
License: SUSE-Freeware
Summary: Emulator for Sega Megadrive(Genesis)/32X/MegaCD(SegaCD)/Master System/Game Gear
Url: https://www.carpeludum.com/kega-fusion/
Group: System/Emulators/Other
Source: https://www.carpeludum.com/download/Fusion363x.tar.gz
Source1: https://www.carpeludum.com/download/PluginsLinux.tar.gz
Source2: kega-fusion.png
Source3: kega-fusion.sh
Source4: kega-fusion.desktop
%ifarch x86_64
Requires: Mesa-32bit libgthread-2_0-0-32bit Mesa-libGLU1-32bit Mesa-libGL1-32bit libgtk-2_0-0-32bit libSM6-32bit alsa-plugins-pulse-32bit
%else
Requires: Mesa
%endif
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Fusion is a Sega SG1000, SC3000, SF7000, Master System, Game Gear, Genesis/Megadrive, SVP, Pico, SegaCD/MegaCD and 32X emulator for Win9x/ME/2000/XP/Vista/Win7, Mac OSX(Intel), and Linux.
%prep
%setup -q -n Fusion
%build
%install
mkdir -p $RPM_BUILD_ROOT/usr/bin
mkdir -p $RPM_BUILD_ROOT/usr/lib/kega-fusion
mkdir -p $RPM_BUILD_ROOT/usr/share/pixmaps
mkdir -p $RPM_BUILD_ROOT/usr/share/applications
install -m 755 -D Fusion $RPM_BUILD_ROOT/usr/bin
install -m 755 -D %{SOURCE3} $RPM_BUILD_ROOT/usr/bin
tar vxfz %{SOURCE1} --directory $RPM_BUILD_ROOT/usr/lib/kega-fusion
install -m 444 -D %{SOURCE2} $RPM_BUILD_ROOT/usr/share/pixmaps
install -m 444 -D %{SOURCE4} $RPM_BUILD_ROOT/usr/share/applications
%files
%defattr(-,root,root)
/usr/bin/Fusion
%attr(555,root,root)/usr/bin/kega-fusion.sh
/usr/lib/kega-fusion
/usr/share/pixmaps/kega-fusion.png
%attr(644,root,root)/usr/share/applications/kega-fusion.desktop
%changelog
* Thu Jan 02 2014 David Lara <dvlara@gmail.com> 3.63-6
- Added (more) missing dependencies for x86_64 systems
* Sun Jul 28 2013 David Lara <dvlara@gmail.com> 3.63-5
- Added missing dependency for x86_64 systems
* Sun Sep 16 2012 David Lara <dvlara@gmail.com> 3.63-4
- Removed oxygen-gtk package from Requires
- Added some dependencies (32 bits packages) to 64bits build
* Thu Apr 26 2012 David Lara <dvlara@gmail.com> 3.63-2
- Fixed desktop file
* Wed Apr 25 2012 David Lara <dvlara@gmail.com> 3.63-1
- First release for openSUSE