Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37562651
en ru br
Репозитории ALT
S:1.2.0-alt4
5.1: 1.1.0-alt4
4.1: 1.1.0-alt3.M41.1
4.0: 1.1.0-alt3.M40.1
www.altlinux.org/Changes

Группа :: Игры/Аркады
Пакет: tremulous

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

%define _user _tremulous
%define _group _tremulous
%define _home %_localstatedir/%name

%ifarch x86_64
%define __arch x86_64
%endif
%ifarch %ix86
%define __arch x86
%endif
%ifarch ppc
%define __arch ppc
%endif

Name: tremulous
Version: 1.1.0
Release: alt4
Packager: Timur Batyrshin <erthad at altlinux.org>

Summary: Tremulous - 3D FPS Strategic Shooter
License: GPL
Group: Games/Arcade
Url: http://tremulous.net

Source: tremulous-%version-src.tar.bz2
Source1: tremulous-client.desktop
Source2: tremulous.xpm
Source3: tremulous.init

# fix for #14027

Patch0: tremulous-alt-mmap.patch

Requires: %name-server = %version-%release
Requires: %name-client = %version-%release

# Automatically added by buildreq on Wed Jun 25 2008

BuildRequires: esound libX11-devel libXext-devel libmesa-devel libopenal-devel libSDL-devel

%description
Tremulous is a free, open source game that blends a team based FPS with elements
of an RTS. Players can choose from 2 unique races, aliens and humans. Players on
both teams are able to build working structures in-game like an RTS. These
structures provide many functions, the most important being spawning. The
designated builders must ensure there are spawn structures or other players will
not be able to rejoin the game after death. Other structures provide automated
base defense (to some degree), healing functions and much more...

Player advancement is different depending on which team you are on. As a human,
players are rewarded with credits for each alien kill. These credits may be used
to purchase new weapons and upgrades from the "Armoury". The alien team advances
quite differently. Upon killing a human foe, the alien is able to evolve into a
new class. The more kills gained the more powerful the classes available.

The overall objective behind Tremulous is to eliminate the opposing team. This
is achieved by not only killing the opposing players but also removing their
ability to respawn by destroying their spawn structures.

This is a virtual package to install tremulous client and dedicated server.

%package common
Group: Games/Arcade
Summary: Common files for Tremulous

%description common
Tremulous is a free, open source game that blends a team based FPS with elements
of an RTS. Players can choose from 2 unique races, aliens and humans. Players on
both teams are able to build working structures in-game like an RTS. These
structures provide many functions, the most important being spawning. The
designated builders must ensure there are spawn structures or other players will
not be able to rejoin the game after death. Other structures provide automated
base defense (to some degree), healing functions and much more...

This package contains common files.

%package client
Group: Games/Arcade
Summary: Tremulous client
Requires: %name-common = %version-%release
Provides: %name-client = %version-%release
Requires: %name-data = %version

%description client
Tremulous is a free, open source game that blends a team based FPS with elements
of an RTS. Players can choose from 2 unique races, aliens and humans. Players on
both teams are able to build working structures in-game like an RTS. These
structures provide many functions, the most important being spawning. The
designated builders must ensure there are spawn structures or other players will
not be able to rejoin the game after death. Other structures provide automated
base defense (to some degree), healing functions and much more...

Tremulous client.

%package server
Group: Games/Arcade
Summary: Tremulous dedicated server package
Requires: %name-common = %version-%release
Requires: %name-data = %version

%description server
Tremulous is a free, open source game that blends a team based FPS with elements
of an RTS. Players can choose from 2 unique races, aliens and humans. Players on
both teams are able to build working structures in-game like an RTS. These
structures provide many functions, the most important being spawning. The
designated builders must ensure there are spawn structures or other players will
not be able to rejoin the game after death. Other structures provide automated
base defense (to some degree), healing functions and much more...

Dedicated server.

%prep
%setup -q
subst 's,-Werror,,g' src/tools/asm/Makefile
%patch0 -p0

%build
%make_build release

%install
install -p -D -m644 %SOURCE1 %buildroot%_desktopdir/%name-client.desktop
install -D -p -m 0644 %SOURCE2 %buildroot%_liconsdir/tremulous.xpm

install -pD -m 0755 build/release-linux-%__arch/tremulous.%__arch %buildroot%_gamesbindir/tremulous.%__arch
install -pD -m 0755 build/release-linux-%__arch/tremded.%__arch %buildroot%_gamesbindir/tremded.%__arch

mkdir -p %buildroot%_bindir

cat << __EOF__ > %buildroot%_bindir/tremulous
#!/bin/sh

%_gamesbindir/tremulous.%__arch +set sv_pure 0 +set vm_cgame 0 +set vm_game 0 +set vm_ui 0 +set fs_basepath %_gamesdatadir/%name $ at
__EOF__
chmod 0755  %buildroot%_bindir/tremulous

ln -sf %_gamesbindir/tremded.%__arch %buildroot%_bindir/tremded

# initscript for dedicated server:

install -pDm0755 %SOURCE3 %buildroot%_initdir/%name

mkdir -p %buildroot%_sysconfdir/sysconfig/

cat << __EOF__ > %buildroot%_sysconfdir/sysconfig/%name
OPTIONS="+set sv_strictauth 0 +set sv_pure 0 +map atcs +set fs_basepath %_gamesdatadir/%name"
__EOF__

install -pDm0644 ChangeLog %buildroot%_docdir/%name/ChangeLog
install -pDm0644 COPYING %buildroot%_docdir/%name/COPYING
install -pDm0644 CC %buildroot%_docdir/%name/CC
install -pDm0644 GPL %buildroot%_docdir/%name/GPL

install -d %buildroot%_home

%pre server
/usr/sbin/groupadd -r -f %_group ||:
/usr/sbin/useradd -g %_group -c 'The tremulous user' \
       -d %_home -s /dev/null -r %_user >/dev/null 2>&1 ||:

%post server
%post_service %name

%preun server
%preun_service %name

%files

%files common
%doc %_docdir/%name

%files client
%_bindir/%name
%_gamesbindir/tremulous.%__arch
%_liconsdir/tremulous.xpm
%_desktopdir/tremulous-client.desktop

%files server
%_bindir/tremded
%_gamesbindir/tremded.%__arch
%config(noreplace) %_sysconfdir/sysconfig/*
%_initdir/*
%attr(775,root,%_group) %dir %_home

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin