File q2pro.spec of Package q2pro
#
# spec file for package q2pro
#
# Copyright (c) 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: q2pro
Version: r2146
Release: 0
Summary: Enhanced Quake 2 client and server focused on multiplayer
License: GPL-2.0-or-later
Group: Amusements/Games/3D/Shoot
URL: https://github.com/skullernet/q2pro
#Git-Clone: https://github.com/skullernet/q2pro.git
Source: https://github.com/skullernet/q2pro/archive/refs/tags/%{version}.tar.gz#/%{name}-%{version}.tar.gz
#BuildRequires: meson
#BuildRequires: cmake
#BuildRequires: ninja
BuildRequires: pkgconfig
BuildRequires: pkgconfig(zlib)
BuildRequires: pkgconfig(libjpeg)
BuildRequires: pkgconfig(libpng)
BuildRequires: pkgconfig(libcurl)
BuildRequires: pkgconfig(sdl2)
BuildRequires: pkgconfig(openal)
BuildRequires: pkgconfig(xi)
BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(glx)
### wayland
#BuildRequires: pkgconfig(wayland-client)
#BuildRequires: pkgconfig(wayland-protocols)
#BuildRequires: libdecor-devel
#BuildRequires: wayland-devel
%description
Q2PRO is an enhanced, multiplayer oriented Quake 2 client and server.
Features include:
* rewritten OpenGL renderer optimized for stable FPS
* enhanced client console with persistent history
* ZIP packfiles (.pkz), JPEG and PNG textures, MD3 models
* fast HTTP downloads
* multichannel sound using OpenAL
* recording from demos, forward and backward seeking
* server side multiview demos and GTV capabilities
%prep
%setup -q
%build
### TODO: Switch to meson
#%%meson
#%%meson_build
# FIXME: you should use %%meson macros
#meson build --prefix=%{_prefix} --buildtype=release -Dwayland=disabled
#ninja -C build
%make_build
### build-config file (wie auch bei aqtionquake2)
# https://github.com/actionquake/distrib/blob/main/build/linux/config_linux64
# https://github.com/skullernet/q2pro/issues/228
#
## arch package
# https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=q2pro
%install
install -Dm0755 q2pro %{buildroot}%{_bindir}/q2pro
install -Dm0755 q2proded %{buildroot}%{_bindir}/q2proded
%files
%license LICENSE
%doc README.md
%{_bindir}/q2pro
%{_bindir}/q2proded
#%%{_mandir}/manX/XXX.x%{?ext_man}
%changelog