File mednafen.spec of Package mednafen

#
# spec file for package mednafen
#
# Copyright (c) 2017 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:         mednafen
License:      GPL-2.0+
Group:        System/Emulators/Other
Version:      0.9.45.1
Release:      0
Summary:      Multiple video game console emulator
Source:       https://mednafen.github.io/releases/files/%{name}-%{version}.tar.xz
BuildRequires:gcc-c++ zlib-devel Mesa-libGL-devel libSDL-devel libcdio-devel libsndfile-devel libjack-devel
BuildRoot:    %{_tmppath}/%{name}-%{version}-build
URL:          https://mednafen.github.io

%description
Mednafen is a command-line-driven multi-system emulator utilizing
OpenGL and SDL. Mednafen has the ability to remap hotkey functions
and virtual system inputs to a keyboard, a joystick, or both
simultaneously. Save states are supported, as is real-time game
rewinding. Screen snapshots may be taken, in the PNG file format, at
the press of a button. Mednafen can record audiovisual movies in the
QuickTime file format, with several different lossless codecs
supported.

Nintendo: NES, FDS, Game Boy (Color|Advance), Super Nintendo, Virtual Boy.
Sega: Master System, Game Gear, Genesis/MegaDrive, Saturn (x86_64 only).
Nec: TurboGrafx-16/PC Engine (CD), SuperGrafx, PC-FX.
Sony: PlayStation.
Atari: Lynx.
SNK: Neo Geo Poket (Color).
Bandai: Wonderswan (Color).

%prep
%setup -q -n %name

%build
export CFLAGS="%{optflags} -O3 -fomit-frame-pointer -pipe -DNDEBUG"
export CXXFLAGS="$CFLAGS"
%configure
make %{?_smp_mflags}

%install
%make_install
%find_lang %{name}

%files -f %{name}.lang
%defattr(-,root,root)
%{_bindir}/%{name}

%changelog