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 https://bugs.opensuse.org
#

Name:          mednafen
License:       GPL-2.0+
Group:         System/Emulators/Other
Version:       0.9.48
Release:       0
Summary:       Multiple video game console emulator
Source:        https://mednafen.github.io/releases/files/%{name}-%{version}.tar.xz
BuildRequires: gcc-c++ zlib-devel alsa-devel Mesa-libGL-devel libSDL-devel libcdio-devel libsndfile-devel libjack-devel
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).

%package doc
Summary:       Additional Package Documentation
Group:         Documentation/Other
BuildArch:     noarch

%description doc
This package contains optional documentation provided in addition to this package's base documentation.

%{lang_package}

%prep
%setup -qn %{name}

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

%install
%make_install
%find_lang %{name}

%files
%defattr(-,root,root)
%{_bindir}/%{name}
%doc ChangeLog TODO

%files doc
%defattr(-,root,root)
%doc Documentation/?*.{css,def,html,png,txt}

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

%changelog
openSUSE Build Service is sponsored by