Sisyphus repository
Last update: 28 may 2023 | SRPMs: 18429 | Visits: 27842858
en ru br
ALT Linux repos
5.0: 2.1rel-alt2
4.1: 2.1rel-alt2
4.0: 2.1rel-alt2
3.0: 2.1pre2-alt1

Group :: Games/Strategy
RPM: stratagus

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

%define media bos
%define media_version 0.30062004

Name: stratagus
Version: 2.1pre2
Release: alt1

Summary: Stratagus - A free fantasy real time strategy game engine
License: GPL
Group: Games/Strategy

BuildRequires: XFree86-devel XFree86-libs bzlib-devel libSDL-devel libogg-devel libpng-devel libvorbis-devel zlib-devel liblua5-devel

Source0: %name-%version.tar.bz2
Source1: %name-%media-%media_version.tar
Source2: %name-16.png
Source3: %name-32.png
Source4: %name-48.png

Stratagus is a free cross-platform real-time strategy gaming engine.
It includes support for playing over the internet/LAN, or playing a computer
opponent. The engine is configurable and can be used to create games with a
wide-range of features specific to your needs. See the data sets page for a
list of current games using the stratagus engine.

%package -n %name-%media
Requires: %name >= %version
Summary: Battle of Survival data files for Stratagus
Group: Games/Strategy

%description -n %name-%media
BoS is an real-time strategy game set in the future.
It has high-quality graphics and sounds.

%setup -q -n stratagus-%version


%__mkdir_p %buildroot%_prefix/games
%__mkdir_p %buildroot%_datadir/games/%name
pushd %buildroot%_datadir/games/%name
%__tar xf %SOURCE1

# menu and icons

%__cat <<__MENU__ >
?package(%name-%media): needs="x11" section="%group" \
title="Stratagus: BoS" longtitle="Stratagus: Battle of Survival" \
command="%_prefix/games/%name -d %_datadir/games/%name/data.%media" icon=%name.png

%__install -pD -m755 %name %buildroot%_prefix/games/%name
%__install -pD -m644 %buildroot%_menudir/%name-%media

%__install -pD -m644 %SOURCE2 %buildroot%_miconsdir/%name.png
%__install -pD -m644 %SOURCE3 %buildroot%_iconsdir/%name.png
%__install -pD -m644 %SOURCE4 %buildroot%_liconsdir/%name.png

%post -n %name-%media

%postun -n %name-%media

%doc doc/*

%files -n %name-%media


Full changelog you can see here

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