File ninvaders.spec of Package ninvaders
## norootforbuild
Name: ninvaders
BuildRequires: ncurses-devel
URL: http://ninvaders.sourceforge.net/
Version: 0.1.1
Release: 0
Group: Amusements/Games/Action/Arcade
Source: ninvaders-%{version}.tar.gz
# PATCH-FIX-OPENSUSE buffer_owerflow.patch
# fix buffer owerflow that leads to an build error in Leap 15+
Patch: buffer_owerflow.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Summary: Space Invaders based on ncurses
License: GPL-2.0-or-later
Requires: ncurses
%description
Space Invaders game based on ncurses.
Authors:
--------
Thomas Dettbarn <dettus@matrixx-bielefeld.de>
Alexander Hollinger <alexander.hollinger@gmx.net>
Sebastian Gutsfeld <segoh@gmx.net>
Matthias Thar <hiast2@compuserve.de>
%prep
%setup
%patch -p1
%build
export CFLAGS="$RPM_OPT_FLAGS"
make
%install
[ "$RPM_BUILD_ROOT" != "" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT;
mkdir -p $RPM_BUILD_ROOT/usr/bin
install -m 755 nInvaders $RPM_BUILD_ROOT/usr/bin/nInvaders
%clean
[ "$RPM_BUILD_ROOT" != "" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT;
%files
%defattr (-,root,root)
%doc README gpl.txt ChangeLog
/usr/bin/nInvaders
%changelog -n partimage
* Mon Dec 03 2018 - cwh@suse.de
- Patch buffer owerflow that leads to an build error in Leap 15+
* Wed Jun 23 2004 - cwh@suse.de
- initial release