Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37425313
en ru br
ALT Linux repos
S:1.0.2-alt2
5.0: 0.9.9-alt2
4.1: 0.9.9-alt0.M41.1

Group :: Games/Strategy
RPM: hedgewars

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

# This spec is backported to ALTLinux 4.1 automatically by rpmbph script. Do not edit it.
#
Name: hedgewars
Version: 0.9.9
Release: alt0.M41.1

Summary: Game with heavily armed fighting hedgehogs
License: GPL
Group: Games/Strategy
URL: http://www.hedgewars.org/

Packager: Ilya Mashkin <oddity at altlinux.ru>

Source0: %name-src-%version.tar.bz2

BuildRequires: gcc-c++ cmake libqt4-devel fpc libSDL-devel libSDL_ttf-devel libSDL_mixer-devel libSDL_image-devel libSDL_net-devel

BuildRequires: rpm-build-compat >= 0.95

%description
Each player controls a team of several hedgehogs. During the course of the
game, players take turns with one of their hedgehogs. They then use whatever
tools and weapons are available to attack and kill the opponents' hedgehogs,
thereby winning the game. Hedgehogs may move around the terrain in a variety
of ways, normally by walking and jumping but also by using particular tools
such as the "Rope" or "Parachute", to move to otherwise inaccessible areas.

Each turn is time-limited to ensure that players do not hold up the game
with excessive thinking or moving.
A large variety of tools and weapons are available for players during the
game: Grenade, Cluster Bomb, Bazooka, UFO, Shotgun, Desert Eagle, Fire Punch,
Baseball Bat, Dynamite, Mine, Rope, Pneumatic pick, Parachute. Most weapons,
when used, cause explosions that deform the terrain, removing circular chunks.

The landscape is an island floating on a body of water, or a restricted cave
with water at the bottom. A hedgehog dies when it enters the water (either
by falling off the island, or through a hole in the bottom of it), it is
thrown off either side of the arena or when its health is reduced,
typically from contact with explosions, to zero (the damage dealt to the
attacked hedgehog or hedgehogs after a player's or CPU turn is shown only
when all movement on the battlefield has ceased).

%prep
%setup -q -n %name-src-%version
%__subst 's/2.6.0/2.4.8/' CMakeLists.txt

%build
PATH="/usr/lib/qt4/bin/:$PATH" cmake -DCMAKE_INSTALL_PREFIX="%_prefix"  CMakeLists.txt
%make_build

%install
%make_install DESTDIR=%buildroot install

mkdir -p %buildroot%_datadir/applications/

cat <<EOF >%buildroot%_datadir/applications/%name.desktop
[Desktop Entry]
Name=%name
Comment=Strategy action game
Exec=hedgewars
Terminal=false
Type=Application
StartupNotify=true
Categories=Game;ActionGame;StrategyGame;
EOF


%files
%doc README
%_bindir/*
%_datadir/%name/
%_datadir/applications/*.desktop

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin