Sophie

Sophie

distrib > * > 2008.0 > x86_64 > by-pkgid > 416009a7fc97af6cad86f415e8b1be92 > files > 5

barrage-1.0.2-2mdv2007.1.src.rpm

%define	name	barrage
%define	version	1.0.2
%define	release	%mkrel 2
%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 X11-devel nas-devel smpeg-devel oggvorbis-devel desktop-file-utils
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 %{buildroot}
%makeinstall_std

install -d %{buildroot}%{_menudir}
cat <<EOF > %{buildroot}%{_menudir}/%{name}
?package(%{name}):command="%{_gamesbindir}/%{name}" \
		icon=%{name}.png \
		needs="x11" \
		section="More Applications/Games/Arcade" \
		title="Barrage"\
		longtitle="%{Summary}" \
		xdg="true"
EOF

install -m644 %{SOURCE11} -D %{buildroot}%{_miconsdir}/%{name}.png
install -m644 %{SOURCE12} -D %{buildroot}%{_iconsdir}/%{name}.png
install -m644 %{SOURCE13} -D %{buildroot}%{_liconsdir}/%{name}.png

desktop-file-install	--vendor="" \
			--remove-category="Application" \
			--remove-category="X-Red-Hat-Base" \
			--add-category="X-MandrivaLinux-MoreApplications-Games-Arcade" \
			--dir %{buildroot}%{_datadir}/applications %{buildroot}%{_datadir}/applications/*


%post
%update_menus

%postun
%clean_menus

%clean
rm -rf %{buildroot}

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


%changelog
* Thu Dec 14 2006 Per Øyvind Karlsen <pkarlsen@mandriva.com> 1.0.2-2mdv2007.0
+ Revision: 96900
- fix buildrequires
- xdg menu
  %%mkrel
  cleanups
- Import barrage



* 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