File xmahjongg.spec of Package xmahjongg

# spec file for package xmahjongg
# Copyright (c) 2013 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:           xmahjongg
Version:        3.7
Release:        0
Summary:        Colorful X solitaire MahJongg game
License:        GPL-2.0+
Group:          Amusements/Games/Board/Card

Source1:        %{name}.desktop
Source2:        %{name}.png

BuildRequires:  gcc-c++
BuildRequires:  update-desktop-files
%if 0%{?suse_version} >= 1220
BuildRequires:  pkgconfig(x11)
BuildRequires:  xorg-x11-devel

BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Conflicts:      xmahjong

Real Mah Jongg is a social game that originated in China thousands of
years ago. Four players, named after the four winds, take tiles from a
wall in turn. The best tiles are made of ivory and wood; they click
pleasantly when you knock them together. Computer Solitaire Mah Jongg
(xmahjongg being one of the sillier examples) is nothing like that but
it's fun, or it must be, since there are like 300 shareware versions
available for Windows. This is for X11 and it's free.

%setup -q

make %{?_smp_mflags}

%{__install} -D %{SOURCE2} %{buildroot}%{_datadir}/pixmaps/%{name}.png
%suse_update_desktop_file -i %{name}