%global commit 925cb8c77af1678ceab24f04c2790cb95389def1
%global shortcommit %(c=%{commit}; echo ${c:0:7})
%global date 20190914
%global corename beetle-wswan
Name: libretro-%{corename}
Version: 0
Release: 0.1.%{date}git%{shortcommit}%{?dist}
Summary: Standalone port of Mednafen WonderSwan to libretro, itself a fork of Cygne
License: GPLv2
URL: https://github.com/libretro/beetle-wswan-libretro
Source0: %{url}/archive/%{commit}/%{name}-%{version}.%{date}git%{shortcommit}.tar.gz
Source1: https://raw.githubusercontent.com/flathub/org.gnome.Games/master/libretro-cores/mednafen_wswan.libretro
BuildRequires: gcc-c++
Requires: libretro-gtk-0_14-0%{?_isa}
Recommends: gnome-games%{?_isa}
%description
%{summary}.
%prep
%autosetup -n %{corename}-libretro-%{commit} -p1
%build
%set_build_flags
%make_build
%install
%make_install prefix=%{_prefix} libdir=%{_libdir}
install -Dpm0644 %{SOURCE1} %{buildroot}%{_libdir}/libretro/mednafen_wswan.libretro
%files
%license COPYING
%{_libdir}/libretro
%changelog
* Tue Oct 08 2019 Artem Polishchuk <ego.cordatus@gmail.com> - 0-0.1.20190914git925cb8c
- Initial package