File tremulous.spec of Package tremulous
#
# spec file for package tremulous
#
# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define data_version 1.1.0
Name: tremulous
Version: 1.2.0+git.20160616
Release: 0
Summary: First Person Shooter game based on the Quake 3 engine
License: GPL-2.0-or-later
Group: Amusements/Games/Action/Shoot
URL: https://tremulous.net/
# From upstream git: https://github.com/darklegion/tremulous
Source0: %{name}-%{version}.tar.xz
Source1: %{name}.desktop
Source2: %{name}.png
BuildRequires: Mesa-devel
BuildRequires: opengl-games-utils
BuildRequires: pkgconfig
BuildRequires: pkgconfig(libcurl)
BuildRequires: pkgconfig(libjpeg)
BuildRequires: pkgconfig(openal)
BuildRequires: pkgconfig(opus)
BuildRequires: pkgconfig(opusfile)
BuildRequires: pkgconfig(sdl2)
BuildRequires: pkgconfig(vorbis)
BuildRequires: pkgconfig(zlib)
BuildRequires: update-desktop-files
Requires: opengl-games-utils
Requires: tremulous-data >= %{data_version}
%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.
%prep
%setup -q
%build
# the CROSS_COMPILING=1 is a hack to not build q3cc and qvm files
# since we've stripped out q3cc as this is not Free Software.
%make_build \
OPTIMIZE="%{optflags} -fno-strict-aliasing -ffast-math" \
DEFAULT_BASEDIR=%{_datadir}/%{name} \
BUILD_GAME_SO=0 \
USE_INTERNAL_LIBS=0 \
USE_CODEC_VORBIS=1 \
USE_LOCAL_HEADERS=0 \
GENERATE_DEPENDENCIES=0 \
CROSS_COMPILING=1
%install
mkdir -p %{buildroot}%{_bindir}
install -m 0755 build/release-linux-*/tremded.* \
%{buildroot}%{_bindir}/tremded
install -m 0755 build/release-linux-*/tremulous.* \
%{buildroot}%{_bindir}/%{name}
ln -s opengl-game-wrapper.sh %{buildroot}%{_bindir}/%{name}-wrapper
%suse_update_desktop_file -i %{name} Game ActionGame
%files
%license COPYING GPL
%doc ChangeLog
%{_bindir}/%{name}*
%{_bindir}/tremded
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png
%changelog