Sophie

Sophie

distrib > Mandriva > 2006.0 > i586 > by-pkgid > ac47810b8383050404626e50ef6a53bc > files > 5

barrage-1.0.2-1mdk.src.rpm

%define	name	barrage
%define	version	1.0.2
%define	release	1mdk
%define	Summary	A rather violent action game

Name:		%{name}
Version:	%{version}
Release:	%{release}
URL:		http://lgames.sourceforge.net/index.php?project=Barrage
Source0:	%{name}-%{version}.tar.bz2
Source11:	%{name}-16x16.png
Source12:	%{name}-32x32.png
Source13:	%{name}-48x48.png
License:	GPL
Group:		Games/Arcade
Summary:	%{Summary}
BuildRequires:	SDL_mixer-devel XFree86-devel nas-devel smpeg-devel oggvorbis-devel
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-buildroot

%description
Barrage is a rather violent action game with the objective to kill
and destroy as many targets as possible within 3 minutes. The player
controls a gun that may either fire small or large grenades at
soldiers, jeeps and tanks. It is a very simple gameplay though it is
not that easy to get high scores.

%prep
%setup -q

%build
%configure2_5x	--bindir=%{_gamesbindir}
%make

%install
%{__rm} -rf $RPM_BUILD_ROOT
%makeinstall_std

%{__install} -d $RPM_BUILD_ROOT%{_menudir}
%{__cat} <<EOF > $RPM_BUILD_ROOT%{_menudir}/%{name}
?package(%{name}):command="%{_gamesbindir}/%{name}" \
		icon=%{name}.png \
		needs="x11" \
		section="More Applications/Games/Arcade" \
		title="Barrage"\
		longtitle="%{Summary}"
EOF

%{__install} -m644 %{SOURCE11} -D $RPM_BUILD_ROOT%{_miconsdir}/%{name}.png
%{__install} -m644 %{SOURCE12} -D $RPM_BUILD_ROOT%{_iconsdir}/%{name}.png
%{__install} -m644 %{SOURCE13} -D $RPM_BUILD_ROOT%{_liconsdir}/%{name}.png

#(peroyvind) move kde menu item to the right place
%{__install} -d $RPM_BUILD_ROOT%{_datadir}/applnk/Games/Arcade
mv $RPM_BUILD_ROOT%{_datadir}/applications/%{name}.desktop $RPM_BUILD_ROOT%{_datadir}/applnk/Games/Arcade

%post
%update_menus

%postun
%clean_menus

%clean
%{__rm} -rf $RPM_BUILD_ROOT

%files
%defattr(644,root,root,755)
%doc AUTHORS BUGS ChangeLog INSTALL NEWS README TODO
%{_gamesdatadir}/%{name}
%{_iconsdir}/%{name}.png
%{_liconsdir}/%{name}.png
%{_miconsdir}/%{name}.png
%{_menudir}/%{name}
%{_datadir}/applnk/Games/Arcade/%{name}.desktop
%defattr(755,root,root,755)
%{_gamesbindir}/*

%changelog
* Wed Feb 16 2005 Per Øyvind Karlsen <peroyvind@linux-mandrake.com> 1.0.2-1mdk
- 1.0.2

* Fri May 21 2004 Per Øyvind Karlsen <peroyvind@linux-mandrake.com> 1.0.1-2mdk
- change summary macro to avoid possible conflicts if we were to build debug package
- fix buildrequires
- don't bzip2 icons in src.rpm

* Tue Apr 29 2003 Per Øyvind Karlsen <peroyvind@sintrax.net> 1.0.1-1mdk
- 1.0.1
- added new kde menu item

* Thu Apr 24 2003 Per Øyvind Karlsen <peroyvind@sintrax.net> 1.0-2mdk
- fix url
- remove non-existing configure options

* Thu Apr 24 2003 Per Øyvind Karlsen <peroyvind@sintrax.net> 1.0-1mdk
- initial mdk release