File solarwolf.spec of Package solarwolf

#
# spec file for package solarwolf
#
# 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:           solarwolf
BuildRequires:  python
BuildRequires:  update-desktop-files
Summary:        An Action/Arcade Game
License:        LGPL-2.1+
Group:          Amusements/Games/Action/Arcade
Version:        1.5
Release:        0
Requires:       pygame
# libmikmod is only recommended in pygame
Requires:       libmikmod
Source:         solarwolf-%{version}.tar.bz2
Source1:        solarwolf.sh
Source2:        %name.desktop
Source3:        solar-wolf-logo-64.png
Url:            http://pygame.org/shredwheat/solarwolf/
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} >= 1130
BuildArch:      noarch
%endif

%description
The point of this game is to scramble through 48 levels of patterns,
collecting all the boxes. The part that makes it tricky is avoiding the
relentless hailstorm of fire coming at you from all directions.



Authors:
--------
    Pete Shinners <pete@shinners.org>

%prep
%setup
find -type d | xargs chmod 755
rm -rf data/.xvpics

%build

%install
mkdir -p $RPM_BUILD_ROOT/usr/share/games/solarwolf
mkdir -p $RPM_BUILD_ROOT/usr/share/pixmaps
mkdir -p $RPM_BUILD_ROOT/usr/games
cp -pr code data solarwolf.py $RPM_BUILD_ROOT/usr/share/games/solarwolf
install -m 755 %{S:1} $RPM_BUILD_ROOT/usr/games/solarwolf
python /usr/%_lib/python/compileall.py -d /usr/share/games/solarwolf \
	$RPM_BUILD_ROOT/usr/share/games/solarwolf
install -m 0644 %{S:3} $RPM_BUILD_ROOT/usr/share/pixmaps/solarwolf.png
%suse_update_desktop_file -i %name Game ArcadeGame

%files
%defattr(-,root,root)
/usr/games/solarwolf
/usr/share/games/solarwolf
%doc *.txt
/usr/share/applications/%name.desktop
/usr/share/pixmaps/solarwolf.png

%changelog
openSUSE Build Service is sponsored by