]> git.pld-linux.org Git - packages/btanks.git/blame - btanks.spec
- don't force -O3, packaged more READMEs, spaces to tabs
[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
22BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24%description
25Battle Tanks is a funny battle on your desk, where you can choose one
26of three vehicles and eliminate your enemy using the whole arsenal of
27weapons. It has original cartoon-like graphics and cool music, it is
28fun and dynamic, it has several network modes for deathmatch and
29cooperative - what else is needed to have fun with your friends?
30
31And all is packed and ready for you in Battle Tanks.
32
33%prep
34%setup -q
35# Proper name for our lua
36sed -e 's/lua5.1/lua51/g' -i SConscript
11a046cb 37sed -e 's/-O3 //g' -i SConstruct
52c0907d 38
39%build
40%scons \
11a046cb
TP
41 resources_dir=%{_datadir}/%{name} \
42 lib_dir=%{_libdir}
52c0907d 43
44%install
45rm -rf $RPM_BUILD_ROOT
46
47install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir},%{_datadir}/%{name},%{_desktopdir},%{_pixmapsdir}}
48
49install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
50install bt $RPM_BUILD_ROOT%{_bindir}/%{name}
51install *.so $RPM_BUILD_ROOT%{_libdir}
52install src/bt.xpm $RPM_BUILD_ROOT%{_pixmapsdir}/%{name}.xpm
53cp -r data $RPM_BUILD_ROOT%{_datadir}/%{name}
54
55# Game is looking for those libs in the datadir folder
56ln -s %{_libdir}/libbt_objects.so $RPM_BUILD_ROOT%{_datadir}/%{name}/libbt_objects.so
57ln -s %{_libdir}/libbt.so $RPM_BUILD_ROOT%{_datadir}/%{name}/libbt.so
58
59%clean
60rm -rf $RPM_BUILD_ROOT
61
62%files
63%defattr(644,root,root,755)
11a046cb 64%doc ChangeLog README-*.txt
52c0907d 65%attr(755,root,root) %{_bindir}/%{name}
66%{_datadir}/%{name}
67%{_libdir}/*.so
68%{_desktopdir}/%{name}.desktop
69%{_pixmapsdir}/%{name}.xpm
This page took 0.073805 seconds and 4 git commands to generate.