c88bcc1
%global commit      1351a4fe2ca6b1f3a66c7db0df2ec268ab002d41
003eae0
%global shortcommit %(c=%{commit}; echo ${c:0:7})
c88bcc1
%global date        20220409
003eae0
003eae0
%global corename    stella2014
003eae0
003eae0
Name:           libretro-%{corename}
003eae0
Version:        0
0af2bd2
Release:        0.7.%{date}git%{shortcommit}.%autorelease
003eae0
Summary:        Port of Stella to libretro
003eae0
003eae0
License:        GPLv2
003eae0
URL:            https://github.com/libretro/stella2014-libretro
003eae0
Source0:        %{url}/archive/%{commit}/%{name}-%{version}.%{date}git%{shortcommit}.tar.gz
003eae0
Source1:        https://raw.githubusercontent.com/flathub/org.gnome.Games/master/libretro-cores/%{corename}.libretro
003eae0
003eae0
BuildRequires:  gcc-c++
9a87bf3
BuildRequires:  make
9a87bf3
9a87bf3
Suggests:       gnome-games
9a87bf3
Suggests:       retroarch
003eae0
003eae0
%description
003eae0
%{summary}.
003eae0
49441d3
003eae0
%prep
003eae0
%autosetup -n %{corename}-libretro-%{commit} -p1
003eae0
49441d3
003eae0
%build
003eae0
%set_build_flags
49441d3
%make_build GIT_VERSION=%{shortcommit}
49441d3
003eae0
003eae0
%install
c88bcc1
%make_install         \
c88bcc1
    prefix=%{_prefix} \
c88bcc1
    libdir=%{_libdir} \
c88bcc1
    %{nil}
49441d3
install -Dp -m 0644 %{SOURCE1} %{buildroot}%{_libdir}/libretro/%{corename}.libretro
49441d3
003eae0
003eae0
%files
003eae0
%license stella/license.txt
003eae0
%doc README.md
49441d3
%{_libdir}/libretro/
49441d3
003eae0
003eae0
%changelog
0af2bd2
%autochangelog