## START: Set by rpmautospec ## (rpmautospec version 0.2.6) %define autorelease(e:s:pb:) %{?-p:0.}%{lua: release_number = 15; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{?dist} ## END: Set by rpmautospec %global commit af397ff3d1f208c27f3922cc8f2b8e08884ba893 %global date 20220406 %global shortcommit %(c=%{commit}; echo ${c:0:7}) %global corename desmume2015 Name: libretro-%{corename} Version: 0 Release: 0.10.%{date}git%{shortcommit}.%autorelease Summary: Port of Desmume to libretro ExclusiveArch: i686 x86_64 License: GPLv2 URL: https://github.com/libretro/desmume2015 Source0: %{url}/archive/%{commit}/%{name}-%{version}.%{date}git%{shortcommit}.tar.gz Source1: https://raw.githubusercontent.com/flathub/org.gnome.Games/master/libretro-cores/%{corename}.libretro BuildRequires: gcc-c++ BuildRequires: make Supplements: gnome-games Supplements: retroarch %description Port of Desmume to libretro based on Desmume SVN circa 2015. %prep %autosetup -n %{corename}-%{commit} -p1 %build %set_build_flags %make_build \ -C desmume \ GIT_VERSION=%{shortcommit} \ %{nil} %install %make_install \ -C desmume \ prefix=%{_prefix} \ libdir=%{_libdir} \ %{nil} install -Dp -m 0644 %{SOURCE1} %{buildroot}%{_libdir}/libretro/%{corename}.libretro %files %license desmume/COPYING %doc desmume/dsm.txt %{_libdir}/libretro/ %changelog * Thu Jul 21 2022 Fedora Release Engineering 0-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Tue Apr 26 2022 Artem Polishchuk 0-14 - chore(update): Latest git snapshot * Thu Jan 20 2022 Fedora Release Engineering - 0-0.10.20210816gitcd89fb7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Tue Oct 05 2021 Artem Polishchuk - 0-0.9.20210816gitcd89fb7 - chore(update): Latest git snapshot * Thu Jul 22 2021 Fedora Release Engineering - 0-0.8.20210317gitb6de1b6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Sun May 02 2021 Artem Polishchuk - 0-0.7.20210317gitb6de1b6 - build(update): Latest git snapshot * Tue Jan 26 2021 Fedora Release Engineering - 0-0.6.20200228git93d5789 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Tue Jul 28 2020 Fedora Release Engineering - 0-0.5.20200228git93d5789 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Wed Jun 24 2020 Artem Polishchuk - 0-0.4.20200228git93d5789 - Update to latest git snapshot * Wed Jan 29 2020 Fedora Release Engineering - 0-0.3.20190817gitc27bb71 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Wed Dec 04 2019 Artem Polishchuk - 0-0.2.20190817gitc27bb71 - Remove 'libretro-gtk-0_14-0' dependency * Mon Oct 07 2019 Artem Polishchuk - 0-0.1.20170817gitc27bb71 - Initial package