File xqf.spec of Package xqf

#
# spec file for package xqf
#
# Copyright (c) 2023 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:           xqf
Version:        1.0.6.2+git.20210914
Release:        0
Summary:        A network game browser and launcher
License:        GPL-2.0-or-later
Group:          Amusements/Games/Other
URL:            https://xqf.github.io/en/
Source:         xqf-%{version}.tar.xz
BuildRequires:  cmake
BuildRequires:  gcc-c++
BuildRequires:  gettext
BuildRequires:  fdupes
BuildRequires:  hicolor-icon-theme
BuildRequires:  pkgconfig
BuildRequires:  pkgconfig(gtk+-2.0)
BuildRequires:  pkgconfig(libxml-2.0)
BuildRequires:  pkgconfig(minizip)
Requires:       qstat

%description
XQF is a network game browser (Quake, Unreal, etc.). It helps you
locate and connect to game servers. It has configurable server and
player filters so you can find a server running your favorite game type
or that has a buddy.

%prep
%setup -q

%build
%cmake \
    -DWITH_QSTAT=quakestat \
    -DUSE_GEOIP=OFF
%cmake_build

%install
%cmake_install
%find_lang %{name}
%fdupes %{buildroot}%{_datadir}

chmod 644 docs/PreLaunch.example

%files -f %{name}.lang
%license COPYING
%doc AUTHORS.md README.md ChangeLog NEWS.md docs/PreLaunch.example
%dir %{_datadir}/xqf
%{_bindir}/*
%{_mandir}/man?/xqf.*
%{_datadir}/xqf/*
%{_datadir}/pixmaps/*
%{_datadir}/icons/hicolor/*/apps/%{name}.*
%{_datadir}/applications/*

%changelog
openSUSE Build Service is sponsored by