%define release %mkrel 1 Summary: “Battle Tanks” is a funny battle on your desk. Name: btanks Version: 0.9.8083 Release: %{release} License: GPLv2+ Group: Games/Arcade URL: http://btanks.sourceforge.net/blog/ Source0: %{name}-%{version}.tar.bz2 Source1: %{name}.desktop Source2: %{name}.png BuildRoot: %{_temppath}/%{name}-%{version}-%{release}-root Requires: mesa Requires: libsmpeg0.4 Requires: libvorbis0 Requires: zlib1 Requires: libSDL1.2_0 Requires: libSDL_image1.2_0 Requires: lua BuildRequires: zlib1-devel BuildRequires: libSDL-devel BuildRequires: scons BuildRequires: liblua-devel BuildRequires: gcc-c++ BuildRequires: libexpat1 BuildRequires: libsmpeg0.4-devel BuildRequires: libvorbis-devel BuildRequires: libSDL_image-devel BuildRequires: mesa-common-devel BuildRequires: desktop-file-utils %description “Battle Tanks” is a funny battle on your desk, where you can choose one of three vehicles and eliminate your enemy using the whole arsenal of weapons. It has original cartoon-like graphics and cool music, it’s fun and dynamic, it has several network modes for deathmatch and cooperative — what else is needed to have fun with your friends? %prep %setup -q %build mkdir -p %{buildroot}/usr scons prefix="%{buildroot}/usr" %install scons install desktop-file-install --dir=$RPM_BUILD_ROOT%{_datadir}/applications %{SOURCE1} mkdir -p $RPM_BUILD_ROOT/%{_docdir}/%{name} mkdir -p $RPM_BUILD_ROOT/%{_datadir}/pixmaps cp -p README* video.txt LICENSE* $RPM_BUILD_ROOT%{_docdir}/%{name} install -p -m 0644 %{SOURCE2} %{buildroot}%{_datadir}/pixmaps/%{name}.png %files %defattr(-,root,root,-) %{_bindir}/btanks %{_bindir}/bted /usr/lib/*so /usr/lib/%{name}/libbt_objects.so %{_datadir}/%{name}/resources.dat %doc README* video.txt LICENSE* %{_datadir}/pixmaps/%{name}.png %{_datadir}/applications/%{name}.desktop %changelog * Thu Apr 2 2010 Johnny A. Solbu - spec cleanup * Wed Mar 31 2010 Olav Dahlum - First package for Mandriva