A new user interface for you! Read more...

File afternoonstalker.spec of Package afternoonstalker

# Now for the meat of the spec file
#
Name:			afternoonstalker
Version:		1.1.4
Summary:		A Night Stalker(TM) clone
License:		GPLv2
URL:			http://sarrazip.com/dev/%{name}.html
Group:			Amusements/Games
Release:		1
Source0:		%{name}-%{version}.tar.gz
Patch0:			%{name}-1.1.4_desktop.diff
BuildRoot:		%{_tmppath}/%{name}-%{version}-%{release}-buildroot
BuildRequires:		desktop-file-utils
BuildRequires:		gcc-c++
BuildRequires:		libtool
BuildRequires:		pkg-config
BuildRequires:		update-desktop-files
BuildRequires:		SDL-devel
BuildRequires:		SDL_image-devel
BuildRequires:		SDL_mixer-devel
BuildRequires:		flatzebra-devel
Requires:		flatzebra

%description
Clone of the Intellivision game Night Stalker.  You are in a
two-dimensional maze in which you are attacked by robots that
shoot at you and that you must shoot down.  You must pick up a
gun somewhere in the maze in order to have a few bullets to shoot.
Avoid the spiders and the bats, which can paralyze you long enough
for a robot to come and shoot you.  The bunker in the center is
your only protection.

%prep
%setup -q
%patch0 -p1

%build
#%suse_update_config -f
%configure
%{__make} %{?jobs:-j%jobs}

%install
make install DESTDIR="%{buildroot}" INSTALL="%{__install} -p"
rm -rf %{buildroot}%{_datadir}/doc/%{name}-%{version}
rm %{buildroot}/%{_datadir}/applications/*.desktop

install -D -m644 src/%{name}.desktop %{buildroot}/%{_datadir}/applications/%{name}.desktop
%suse_update_desktop_file -i %{name} -n

%clean
%{__rm} -rf %{buildroot}
%{__rm} -rf %{_builddir}/%{name}-%{version}-%{release}-buildroot

%files
%defattr(-,root,root)
%doc AUTHORS ChangeLog COPYING INSTALL NEWS README THANKS TODO
%{_datadir}/applications/*%{name}.desktop
%{_bindir}/*
%{_datadir}/%{name}
%{_datadir}/pixmaps/*
%{_datadir}/sounds/%{name}
%{_mandir}/man*/*