File cutechess.spec of Package cutechess

#
# spec file for package cutechess
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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:           cutechess
Version:        @SERVICE@
Release:        0
Summary:        For playing chess
License:        GPL-3.0-or-later AND MIT
Group:          Amusements/Games/Board/Chess
URL:            https://github.com/cutechess/cutechess
Source:         %{name}-%{version}.tar.xz
BuildRequires:  cmake
BuildRequires:  cmake(Qt5LinguistTools)
BuildRequires:  gcc-c++
BuildRequires:  hicolor-icon-theme
BuildRequires:  pkgconfig
BuildRequires:  pkgconfig(Qt5Core) >= 5.7.0
BuildRequires:  pkgconfig(Qt5Concurrent)
BuildRequires:  pkgconfig(Qt5PrintSupport)
BuildRequires:  pkgconfig(Qt5Svg)
BuildRequires:  pkgconfig(Qt5Test)
BuildRequires:  pkgconfig(Qt5Widgets)
BuildRequires:  pkgconfig(Qt5Xml)
Recommends:     sloppy022
Suggests:       stockfish

%description
Cute Chess is a graphical user interface, command-line interface and a
library for playing chess. Cute Chess is written in C++ using the Qt
framework.

%prep
%autosetup

%build
%cmake
%cmake_build

%install
%cmake_install
rm -rfv %{buildroot}%{_datadir}/icons/application
for i in 16 24 32 64 128 256 512 ; do
    install -Dm 0644 projects/gui/res/icons/%{name}_$i\x$i.png %{buildroot}%{_datadir}/icons/hicolor/$i\x$i/apps/%{name}.png
done
install -Dm 0644 projects/gui/res/icons/%{name}_32x32.xpm %{buildroot}%{_datadir}/pixmaps/%{name}.xpm

%files
%doc AUTHORS README.md TODO
%{_bindir}/%{name}*
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*/apps/%{name}.png
%{_datadir}/pixmaps/%{name}.xpm
%{_mandir}/man?/*.?%{?ext_man}
%license COPYING

%changelog
openSUSE Build Service is sponsored by