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