]> git.pld-linux.org Git - packages/btanks.git/blob - btanks.spec
- data files as noarch
[packages/btanks.git] / btanks.spec
1 # TODO:
2 # - pl description and summary
3 Summary:        Fast 2d tank arcade game with multiplayer and split-screen modes
4 Name:           btanks
5 Version:        0.7.5800
6 Release:        1
7 License:        GPL v2
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
20 BuildRequires:  scons
21 BuildRequires:  zlib-devel
22 Requires:       %{name}-data = %{version}
23 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25 %description
26 Battle Tanks is a funny battle on your desk, where you can choose one
27 of three vehicles and eliminate your enemy using the whole arsenal of
28 weapons. It has original cartoon-like graphics and cool music, it is
29 fun and dynamic, it has several network modes for deathmatch and
30 cooperative - what else is needed to have fun with your friends?
31
32 And all is packed and ready for you in Battle Tanks.
33
34 %prep
35 %setup -q
36 # Proper name for our lua
37 sed -e 's/lua5.1/lua51/g' -i SConscript
38 sed -e 's/-O3 //g' -i SConstruct
39
40 %build
41 %scons \
42         resources_dir=%{_datadir}/%{name} \
43         lib_dir=%{_libdir}
44
45 %install
46 rm -rf $RPM_BUILD_ROOT
47
48 install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir},%{_desktopdir},%{_pixmapsdir}}
49
50 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
51 install bt $RPM_BUILD_ROOT%{_bindir}/%{name}
52 install *.so $RPM_BUILD_ROOT%{_libdir}
53 install src/bt.xpm $RPM_BUILD_ROOT%{_pixmapsdir}/%{name}.xpm
54
55 %clean
56 rm -rf $RPM_BUILD_ROOT
57
58 %files
59 %defattr(644,root,root,755)
60 %doc ChangeLog README-*.txt
61 %attr(755,root,root) %{_bindir}/%{name}
62 %{_libdir}/*.so
63 %{_desktopdir}/%{name}.desktop
64 %{_pixmapsdir}/%{name}.xpm
This page took 0.070537 seconds and 3 git commands to generate.