File gnome-chess.spec of Package gnome-chess

#
# spec file for package gnome-chess
#
# Copyright (c) 2014 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 http://bugs.opensuse.org/
#


Name:           gnome-chess
Version:        3.14.0
Release:        0
Summary:        Chess Game for GNOME
License:        GPL-2.0+
Group:          Amusements/Games/Board/Chess
Url:            http://www.gnome.org
Source:         http://download.gnome.org/sources/gnome-chess/3.14/%{name}-%{version}.tar.xz
BuildRequires:  desktop-file-utils
BuildRequires:  intltool >= 0.35.0
BuildRequires:  itstool
BuildRequires:  libxml2-tools
BuildRequires:  update-desktop-files
BuildRequires:  pkgconfig(gl)
BuildRequires:  pkgconfig(glu)
BuildRequires:  pkgconfig(gtk+-3.0) >= 3.13.2
BuildRequires:  pkgconfig(librsvg-2.0)
BuildRequires:  pkgconfig(x11)
Requires:       chess_backend
Recommends:     %{name}-lang
# After gnome 3.6, glchess was split out of gnome-games and runs under the name gnome-chess
Obsoletes:      glchess < %{version}
Obsoletes:      glchess-lang < %{version}
Provides:       glchess = %{version}
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%glib2_gsettings_schema_requires

%description
This is a game for playing the classic board game of chess, in which
two players simulate a battle by capturing the opponents pieces and
ultimately the king. It can be played in 2D or 3D mode, full screen or
in a window.

%lang_package
%prep
%setup -q

%build
%configure
make %{?_smp_mflags}

%install
%make_install
%suse_update_desktop_file gnome-chess
%find_lang %{name} %{?no_lang_C}

%post
%glib2_gsettings_schema_post
%icon_theme_cache_post
%icon_theme_cache_post HighContrast
%desktop_database_post

%postun
%glib2_gsettings_schema_postun
%icon_theme_cache_postun
%icon_theme_cache_postun HighContrast
%desktop_database_postun

%files
%defattr(-,root,root)
%doc COPYING
%{_datadir}/help/C/%{name}/
%{_datadir}/icons/hicolor/
%{_datadir}/icons/HighContrast
%{_datadir}/%{name}/
%{_bindir}/%{name}
%dir %{_datadir}/appdata
%{_datadir}/appdata/gnome-chess.appdata.xml
%{_datadir}/applications/gnome-chess.desktop
%{_datadir}/glib-2.0/schemas/org.gnome.chess.gschema.xml
%{_mandir}/man6/%{name}.6%{?ext_man}
%dir %{_sysconfdir}/gnome-chess
%config %{_sysconfdir}/gnome-chess/engines.conf

%files lang -f %{name}.lang

%changelog
openSUSE Build Service is sponsored by