File gnome-games.spec of Package gnome-games

#
# spec file for package gnome-games
#
# 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 http://bugs.opensuse.org/
#


Name:           gnome-games
Version:        3.10.0
Release:        0
Summary:        Games for GNOME -- meta package
License:        GPL-2.0+ and GPL-3.0+ and LGPL-2.1+
Group:          Amusements/Games/Other
Url:            http://www.gnome.org
Source0:        README.openSUSE
Source1:        README-recommended.openSUSE
# This turned into a 'meta package', used for convenience, to clean up after the gnome-games 'split'
Obsoletes:      gnome-games-support < 3.7
Obsoletes:      gnome-games-support-lang < 3.7
Requires:       five-or-more
Requires:       four-in-a-row
Requires:       gnome-chess
Requires:       gnome-klotski
Requires:       gnome-mahjongg
Requires:       gnome-mines
Requires:       gnome-nibbles
Requires:       gnome-robots
Requires:       gnome-sudoku
Requires:       gnome-tetravex
Requires:       iagno
Requires:       lightsoff
Requires:       quadrapassel
Requires:       swell-foop
Requires:       tali
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
GNOME games is a collection of simple, but addictive, games from the
GNOME desktop project. They represent many of the popular games and
include card games, puzzle games and arcade games. They are meant to
be the sort of game that can be played in five minutes or so. They are
also meant to be fun enough that you will play them again and
again. Of course we can't be held responsible for the time and
productivity lost while playing them.

%package recommended
Summary:        Recommended Games for GNOME
Group:          Amusements/Games/Other
# Commented out requires are the games we don't want in recommended
Requires:       gnome-chess
#Requires:       five-or-more
#Requires:       four-in-a-row
#Requires:       gnome-nibbles
#Requires:       gnome-robots
Requires:       gnome-mines
Requires:       gnome-sudoku
#Requires:       gnome-tetravex
#Requires:       gnome-klotski
#Requires:       tali
Requires:       gnome-mahjongg
Requires:       iagno
Requires:       lightsoff
Requires:       quadrapassel
Requires:       swell-foop

%description recommended
GNOME games is a collection of simple, but addictive, games from the
GNOME desktop project. They represent many of the popular games and
include card games, puzzle games and arcade games. They are meant to
be the sort of game that can be played in five minutes or so. They are
also meant to be fun enough that you will play them again and
again. Of course we can't be held responsible for the time and
productivity lost while playing them.

This package will install a set of recommended games.

%prep
cp -a %{S:0} .
cp -a %{S:1} .

%build

%install

%clean

%post
# Remove obsolete scores.
# Obsolete since 10.0&SLED10:
# Obsolete since 10.3&SLED11:
rm -f var/games/games/gnome-stones.scores
# Obsolete since 11.3:
rm -f var/games/gnometris.scores
rm -f var/games/same-gnome.Large.scores
rm -f var/games/same-gnome.Medium.scores
rm -f var/games/same-gnome.Small.scores

%files
%defattr(-, root, root)
%doc README.openSUSE

%files recommended
%defattr(-, root, root)
%doc README-recommended.openSUSE

%changelog
openSUSE Build Service is sponsored by