File fodquake.spec of Package fodquake

#
# spec file for package fodquake
#
# Copyright (c) 2021, 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/
#

%define realver 20200104
Name:           fodquake
Version:        0.3+test%{realver}
Release:        0
Summary:        An advanced QuakeWorld client
License:        GPL-2.0-or-later
Group:          Amusements/Games/3D/Shoot
URL:            http://fodquake.net/
#Git-Clone:     git://tunkki.dk/fodquake
Source:         http://fodquake.net/test/%{name}-%{realver}.tar.bz2
Patch0:         fodquake-fix-gcc10.patch
BuildRequires:  pkgconfig
BuildRequires:  pkgconfig(libpng)
BuildRequires:  pkgconfig(libjpeg)
BuildRequires:  pkgconfig(gtk+-2.0)
BuildRequires:  pkgconfig(alsa)
BuildRequires:  pkgconfig(gl)
BuildRequires:  pkgconfig(libpulse)
BuildRequires:  pkgconfig(x11)
BuildRequires:  pkgconfig(xext)
BuildRequires:  pkgconfig(xxf86vm)
BuildRequires:  pkgconfig(xrandr)
BuildRequires:  pkgconfig(xi)

%description
Evolved from FuhQuake, Fodquake takes the experience to a new level,
gives you a vast number of enhancements and new features.
A QuakeWorld client for sensible people who expect (or not) higher
level of happiness, so it is easier to frag, die and smile.

Features
 * Server browser - to easily find a match or a player. Sorting by
   gametype, columns. Friends tab to keeping your mates there.
   Customizable colours. Join, observe, search, watch EzTV streams
   via QTV proxy.
 * QW networking independent from rendering.
 * Flat rendering of maps, in both OpenGL and software rendering,
   with the user being able to either choose distinct colours for
   walls, floors/ceilings and slopes, or choosing to colour each
   surface on the entire map according to their wish.
 * EQL ruleset.
 * Command line arguments are no longer needed. Every option can be
   set by regular Quake cvars. Command line options are converted
   into their respective cvars for legacy reasons.
 * Sound system parameters can be changed while Quake is running
   and sound can be completely turned on/off as well without a 
   restart.
 * Video mode selection menu.
 * Linux USB mouse poll rate settings are checked and a warning is
   given if found to be lower than 500Hz.
 * Table layout code with optimal layout and entry sorting. Tab
   completion of commands and variables and other things presenting
   the output in a grid will use the new table layout code.
 * Optimised dynamic lightmap rendering.
 * Clipboard support for X11.
 * FTE-compatible support for compression of network data.
 * Support for FTE chunked downloads. Downloads can be much faster
   on compatible servers.
 * No longer lets broken mods (hint: they start with the letters
   'kt') change the rate cvar. If the server asks for the cvar to
   be changed, only the userinfo will be changed, and the value
   will be restored when disconneting from the server.

Game data must be placed in ~/.fodquake/id1 .

%prep
%setup -q -n %{name}-%{realver}
%patch0 -p1

%build
%make_build

%install
for i in gl sw; do
  install -Dm 0755 objects/x86_64-suse-linux/$i/fodquake-$i %{buildroot}%{_bindir}/fodquake-$i
done

%files
%license docs/COPYING
%doc docs/CHANGES docs/RELEASENOTES-0.3
%{_bindir}/fodquake-gl
%{_bindir}/fodquake-sw

%changelog
openSUSE Build Service is sponsored by