File gnome-quod.spec of Package gnome-quod

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


Name:           gnome-quod
Version:        0.2.3
Release:        0
Summary:        Board game to make a square from pieces
License:        GPL-3.0+
Group:          Amusements/Games/Board/Other
Url:            https://sourceforge.net/projects/gquod
Source:         https://sourceforge.net/projects/gquod/files/gquod/Gnome%20Quod%20%{version}/%{name}-%{version}.tar.bz2
BuildRequires:  gcc-c++
BuildRequires:  gettext-devel
BuildRequires:  gtkmm2-devel >= 2.10
BuildRequires:  intltool
BuildRequires:  librsvg-devel
%if 0%{?suse_version} > 1320
BuildRequires:  libxml++26-devel
%else
BuildRequires:  libxml++-devel >= 2.10
%endif
BuildRequires:  update-desktop-files
Requires:       gtkmm2 >= 2.10
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Quod, a game invented by G. Keith Still, has simple rules, but playing well
requires sophisticated strategy. The goal of the game is to place pieces on a
grid so that they make a square. The player who makes a square first wins.
Squares can be any size and orientation, and players have a limited supply of
blocking pieces, which adds to the complexity and interest.

%lang_package

%prep
%setup -q
chmod -x AUTHORS README NEWS THANKS

%build
export CXXFLAGS="-fpermissive"
%configure

%install
%make_install
%suse_update_desktop_file -n %{name} Game BoardGame
%find_lang %{name}

%files
%defattr (-, root, root)
%doc AUTHORS README NEWS THANKS
%{_mandir}/man?/quod.6%{ext_man}
%{_bindir}/*
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/quod.png
%dir %{_datadir}/pixmaps/gnome-quod
%{_datadir}/pixmaps/gnome-quod/*
%dir %{_datadir}/gnome-quod
%{_datadir}/gnome-quod/*

%files lang -f %{name}.lang

%changelog
openSUSE Build Service is sponsored by