File gens-opengl.spec of Package gens-opengl
#
# spec file for package gens-opengl
#
# Copyright (c) 2016 SUSE LINUX 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: gens-opengl
Version: 2.15.5
Release: 0
Summary: Sega Mega Drive (Genesis), 32X, and Mega CD Emulator with OpenGL support
License: GPL-2.0
Group: System/Emulators/Other
Url: http://www.gens.me
Source0: https://sourceforge.net/projects/gens/files/Gens Source Code/Gens %{version}/gens-%{version}.tar.gz
Patch0: %{name}-rpmlint.patch
Patch1: fix-asneeded.patch
BuildRequires: SDL-devel
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: gtk2-devel
BuildRequires: nasm
BuildRequires: unzip
BuildRequires: update-desktop-files
BuildRequires: xorg-x11-Mesa-devel
Exclusivearch: %{ix86}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Sega Mega Drive (Genesis), 32X, and Mega CD emulator with a GUI with many
features. This version supports OpenGL output and use of real CDs.
%prep
%setup -q -n gens-%{version}
%patch0 -p1
%patch1
%build
autoreconf -fi
%configure \
--program-suffix=-opengl \
--datadir=%{_datadir}/%{name}
make %{?_smp_mflags}
%install
make %{?_smp_mflags} DESTDIR=%{buildroot} install
install -d %{buildroot}%{_datadir}/pixmaps
ln -s %{_datadir}/%{name}/gens/gens_small.png %{buildroot}%{_datadir}/pixmaps/gens-opengl.png
%suse_update_desktop_file -n -c "%{name}" 'Gens OpenGL' 'SEGA Genesis and 32x emulator' "%{name}" gens-opengl.png System Emulator
%files
%defattr(-,root,root)
%doc COPYING README
%{_bindir}/gens-opengl
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/gens-opengl.png
%{_datadir}/%{name}
%changelog