From: arvenil Date: Tue, 1 Jan 2008 13:19:34 +0000 (+0000) Subject: - init X-Git-Url: https://git.pld-linux.org/?p=packages%2Fbtanks.git;a=commitdiff_plain;h=52c0907dafecfdda7e21772e2133c62026f2429b - init - release 1 Changed files: btanks.spec -> 1.1 --- 52c0907dafecfdda7e21772e2133c62026f2429b diff --git a/btanks.spec b/btanks.spec new file mode 100644 index 0000000..05d0e74 --- /dev/null +++ b/btanks.spec @@ -0,0 +1,68 @@ +# TODO: +# - pl description and summary +Summary: Fast 2d tank arcade game with multiplayer and split-screen modes +Name: btanks +Version: 0.7.5800 +Release: 1 +License: GPL v2 +Group: X11/Applications/Games +Source0: http://dl.sourceforge.net/btanks/%{name}-%{version}.tar.bz2 +# Source0-md5: 538eadf2b78897620f3ef683a4ea423a +Source1: %{name}.desktop +URL: http://btanks.sourceforge.net/blog/langswitch_lang/en +BuildRequires: OpenAL-devel +BuildRequires: OpenGL-GLU-devel +BuildRequires: SDL_image-devel +BuildRequires: expat-devel +BuildRequires: libsigc++-devel +BuildRequires: lua51-devel +BuildRequires: pkgconfig +BuildRequires: scons +BuildRequires: zlib-devel +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%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 is +fun and dynamic, it has several network modes for deathmatch and +cooperative - what else is needed to have fun with your friends? + +And all is packed and ready for you in Battle Tanks. + +%prep +%setup -q +# Proper name for our lua +sed -e 's/lua5.1/lua51/g' -i SConscript + +%build +%scons \ + resources_dir=%{_datadir}/%{name} \ + lib_dir=%{_libdir} + +%install +rm -rf $RPM_BUILD_ROOT + +install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir},%{_datadir}/%{name},%{_desktopdir},%{_pixmapsdir}} + +install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir} +install bt $RPM_BUILD_ROOT%{_bindir}/%{name} +install *.so $RPM_BUILD_ROOT%{_libdir} +install src/bt.xpm $RPM_BUILD_ROOT%{_pixmapsdir}/%{name}.xpm +cp -r data $RPM_BUILD_ROOT%{_datadir}/%{name} + +# Game is looking for those libs in the datadir folder +ln -s %{_libdir}/libbt_objects.so $RPM_BUILD_ROOT%{_datadir}/%{name}/libbt_objects.so +ln -s %{_libdir}/libbt.so $RPM_BUILD_ROOT%{_datadir}/%{name}/libbt.so + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(644,root,root,755) +%doc ChangeLog README-linux.txt +%attr(755,root,root) %{_bindir}/%{name} +%{_datadir}/%{name} +%{_libdir}/*.so +%{_desktopdir}/%{name}.desktop +%{_pixmapsdir}/%{name}.xpm