Name: tunneler Version: 1.1.1 Release: 1%{?dist} Summary: Clone of legendary Tunneler game Group: Amusements/Games License: GPLv2+ URL: http://users.jyu.fi/~tvkalvas/code/tunneler/ Source0: http://users.jyu.fi/~tvkalvas/code/tunneler/%{name}-%{version}.tar.gz Source1: tunneler.svg Source2: tunneler.desktop BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: desktop-file-utils BuildRequires: SDL-devel %description A clone of legendary game made by Geoffrey Silverton in 1991. In the game two players using the same keyboard and the same screen each control an underground tank. Goal is to find and destroy the opponent's tank. Since only small part of the map is displayed on the split screen, you might actually have some searching to do. %prep %setup -q %build %configure make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/scalable/apps/ install -m 644 -p %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/scalable/apps/ desktop-file-install --vendor=fedora %{SOURCE2} \ --dir=${RPM_BUILD_ROOT}%{_datadir}/applications %clean rm -rf $RPM_BUILD_ROOT %post touch --no-create %{_datadir}/icons/hicolor || : %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : %postun touch --no-create %{_datadir}/icons/hicolor || : %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : %files %defattr(-,root,root,-) %{_bindir}/tunneler %{_datadir}/icons/hicolor/scalable/apps/tunneler.svg %{_datadir}/applications/*.desktop %doc COPYING INSTALL README %changelog * Tue Jan 20 2009 Lubomir Rintel 1.1.1-1 - Initial packaging