Name: davegnukem Summary: Side-view scrolling 2D shooter # README.md says simply "MIT license or GPL". # The debian/copyright file says "Expat or GPL-2 or GPL-3". License: GPL-2.0-or-later OR MIT Version: 1.0.3 Release: 2%{?dist} URL: https://djoffe.com/gnukem/ Source0: https://github.com/davidjoffe/dave_gnukem/archive/%{version}/dave_gnukem-%{version}.tar.gz Source1: https://github.com/davidjoffe/gnukem_data/archive/%{version}/gnukem_data-%{version}.tar.gz # AppStream metainfo file and a 128x128 icon. # Added to the repo after v1.0.3 was released. Source90: https://raw.githubusercontent.com/davidjoffe/dave_gnukem/72d05572ef3dbdff9d317df686f44e73a18bc340/debian/appstream/com.djoffe.davegnukem.metainfo.xml Source91: https://raw.githubusercontent.com/davidjoffe/dave_gnukem/72d05572ef3dbdff9d317df686f44e73a18bc340/debian/icons/hicolor/128x128/apps/davegnukem.png # Backport some upstream improvements to the Makefile Patch0: gnukem--Makefile.patch # Fix build on big-endian architectures Patch1: gnukem--BigEndian.patch %global dave_make_vars PREFIX="%{_prefix}" BIN_DIR="%{_bindir}" DATA_DIR="%{_datadir}/%{name}/" BuildRequires: desktop-file-utils BuildRequires: gcc-c++ BuildRequires: libappstream-glib BuildRequires: make BuildRequires: SDL2-devel BuildRequires: SDL2_mixer-devel Requires: %{name}-data = %{version}-%{release} %description Dave Gnukem is a retro-style 2D scrolling platform shooter similar to, and inspired by, Duke Nukem 1 (~1991). The original Duke Nukem 1 had 16-color EGA 320x200 graphics; the aim here is 'similar but different' gameplay and 'look and feel'. It is kind of a parody of the original. %package data Summary: Data files for Dave Gnukem BuildArch: noarch # Check debian/copyright for a detailed list License: CC0-1.0 AND CC-BY-3.0 AND (GPL-2.0-or-later OR MIT) Requires: hicolor-icon-theme %description data This package contains data files (graphics, sounds, et cetera) required to play Dave Gnukem. %prep %setup -q -n dave_gnukem-%{version} -a 1 mv ./gnukem_data-%{version} ./data mkdir -p debian/appstream/ cp -a %{SOURCE90} debian/appstream/ mkdir -p debian/icons/hicolor/128x128/apps/ cp -a %{SOURCE91} debian/icons/hicolor/128x128/apps/ %autopatch -p1 %build %make_build %{dave_make_vars} %install %make_install %{dave_make_vars} %check desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop appstream-util validate-relax --nonet %{buildroot}%{_datadir}/metainfo/com.djoffe.%{name}.metainfo.xml %files %license COPYING MIT-LICENSE.txt %doc %{_docdir}/%{name}/ %{_bindir}/%{name} %{_datadir}/applications/%{name}.desktop %{_datadir}/metainfo/com.djoffe.%{name}.metainfo.xml %{_mandir}/man6/%{name}.6* %files data %doc %{_docdir}/%{name}-data/ %{_datadir}/icons/hicolor/*/apps/%{name}.png %{_datadir}/%{name} %changelog * Sun Aug 31 2025 Artur Frenszek-Iwicki - 1.0.3-2 - Backport the AppStream metainfo file and larger icon * Mon Aug 18 2025 Artur Frenszek-Iwicki - 1.0.3-1 - Initial packaging