Name: alexvsbus Summary: Help Alex catch the bus on time! License: GPL-3.0-or-later Version: 2024.11.21.0 Release: 1%{?dist} URL: https://github.com/M374LX/alexvsbus Source0: %{URL}/archive/%{version}/%{name}-%{version}.tar.gz Patch0: alexvsbus--unbundle-raylib.patch Patch1: alexvsbus--sizeof.patch BuildRequires: gcc BuildRequires: make BuildRequires: raylib-devel BuildRequires: SDL2-devel BuildRequires: stb_image-devel Requires: %{name}-data = %{version}-%{release} %description Alex vs Bus: The Race is a free and open source platform runner game in which a man who depends on public transportation in a developing country needs to run in order to catch the bus, or else he will have to wait an eternity for the next bus to come. %package data Summary: Data files for Alex vs Bus: The Race License: CC-BY-SA-4.0 BuildArch: noarch %description data Data files (graphics, sounds, etc.) required to play Alex vs Bus: The Race. %prep %autosetup -p1 rm -rf raylib/ %build %make_build SDL=1 %install install -m 755 -d %{buildroot}%{_bindir} install -m 755 %{name} %{buildroot}%{_bindir}/ install -m 755 -d %{buildroot}%{_datadir}/games/ cp -a assets %{buildroot}%{_datadir}/games/%{name} for ICON_SIZE in 32 128; do ICON_DIR="%{buildroot}%{_datadir}/icons/hicolor/${ICON_SIZE}x${ICON_SIZE}/apps" install -m 755 -d "${ICON_DIR}" install -m 644 "icons/icon${ICON_SIZE}.png" "${ICON_DIR}/%{name}.png" done install -m 755 -d %{buildroot}%{_datadir}/applications install -m 644 icons/%{name}.desktop %{buildroot}%{_datadir}/applications/ %files %license LICENSE.txt %{_bindir}/%{name} %{_datadir}/applications/%{name}.desktop %files data %{_datadir}/games/ %{_datadir}/icons/hicolor/**/apps/%{name}.png %changelog * Wed Feb 05 2025 Artur Frenszek-Iwicki - 2024.11.21.0-1 - Initial packaging