Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37867813
en ru br
ALT Linux repositórios
S:0.9.8083-alt9
5.0: 0.8.7686-alt1
4.1: 0.6.5069-alt1.qa1

Group :: Jogos/Arcade
RPM: btanks

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

%define _prefix /usr

Name: btanks
Version: 0.8.7686
Release: alt1

Summary: Battle Tanks is a funny battle on your desk

Packager: Ilya Mashkin <oddity at altlinux.ru>

Group: Games/Arcade
License: GPL
Url: http://btanks.sourceforge.net/
Source: %name-%version.tar.bz2

BuildRequires: hd2u libalut-devel gcc-c++ ImageMagick libmesa-devel libSDL-devel libSDL_image-devel libsigc++2.0-devel libvorbis-devel pkgconfig scons zlib-devel libsmpeg-devel
BuildRequires: liblua5-devel libexpat-devel libX11-devel libSM-devel libGL-devel libICE-devel
BuildRequires: libopenal1-devel libXext-devel libXi-devel libXmu-devel
Requires: libalut libSDL libSDL_image %name-data
Requires: libopenal1

%package data
Summary: Data files for Battle Tanks
Group: Games/Arcade
License: GPL
BuildArch: noarch

%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. 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.

%description data
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. 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.

This package contains all data files for Battle Tanks


%prep
%setup -q -n %name-%version

dos2unix     *.txt ChangeLog *.url LICENSE
%__chmod 644 *.txt ChangeLog *.url LICENSE

%build
scons %{?jobs:-j%jobs} \
prefix=%prefix \
resources_dir=%_datadir/%name \
mode=release

%install
%__install -dm 755 %buildroot%_bindir
%__install -m 755 build/release/engine/btanks \
%buildroot%_bindir
%__install -m 755 build/release/editor/bted \
%buildroot%_bindir

%__install -dm 755 %buildroot%_libdir
%__install -m 644 build/release/mrt/libmrt.so \
build/release/clunk/libclunk.so \
build/release/engine/libbt.so \
build/release/sdlx/libsdlx.so \
%buildroot%_libdir

%__install -dm 755 %buildroot%_libdir/%name
%__install -m 644 build/release/objects/libbt_objects.so \
%buildroot%_libdir/%name/

%__install -dm 755 %buildroot%_libdir/%name/data

%__install -dm 755 %buildroot%_datadir/%name/data
%__cp -R data/* \
%buildroot%_datadir/%name/data

# icon

%__install -dm 755 %buildroot%_miconsdir
convert engine/src/bt.xpm -resize 16x16! \
%name.png
%__install -m 644 %name.png \
%buildroot%_miconsdir

%__install -dm 755 %buildroot%_niconsdir
convert engine/src/bt.xpm -resize 32x32! \
%name.png
%__install -m 644 %name.png \
%buildroot%_niconsdir

%__install -dm 755 %buildroot%_liconsdir
convert engine/src/bt.xpm -resize 48x48! \
%name.png
%__install -m 644 %name.png \
%buildroot%_liconsdir

# menu-entry

%__install -dm 755 %buildroot%_datadir/applications
%__cat > %buildroot%_datadir/applications/%name.desktop << EOF
[Desktop Entry]
Type=Application
Name=Battle Tanks
Comment='Battle Tanks' is a funny battle on your desk
Exec=btanks
Icon=%name
Encoding=UTF-8
Categories=Game;ActionGame;
EOF


%clean
[ -d %buildroot -a "%buildroot" != "" ] && %__rm -rf %buildroot

%files
%doc *.txt ChangeLog *.url LICENSE
%_bindir/btanks
%_bindir/bted
%_libdir/*

%_miconsdir/%name.png
%_niconsdir/%name.png
%_liconsdir/%name.png
%_datadir/applications/%{name}*.desktop

%files data
%dir %_datadir/%name
%dir %_datadir/%name/data
%_datadir/%name/data/*

%changelog

Todas as alterações você pod ver aqui

 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009