2 # - pl description and summary
3 Summary: Fast 2d tank arcade game with multiplayer and split-screen modes
8 Group: X11/Applications/Games
9 Source0: http://dl.sourceforge.net/btanks/%{name}-%{version}.tar.bz2
10 # Source0-md5: 538eadf2b78897620f3ef683a4ea423a
11 Source1: %{name}.desktop
12 URL: http://btanks.sourceforge.net/blog/langswitch_lang/en
13 BuildRequires: OpenAL-devel >= 0.0.8
14 BuildRequires: OpenGL-GLU-devel
15 BuildRequires: SDL_image-devel
16 BuildRequires: expat-devel
17 BuildRequires: libsigc++-devel
18 BuildRequires: lua51-devel
19 BuildRequires: pkgconfig
21 BuildRequires: zlib-devel
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 Battle Tanks is a funny battle on your desk, where you can choose one
26 of three vehicles and eliminate your enemy using the whole arsenal of
27 weapons. It has original cartoon-like graphics and cool music, it is
28 fun and dynamic, it has several network modes for deathmatch and
29 cooperative - what else is needed to have fun with your friends?
31 And all is packed and ready for you in Battle Tanks.
35 # Proper name for our lua
36 sed -e 's/lua5.1/lua51/g' -i SConscript
37 sed -e 's/-O3 //g' -i SConstruct
41 resources_dir=%{_datadir}/%{name} \
45 rm -rf $RPM_BUILD_ROOT
47 install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir},%{_datadir}/%{name},%{_desktopdir},%{_pixmapsdir}}
49 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
50 install bt $RPM_BUILD_ROOT%{_bindir}/%{name}
51 install *.so $RPM_BUILD_ROOT%{_libdir}
52 install src/bt.xpm $RPM_BUILD_ROOT%{_pixmapsdir}/%{name}.xpm
53 cp -r data $RPM_BUILD_ROOT%{_datadir}/%{name}
55 # Game is looking for those libs in the datadir folder
56 ln -s %{_libdir}/libbt_objects.so $RPM_BUILD_ROOT%{_datadir}/%{name}/libbt_objects.so
57 ln -s %{_libdir}/libbt.so $RPM_BUILD_ROOT%{_datadir}/%{name}/libbt.so
60 rm -rf $RPM_BUILD_ROOT
63 %defattr(644,root,root,755)
64 %doc ChangeLog README-*.txt
65 %attr(755,root,root) %{_bindir}/%{name}
68 %{_desktopdir}/%{name}.desktop
69 %{_pixmapsdir}/%{name}.xpm