%define pkgver %(echo %version | cut -d. -f4) Name: alephone Epoch: 1 Version: 1.8.1.20240513 Release: 1mamba Summary: 3D first-person shooter game Group: Applications/Games Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: https://alephone.lhowon.org/ Source0: https://github.com/Aleph-One-Marathon/alephone/releases/download/release-%{pkgver}/AlephOne-%{pkgver}.tar.bz2 Source1: alephone.png Patch0: alephone-1.8.1.20240513-miniupnpc-2.2.8.patch License: GPL ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel BuildRequires: libSDL2-devel BuildRequires: libavcodec-devel BuildRequires: libavformat-devel BuildRequires: libavutil-devel BuildRequires: libboost-devel BuildRequires: libcurl-devel BuildRequires: libgcc BuildRequires: libglu-devel BuildRequires: libglvnd-devel BuildRequires: libminiupnpc-devel BuildRequires: libopenal-devel BuildRequires: libpng-devel BuildRequires: libsdl2_image-devel BuildRequires: libsdl2_net-devel BuildRequires: libsdl2_ttf-devel BuildRequires: libsndfile-devel BuildRequires: libstdc++6-devel BuildRequires: libswresample-devel BuildRequires: libswscale-devel BuildRequires: libz-devel BuildRequires: libzzip-devel ## AUTOBUILDREQ-END BuildRequires: libminiupnpc-devel >= 0:2.2.8-1mamba Requires: alephone-data Provides: AlephOne Obsoletes: AlephOne < 1:1.4 %description Aleph One is an Open Source 3D first-person shooter game, based on the game Marathon 2 by Bungie Software. It is set in a Sci-Fi universe dominated by deviant computer AIs and features a well thought-out plot. %debug_package %prep %setup -q -n AlephOne-%{pkgver} %patch 0 -p1 %build export PKG_CONFIG_PATH="%{_libdir}/ffmpeg4/pkgconfig" %configure %make %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %makeinstall %{__mkdir_p} %{buildroot}%{_datadir}/pixmaps install -m 644 %{S:1} %{buildroot}%{_datadir}/pixmaps/alephone.png %{__mkdir_p} %{buildroot}%{_datadir}/applications cat > %{buildroot}%{_datadir}/applications/alephone.desktop << EOF [Desktop Entry] Encoding=UTF-8 Name=AlephOne Comment=An open source version of Marathon Infinity Exec=/usr/bin/alephone -g -m Terminal=false Icon=/usr/share/pixmaps/alephone.png Type=Application Categories=Application;Game; EOF %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %files %defattr(-,root,root) %{_bindir}/alephone %{_datadir}/pixmaps/alephone.png %{_datadir}/applications/alephone.desktop %{_datadir}/mime/packages/alephone.xml %dir %{_datadir}/AlephOne %{_datadir}/AlephOne/* %{_datadir}/icons/hicolor/*/mimetypes/application-x-alephone-*.png %{_datadir}/icons/hicolor/*/mimetypes/text-x-alephone-mml.png %{_mandir}/man6/alephone.6* %doc AUTHORS COPYING %changelog * Wed Jun 26 2024 Silvan Calarco 1.8.1.20240513-1mamba - update to 1.8.1.20240513 * Sun Jan 23 2022 Silvan Calarco 1.5.20220115-1mamba - update to 1.5.20220115 * Thu Dec 23 2021 Silvan Calarco 1.4.20210408-1mamba - update to 1.4.20210408 * Sat Apr 07 2012 Ercole 'ercolinux' Carpanetto 20120128-1mamba - update to version 20120128 * Wed Nov 23 2011 Ercole 'ercolinux' Carpanetto 20110731-1mamba - update to version of 31-07-2011 * Fri Aug 08 2008 gil 20070401-1mamba - added file desktop - fixed buildrequires AlephOne-data