Sisyphus repository
Last update: 17 september 2019 | SRPMs: 17435 | Visits: 15111842
en ru br
ALT Linux repos
S:3.1.2-alt3.1
4.0: 2.0.0-alt3

Group :: Games/Strategy
RPM: glest

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Name: glest
Version: 2.0.0
Release: alt3

Packager: Damir Shayhutdinov <damir at altlinux.ru>

Summary: Glest is a project for making a free 3d real-time customizable strategy game.
URL: http://www.glest.org

License: GPL
Group: Games/Strategy
Requires: %name-data = %version
Requires: fonts-bitmap-terminus

Source0: %{name}_source_%version.zip
Source2: %name.sh
Source3: %name.ini
Source4: %name.png
Source5: %name.desktop
Patch0: glest-2.0.0-gcc4-build.patch
Patch1: glest-2.0.0-logfile.patch
Patch3: glest-2.0.0-unicode.patch

# Automatically added by buildreq on Fri Sep 09 2005

BuildRequires: gcc-c++ jam libSDL-devel libogg-devel libopenal-devel libstdc++-devel libvorbis-devel xerces-c-devel xorg-x11-devel unzip wxGTK2u-contrib-ogl-devel

%description
Glest is a project for making a free 3d real-time customizable strategy game.
Current version is fully playable, includes single player game against CPU
controlled players, two factions with their corresponding tech trees, units,
buildings and some maps.

%prep
rm -rf %{name}_source_%version
unzip -qa %SOURCE0
%setup -D -T -n %{name}_source_%version
%patch0 -p1
%patch1 -p1

%build
cd mk/linux
chmod +x autogen.sh
./autogen.sh
%configure --disable-debug --enable-optimize

jam -j%__nprocs

%install

# let's create directory structure...

%__mkdir_p %buildroot{%_gamesdatadir/%name,%_gamesbindir,%_datadir/doc/%name-%version,%_iconsdir,%_datadir/applications}

# and install what we need where we need it to be...

%__install -pm755 mk/linux/glest %buildroot%_gamesbindir/glest-bin
ln -sf %_gamesbindir/glest-bin %buildroot%_gamesdatadir/%name/glest
%__install -pm644 %SOURCE3 %buildroot%_gamesdatadir/%name/glest.ini
%__install -pm755 %SOURCE2 %buildroot%_gamesbindir/glest

%__install -pm 644 docs/README docs/README.linux docs/license.txt %buildroot%_datadir/doc/%name-%version/
%__install -pm 644 %SOURCE4 %buildroot%_iconsdir/%name.png
%__install -pm 644 %SOURCE5 %buildroot%_datadir/applications/%name.desktop

%post
%update_menus

%postun
%clean_menus

%files
%_datadir/doc/%name-%version
%_gamesdatadir/%name
%_gamesbindir/%name
%_gamesbindir/%name-bin
%_iconsdir/%name.png
%_datadir/applications/%name.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