## START: Set by rpmautospec ## (rpmautospec version 0.3.5) ## RPMAUTOSPEC: autochangelog ## END: Set by rpmautospec %global kodi_addon game.libretro %global kodi_addon_license GPL-2.0-or-later %global kodi_version 22 %global kodi_codename Piers Name: kodi-%(tr "." "-" <<<%{kodi_addon}) Epoch: 1 Version: 22.0 Release: 101%{?dist} Summary: Compatibility add-on for Kodi allowing Libretro cores as game add-ons License: %{kodi_addon_license} URL: https://github.com/kodi-game/%{kodi_addon}/ Source0: %{url}/archive/%{version}-%{kodi_codename}/%{kodi_addon}-%{version}.tar.gz Patch0: game-libretro.gcc.patch BuildRequires: cmake BuildRequires: gcc-c++ BuildRequires: kodi-devel >= %{kodi_version} BuildRequires: libappstream-glib BuildRequires: pkgconfig(tinyxml) Requires: kodi >= %{kodi_version} ExcludeArch: %{power64} %description This Kodi add-on provides a wrapper that allows Libretro cores to be loaded as Kodi game add-ons. Libretro cores are shared libraries that use the Libretro API, so the wrapper is responsible for translating function calls between the Libretro API and the Game API. %prep %autosetup -p1 -n %{kodi_addon}-%{version}-%{kodi_codename} %build %cmake -DENABLE_INTERNAL_LIBRETROCOMMON=ON -DENABLE_INTERNAL_RCHEEVOS=ON %cmake_build cat > %{name}.metainfo.xml < %{name} kodi.desktop Kodi - Libretro Compatibility %{summary} %{url} https://kodi.wiki/view/Games CC0-1.0 %{kodi_addon_license} EOF %install %cmake3_install install -Dpm 0644 %{name}.metainfo.xml %{buildroot}%{_metainfodir}/%{name}.metainfo.xml %check appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/%{name}.metainfo.xml %files %license LICENSE.md %{_libdir}/kodi/addons/%{kodi_addon}/ %{_datadir}/kodi/addons/%{kodi_addon}/ %{_metainfodir}/%{name}.metainfo.xml %changelog * Fri Jul 28 2023 John Doe - 1:20.1.0-1 - Uncommitted changes