File aqtion.spec of Package aqtion
#
# spec file for package aqtion
#
# 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/
#
%define _q2pro_version 6af1ffa
%define _aq2-tng_version 0927311
Name: aqtion
Version: 1.2.10
Release: 0
Summary: AQtion is a customized modern Q2Pro client
License: GPL-2.0-or-later
Group: Amusements/Games/3D/Shoot
URL: https://www.aq2world.com/
#Git-Clone: https://github.com/actionquake/q2pro.git
######
#Git-Clone: https://github.com/actionquake/aq2-tng.git
#Source: %{name}-%{version}.tar.gz
Source: https://github.com/actionquake/q2pro/archive/refs/tags/%{_q2pro_version}.tar.gz#/q2pro-%{_q2pro_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
AQtion is a customized modern Q2Pro client bundled with improved
AQ2 assets and the latest AQ2:TNG server code.
%prep
%setup -q -n q2pro-%{_q2pro_version}
%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
# cp doc/examples/buildconfig .config
#
## arch package
# https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=q2pro
%install
# FIXME: anderer pfad !!!
install -Dm0755 q2pro %{buildroot}%{_bindir}/q2pro
#install -Dm0755 q2proded %{buildroot}%{_bindir}/q2proded
# install gamex86_64.so !!
# TODDO:
# - aq2-tng
# - assets
# - icon
# - ...
# icon
# https://github.com/actionquake/distrib/blob/main/build/linux/dpkg/usr/local/share/icons/aqtion.png
# desktop file
%files
%license LICENSE
%doc README.md
%{_bindir}/q2pro
#%%{_bindir}/q2proded
#%%{_mandir}/manX/XXX.x%{?ext_man}
%changelog