Blame libretro-beetle-wswan.spec

1df3076
%global commit  a0ddcd3f084f5b4eb06acb6e03b8c4707a2f6123
1df3076
%global date    20230526
821a6d9
%global shortcommit %(c=%{commit}; echo ${c:0:7})
821a6d9
e4490e7
%global corename beetle-wswan
821a6d9
821a6d9
Name:           libretro-%{corename}
821a6d9
Version:        0
6316275
Release:        0.8.%{date}git%{shortcommit}.%autorelease
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++
97ff953
BuildRequires:  make
e4490e7
51c2a6e
Supplements:    gnome-games
51c2a6e
Supplements:    retroarch
821a6d9
821a6d9
%description
821a6d9
%{summary}.
821a6d9
d2dcf75
821a6d9
%prep
fbd5073
%autosetup -n %{corename}-libretro-%{commit}
821a6d9
d2dcf75
821a6d9
%build
821a6d9
%set_build_flags
d2dcf75
%make_build GIT_VERSION=%{shortcommit}
d2dcf75
821a6d9
821a6d9
%install
db2bacd
%make_install         \
e4490e7
    libdir=%{_libdir} \
97ff953
    prefix=%{_prefix} \
97ff953
    %{nil}
e4490e7
install -Dp -m0644 %{SOURCE1} %{buildroot}%{_libdir}/libretro/mednafen_wswan.libretro
d2dcf75
821a6d9
821a6d9
%files
821a6d9
%license COPYING
e4490e7
%{_libdir}/libretro/
821a6d9
d2dcf75
821a6d9
%changelog
6316275
%autochangelog