%global forgeurl https://github.com/libretro/%{corename}-libretro
%global commit 673c3d924ff33d71c6a342b170eff5359244df1f
%global corename beetle-ngp
Name: libretro-%{corename}
Version: 0
%forgemeta
Release: 0.10.%autorelease
Summary: Standalone port of Mednafen NGP to the libretro API, itself a fork of Neopop
License: GPL-2.0-only
URL: %{forgeurl}
Source0: %{forgesource}
Source1: https://raw.githubusercontent.com/flathub/org.gnome.Games/master/libretro-cores/mednafen_ngp.libretro
BuildRequires: gcc-c++
BuildRequires: make
Supplements: gnome-games
Supplements: retroarch
%description
%{summary}.
%prep
%forgeautosetup -p1
%build
%set_build_flags
%make_build GIT_VERSION=%{shortcommit}
%install
%make_install \
prefix=%{_prefix} \
libdir=%{_libdir} \
%{nil}
install -m 0644 -Dp %{SOURCE1} %{buildroot}%{_libdir}/libretro/mednafen_ngp.libretro
%files
%license COPYING
%doc readme.md
%{_libdir}/libretro/
%changelog
%autochangelog