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
URL: http://stratagus.sourceforge.net/
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
%description
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.
%prep
%setup -q -n stratagus-%version
%build
%configure
%install
%make_install
%__mkdir_p %buildroot%_prefix/games
%__mkdir_p %buildroot%_datadir/games/%name
pushd %buildroot%_datadir/games/%name
%__tar xf %SOURCE1
popd
# menu and icons
%__cat <<__MENU__ > %name-%media.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
__MENU__
%__install -pD -m755 %name %buildroot%_prefix/games/%name
%__install -pD -m644 %name-%media.menu %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
%update_menus
%postun -n %name-%media
%clean_menus
%files
%_prefix/games/%name
%_iconsdir/%name.png
%_iconsdir/*/%name.png
%doc doc/*
%files -n %name-%media
%_menudir/%name-%media
%_datadir/games/%name/data.%media
%changelog
…
Full changelog you can see here
%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
URL: http://stratagus.sourceforge.net/
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
%description
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.
%prep
%setup -q -n stratagus-%version
%build
%configure
%install
%make_install
%__mkdir_p %buildroot%_prefix/games
%__mkdir_p %buildroot%_datadir/games/%name
pushd %buildroot%_datadir/games/%name
%__tar xf %SOURCE1
popd
# menu and icons
%__cat <<__MENU__ > %name-%media.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
__MENU__
%__install -pD -m755 %name %buildroot%_prefix/games/%name
%__install -pD -m644 %name-%media.menu %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
%update_menus
%postun -n %name-%media
%clean_menus
%files
%_prefix/games/%name
%_iconsdir/%name.png
%_iconsdir/*/%name.png
%doc doc/*
%files -n %name-%media
%_menudir/%name-%media
%_datadir/games/%name/data.%media
%changelog
…
Full changelog you can see here