File qstat.spec of Package qstat
#
# spec file for package qstat
#
# Copyright (c) 2022 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/
#
Name: qstat
Version: 2.17
Release: 0
Summary: Get statistics from on-line game servers
License: Artistic-2.0
Group: Amusements/Games/Other
URL: https://github.com/Unity-Technologies/qstat
Source: https://github.com/Unity-Technologies/qstat/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires: autoconf
BuildRequires: automake
%description
QStat is a command-line program that displays the status of Internet
Game servers including Quake and many recent shooters.
%prep
%setup -q
sed -i 's/m4_esyscmd\(.*\),/%{version},/g' configure.ac
autoreconf -ifv
%build
%configure
%make_build
%install
%make_install
# Rename binary like Debian and Fedora because the POSIX queuing system specifies a different program called 'qstat'.
mv %{buildroot}%{_bindir}/qstat %{buildroot}%{_bindir}/quakestat
# Prepare for including to documentation
find template -name "Makefile*" -type f | xargs rm -f
%files
%config %{_sysconfdir}/qstat.cfg
%{_bindir}/quakestat
%license LICENSE.txt
%doc CHANGES.txt README.md contrib.cfg info/*.txt qstatdoc.html template/
%changelog