Репозитории ALT
S: | 0.9.8083-alt9 |
5.1: | 0.9.8083-alt0.M51.2 |
4.1: | 0.6.5069-alt1.qa1 |
Группа :: Игры/Аркады
Пакет: btanks
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
%define _prefix /usr
Name: btanks
Version: 0.9.8083
Release: alt0.M51.2
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
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 \
plugins_dir=%_libdir/%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/libbtanks_engine.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
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
…
Полный changelog можно просмотреть здесь
Name: btanks
Version: 0.9.8083
Release: alt0.M51.2
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
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 \
plugins_dir=%_libdir/%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/libbtanks_engine.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
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
…
Полный changelog можно просмотреть здесь