File knightsgame.spec of Package knightsgame

#
# spec file for package knightsgame
#
# Copyright (c) 2021 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:           knightsgame
Version:        025
Release:        0
Summary:        Multiplayer dungeon bashing game
License:        GPL-3.0-only
Group:          Amusements/Games/Action/Other
URL:            https://www.knightsgame.org.uk
Source:         http://www.knightsgame.org.uk/files/knights_%{version}_src.tar.gz
Patch0:         fix-missing-pthread-library.patch
BuildRequires:  dos2unix
BuildRequires:  gcc-c++
BuildRequires:  pkgconfig
BuildRequires:  pkgconfig(fontconfig)
BuildRequires:  pkgconfig(freetype2)
BuildRequires:  pkgconfig(libcurl)
BuildRequires:  pkgconfig(sdl)
%if 0%{?suse_version} >= 1330
BuildRequires:  libboost_filesystem-devel
BuildRequires:  libboost_system-devel
BuildRequires:  libboost_thread-devel
%else
BuildRequires:  boost-devel
%endif

%description
Players must explore randomly generated dungeons
and compete to solve various quests.

%prep
%setup -q -n knights_%{version}_src
%patch0 -p1

%build
%make_build PREFIX=%{_prefix}

%install
make PREFIX=%{buildroot}%{_prefix} install

dos2unix %{buildroot}%{_datadir}/doc/knights/*.txt
dos2unix %{buildroot}%{_datadir}/doc/knights/third_party_licences/*.txt

%files
%{_bindir}/*
%{_datadir}/knights
%{_datadir}/doc/knights

%changelog
openSUSE Build Service is sponsored by