Name:           nibbles
Version:        1.0
Release:        1%{?dist}
Summary:        3D snake arcade game

License:        GPL-3.0-or-later
URL:            https://code.bkeys.org/Game_Projects/nibbles/
Source0:        https://code.bkeys.org/Game_Projects/nibbles/archive/nibbles-1.0.tar.gz
Patch0:         nibbles-default-flags.patch

BuildRequires:  freeglut-devel SDL2-devel cmake gcc gcc-c++

%description  
Game I made in 2015 as my first stepping stones into OpenGL game development. It's a simple rendition of the classic arcade game nibbles. Collect the red fruit to increase your score while avoiding green pot obstacles. Use WASD to move the snake around.

%prep
%autosetup -p1 -n %{name}

%build
%cmake
%cmake_build

%install
mkdir -p %{buildroot}%{_bindir}
install -m 755 bin/nibbles %{buildroot}/%{_bindir}/nibbles

%files
%{_bindir}/%{name}

%doc README AUTHORS
%license COPYING


%changelog
* Tue Sep 06 2022 Brigham Keys, Esq. <bkeys@bkeys.org> 1.0
- Initial package for Fedora.