Name: alexvsbus Summary: Help Alex catch the bus on time! License: GPL-3.0-or-later Version: 2024.11.21.0 Release: 2%{?dist} URL: https://github.com/M374LX/alexvsbus Source0: %{URL}/archive/%{version}/%{name}-%{version}.tar.gz Source10: alexvsbus.metainfo.xml Patch0: alexvsbus--unbundle-raylib.patch Patch1: alexvsbus--sizeof.patch BuildRequires: desktop-file-utils BuildRequires: gcc BuildRequires: libappstream-glib 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 Requires: hicolor-icon-theme %description data Data files (graphics, sounds, etc.) required to play Alex vs Bus: The Race. %prep %autosetup -p1 rm -rf raylib/ # Prefer generating a position-independent executable sed -e 's/ -fPIC / -fPIE -pie /' -i Makefile %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/ install -m 755 -d %{buildroot}%{_metainfodir} install -m 644 %{SOURCE10} %{buildroot}%{_metainfodir}/%{name}.metainfo.xml %check desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/%{name}.metainfo.xml %files %license LICENSE.txt %license docs/licenses/GPL-3.0.txt %doc docs/Authors.md %doc docs/ConfigFile.md %doc docs/LevelFileFormat.md %doc docs/News.md %doc docs/TechnicalConcepts.md %doc docs/manual/ %{_bindir}/%{name} %{_datadir}/applications/%{name}.desktop %{_metainfodir}/%{name}.metainfo.xml %files data %license docs/licenses/CC-BY-SA-4.0.txt %{_datadir}/games/ %{_datadir}/icons/hicolor/**/apps/%{name}.png %changelog * Sat Mar 29 2025 Artur Frenszek-Iwicki - 2024.11.21.0-2 - Add an AppStream metainfo file - Include full license text in the packages - Include documentation in the package * Wed Feb 05 2025 Artur Frenszek-Iwicki - 2024.11.21.0-1 - Initial packaging