Blame libretro-beetle-wswan.spec

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