File tyrquake.spec of Package tyrquake
#
# spec file for package tyrquake
#
# Copyright (c) 2022 SUSE LLC
# Copyright (c) 2021-2022, Martin Hauke <mardnh@gmx.de>
#
# 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/
#
Name: tyrquake
Version: 0.70
Release: 0
Summary: A conservative Quake port
License: GPL-3.0-or-later
Group: Amusements/Games/3D/Shoot
URL: https://disenchant.net/tyrquake/
#Git-Clone: git://disenchant.net/tyrquake
Source: https://disenchant.net/files/engine/%{name}-%{version}.tar.gz
Source1: https://disenchant.net/files/engine/docs-master/tyrquake.html
Source2: README.SUSE
Patch0: reproducible.patch
BuildRequires: ImageMagick
BuildRequires: groff
BuildRequires: pkgconfig
BuildRequires: pkgconfig(gl)
BuildRequires: pkgconfig(libpulse)
BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(xext)
BuildRequires: pkgconfig(xxf86vm)
%description
TyrQuake is a port of id Software's Quake engine which attempts to
maintain the original look and feel of the game while also providing
support for modern platforms and user created content.
Currently TyrQuake is implemented as five separate programs; two
NetQuake clients (tyr-quake and tyr-glquake), two Quakeworld clients
(tyr-qwcl and tyr-glqwcl) and a Quakeworld server (tyr-qwsv). The 'gl'
notation indicates the OpenGL accelerated clients and the non-gl ver-
sions use a software-only renderer.
Features
* Includes the NetQuake & QuakeWorld engines, with both software and
OpenGL rendering.
* Greatly improved OpenGL performance, especially on low-end systems.
* Coloured lighting, skyboxes, mask (fence) textures.
* Music playback from ogg, mp3, flac and wav files.
* Switch games (mods) on the fly, no restart required.
* Support for very detailed maps, including BSP2 support.
* Support for FitzQuake and BJPQuake network protocols (including
demo recording/playback).
* Model interpolation, lighting improvements.
* Full entity/liquid alpha support (including the software renderer).
* Improved console with extensive command completion.
NOTE:
The Quake game data is needed to play and must be acquired
separately. See README.SUSE for details.
%prep
%setup -q
%patch0 -p1
sed -i 's/\r$//' readme-id.txt
cp %{SOURCE1} %{SOURCE2} .
%build
export CFLAGS="%{optflags}"
%make_build \
QBASEDIR=%{_datadir}/quake \
OPTIMIZED_CFLAGS=N \
V=1 \
%{?_smp_mflags}
%install
for b in tyr-{glquake,glqwcl,quake,qwcl,qwsv}; do
install -Dm 0755 bin/$b %{buildroot}%{_bindir}/$b
done
install -d %{buildroot}%{_datadir}/quake
install -D -p -m 0644 man/tyrquake.6 %{buildroot}/%{_mandir}/man6/tyrquake.6
%files
%license gnu.txt
%doc changelog.txt readme.txt readme-id.txt tyrquake.html
%doc README.SUSE
%{_bindir}/tyr-*
%{_mandir}/man6/tyrquake.6%{?ext_man}
%changelog