%define debug_package %{nil} %undefine _auto_set_build_flags %global commit0 6bac5089f3619364a01fbff770627896b8c1deb0 %global shortcommit0 %(c=%{commit0}; echo ${c:0:7}) %global bumpver 1 Name: sgdboop Version: 1.3.1 Release: %{bumpver}.git%{shortcommit0} Summary: Apply custom artwork to Steam, using SteamGridDB. License: Zlib URL: https://github.com/SteamGridDB/SGDBoop Source0: %{url}/archive/%{commit0}.tar.gz BuildRequires: make gcc BuildRequires: libcurl-devel gtk3-devel BuildRequires: desktop-file-utils libappstream-glib Requires: xdg-utils %description SGDBoop is a tool that automatically applies assets from SteamGridDB directly to your Steam library, removing the need to download and set them manually. To Test: https://www.steamgriddb.com/boop %prep %autosetup -n SGDBoop-%{commit0} %build %__make %install %__install -Dm755 linux-release/SGDBoop -t %{buildroot}%{_bindir} %__install -Dm644 linux-release/com.steamgriddb.SGDBoop.desktop -t %{buildroot}%{_datadir}/applications %__install -Dm644 res/com.steamgriddb.SGDBoop.svg -t %{buildroot}%{_datadir}/icons/hicolor/scalable/apps %__install -Dm644 com.steamgriddb.SGDBoop.appdata.xml -t %{buildroot}%{_datadir}/metainfo %check desktop-file-validate %{buildroot}%{_datadir}/applications/com.steamgriddb.SGDBoop.desktop appstream-util validate-relax --nonet %{buildroot}%{_datadir}/metainfo/com.steamgriddb.SGDBoop.appdata.xml %post xdg-mime default com.steamgriddb.SGDBoop.desktop x-scheme-handler/sgdb %files %license LICENSE %doc README.md %{_bindir}/SGDBoop %{_datadir}/applications/com.steamgriddb.SGDBoop.desktop %{_datadir}/icons/hicolor/scalable/apps/com.steamgriddb.SGDBoop.svg %{_datadir}/metainfo/com.steamgriddb.SGDBoop.appdata.xml %changelog %autochangelog