File martian.spec of Package martian
#
# spec file for package martian
#
# 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 http://bugs.opensuse.org/
#
Name: martian
Version: 1.0
Release: 0
License: GPL-2.0+
Summary: A simple memomy game oriented to kids
Url: http://dragontech.sourceforge.net/
Group: Amusements/Games/Action/Arcade
Source0: martian_source.tgz
Source1: %{name}.desktop
# PATCH-FIX-UPSTRTEAM martian_source.diff
Patch0: martian_source.diff
# PATCH-FIX-UPSTRTEAM martian-gcc43.diff
Patch1: martian-gcc43.diff
BuildRequires: SDL_mixer-devel
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: libtool
%if 0%{?suse_version}
BuildRequires: update-desktop-files
%endif
%if 0%{?suse_version} > 1320
Requires(pre): user(games)
%endif
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Martian Memory is a simple memomy game oriented to kids featuring the Pachi el marciano's world characters.
The goal of the game is to pick-up 2 identical chips from a board that contains 32.
The game contains very nice visual effects, sounds and very nice music compossed by Jonne Valtonen.
%prep
%setup -q -n Martian-Memory
%patch0
%patch1
%build
echo >> configure.ac
libtoolize --force
autoreconf --force --install
%configure
make %{?_smp_mflags}
%install
make DESTDIR=%{buildroot} install
mkdir -p %{buildroot}%{_localstatedir}/games
mv %{buildroot}%{_localstatedir}/lib/games/Martian/data/scores.dat \
%{buildroot}%{_localstatedir}/games/martian.scores
%if 0%{?suse_version}
%suse_update_desktop_file -i %{name} Game ArcadeGame
%endif
%fdupes %{buildroot}%{_datadir}
%files
%defattr(-,root,root,-)
%doc AUTHORS COPYING ChangeLog README
%{_bindir}/%{name}
%{_datadir}/Martian/
%{_datadir}/applications/%{name}.desktop
%attr(0664,games,games) %{_localstatedir}/games/martian.scores
%changelog