File gens.spec of Package gens
#
# spec file for package gens
#
# Copyright (c) 2018 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
Version: 2.15.5
Release: 0
Summary: Sega Mega Drive (Genesis), 32X, and Mega CD Emulator
License: GPL-2.0-only
Group: System/Emulators/Other
URL: http://sourceforge.net/projects/gens/
Source0: %{name}-%{version}.tar.gz
Patch0: gens-libgl.patch
Patch1: gens-rpmlint.patch
BuildRequires: SDL-devel
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: gtk2-devel
BuildRequires: nasm
BuildRequires: update-desktop-files
ExclusiveArch: %{ix86}
%description
Sega Mega Drive (Genesis), 32X, and Mega CD emulator with
a GUI with many features.
%prep
%setup -q
%patch0
%patch1
%build
autoreconf -fi
%configure
make %{?_smp_mflags}
%install
%make_install
install -d %{buildroot}%{_datadir}/pixmaps
ln -s %{_datadir}/gens/gens_small.png %{buildroot}%{_datadir}/pixmaps/gens.png
%suse_update_desktop_file -n -c "%{name}" 'Gens' 'SEGA Genesis and 32x emulator' "%{name}" gens.png System Emulator
%files
%{_bindir}/gens
%{_datadir}/applications/gens.desktop
%{_datadir}/pixmaps/gens.png
%{_datadir}/gens
%changelog