File knights.spec of Package knights4

# spec file for package knights
# Copyright (c) 2012 SUSE LINUX Products 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

Name:           knights
Version:        2.5.0
Release:        0
License:        GPL-2.0+
Summary:        A simple chess board for KDE 4
Group:          Amusements/Games/Board/Chess
BuildRequires:  libkde4-devel >= 4.9.0
BuildRequires:  libkdegames4-devel >= 4.9.0
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version}
BuildRequires:  update-desktop-files
Requires:       gnuchess
Recommends:     %{name}-lang = %{version}
Suggests:       crafty
Obsoletes:      kchess

Knights is the chess interface for KDE SC 4. It features play against opponents
on the Free Internet Chess Server, a friend on the same computer, or a computer
chess engine.

%setup -q

%cmake_kde4 -d build

%kde4_makeinstall -C build

%if 0%{?suse_version}
%suse_update_desktop_file -r knights Qt KDE Game BoardGame

%if 0%{?suse_version} && 0%{?suse_version} < 1140
rm -rf %{buildroot}%{_datadir}/locale/sr@ijekavian/
rm -rf %{buildroot}%{_datadir}/locale/sr@ijekavianlatin

%find_lang %{name}


rm -rf %{buildroot}

%doc README.themes
%doc %{_kde4_htmldir}/en/knights/

%files lang -f %{name}.lang
%exclude %{_kde4_htmldir}/en/knights/

openSUSE Build Service is sponsored by