File qcheckers.spec of Package qcheckers
#
# spec file for package qcheckers
#
# 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: qcheckers
Version: @SERVICE@
Release: 0
Summary: Qt-based checkers board game
License: GPL-2.0-only
Group: Amusements/Games/Board/Other
URL: https://portnov.github.io/qcheckers
Source: %{name}-%{version}.tar.xz
Patch1: %{name}_translations.patch
BuildRequires: cmake
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: hicolor-icon-theme
BuildRequires: pkgconfig
BuildRequires: cmake(Qt5LinguistTools)
BuildRequires: pkgconfig(Qt5Svg)
BuildRequires: pkgconfig(Qt5Widgets)
Recommends: %{name}-lang
%description
QCheckers (formely known as KCheckers) is a Qt-based checkers board game.
It can play english draughts and russian draughts.
%lang_package
%prep
%setup -q
%patch1 -p1
sed -i "s/\(Icon=%{name}\).*/\1/" %{name}.desktop
%build
%qmake5 \
PREFIX=%{_prefix}
%make_jobs
%install
%qmake5_install
%fdupes %{buildroot}
%find_lang %{name} --with-qt
%files
%doc AUTHORS ChangeLog FAQ README.md TODO
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*/apps/%{name}.svg
%{_datadir}/%{name}
%exclude %{_datadir}/%{name}/translations
%license COPYING
%files lang -f %{name}.lang
%dir %{_datadir}/%{name}/translations
%changelog