File angrydd.spec of Package angrydd

#
# spec file for package angrydd
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright Vincent Petry <PVince81@yahoo.fr>
#
# 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:           angrydd
Version:        1.0.1
Release:        1
Url:            http://www.sacredchao.net/~piman/angrydd/
License:        GPL-2.0
Group:          Amusements/Games
Summary:        Angry, Drunken Dwarves: Rock-Dropping Fun
# Downloaded from http://www.sacredchao.net/~piman/angrydd/angrydd-1.0.1.tar.gz
# Repacked as tar.bz2
Source:         %{name}-%{version}.tar.bz2
Source1:	%{name}.desktop
Patch0:         %{name}-Makefile.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch
Requires:       python-pygame
Requires:       python-numpy
BuildRequires:  python-pygame
BuildRequires:  python-numpy
BuildRequires:  fdupes
%if 0%{?suse_version}
BuildRequires: update-desktop-files
%endif

%description
In Angry, Drunken Dwarves, you are an angry, drunken dwarf. Why are you so angry? Who knows. But you've decided to take your aggression out on other dwarves, by dropping gems on their heads. Lots of gems. ADD is a member of the classic "falling blocks" puzzle game family, similar to the Capcom game Puzzle Fighter. The goal of the game is to build large gems by matching up colors, then break them, raining more gems down onto your opponent. The first person whose field fills up, loses.

%prep
%setup -q
%patch0 -p1

%build
make %{?_smp_mflags}
%{py_compile .}

%install
make PREFIX=%{_prefix} DESTDIR="%{buildroot}" install
install -D %{S:1} $RPM_BUILD_ROOT/%{_datadir}/applications/%{name}.desktop
%fdupes $RPM_BUILD_ROOT%{_datadir}/%{name}

%if 0%{?suse_version}
%suse_update_desktop_file %{name}
%endif

%files
%defattr(-,root,root)
%doc COPYING README HACKING TODO 
%{_bindir}/%{name}
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/*
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png
%{_mandir}/man6/%{name}.6%{ext_man}

%changelog
openSUSE Build Service is sponsored by