%define beta %nil %define scmrev 4034 Name: globulation Version: 0.9.4 %if "%beta" == "" %if "%scmrev" == "" Release: 1ark Source: glob2-%version.tar.lz %else Release: 0.%scmrev.1ark Source: glob2-%scmrev.tar.lz %endif %else %if "%scmrev" == "" Release: 0.%beta.1ark Source: glob2-%version%beta.tar.lz %else Release: 0.%beta.0.%scmrev.1ark Source: %name-%scmrev.tar.lz %endif %endif Patch: glob2-3476-gcc-4.3.patch Patch1: glob2-compile.patch Summary: Real-time strategy game URL: http://globulation2.org/ License: GPL Group: Games/TacticsStrategy BuildRoot: %{_tmppath}/%{name}-root %description Globulation 2 is an innovative Real-Time Strategy (RTS) game which reduces micro-management by automatically assigning tasks to units. Globulation 2 brings a new type of gameplay to RTS games. The player chooses the number of units to assign to various tasks, and the units do their best to satisfy the requests. This allows players to manage more units and focus on strategy rather than on micro-management. Globulation 2 also features AI, allowing single-player games or any possible combination of human-computer teams. The game also includes a scripting language for versatile gameplay or tutorials and an integrated map editor. You can play Globulation 2 in single player mode, through your local network, or over the Internet with Ysagoon Online Gaming (or YOG for short). %prep %if "%scmrev" == "" %setup -q -n glob2-%version%beta %else %setup -q -n glob2 %endif %patch -p1 -b .gcc43~ %patch1 -p1 -b .compile~ %build scons CXXFLAGS="$RPM_OPT_FLAGS" INSTALLDIR="%_datadir" %install rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT%_bindir $RPM_BUILD_ROOT%_datadir scons install BINDIR="$RPM_BUILD_ROOT%_bindir" INSTALLDIR="$RPM_BUILD_ROOT%_datadir" %files %defattr(-,root,root) %_bindir/* %_datadir/applications/*.desktop %_datadir/glob2 %_datadir/icons/*/*/*/glob2* %clean rm -rf $RPM_BUILD_ROOT $RPM_BUILD_DIR/%{name}-%{version} %changelog * Fri Feb 27 2009 Bernhard Rosenkraenzer <bero@arklinux.org> 0.9.4-0.3925.1ark - Update (build 3925) * Sun Apr 27 2008 Bernhard Rosenkraenzer <bero@arklinux.org> 0.9.3-1ark - 0.9.3 * Mon Dec 24 2007 Bernhard Rosenkraenzer <bero@arklinux.org> - initial RPM