File tuxfootball.spec of Package tuxfootball
#
# spec file for package tuxfootball
#
# 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: tuxfootball
Version: 0.3.1
Release: 0
Summary: 2D Football Game
License: GPL-2.0+
Group: Amusements/Games/Action/Other
Url: http://tuxfootball.sourceforge.net/
Source: http://prdownloads.sourceforge.net/tuxfootball/tuxfootball-%{version}.tar.gz
Source1: tuxfootball.desktop
# PATCH-FIX-UPSTREAM tuxfootball-includefix.patch
Patch0: tuxfootball-includefix.patch
BuildRequires: SDL-devel >= 1.2.0
BuildRequires: SDL_image-devel
BuildRequires: SDL_mixer-devel
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: gcc-c++
BuildRequires: intltool
BuildRequires: libtool
BuildRequires: make
BuildRequires: pkgconfig
BuildRequires: update-desktop-files
BuildRequires: perl(XML::Parser)
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Tux Football is a great 2D soccer (sometimes called football) game for Windows
and Linux. It's bringing old style gameplay from DOS times back to the desktop
with up to date graphics! It's gameplay is similar to old classics such as
Amco's Kick Off and Sensible Software's Sensible Soccer.
The gameplay is designed to be quick, responsive and fun. You are always in
control of the player closest to the ball. The ball is controled via two
differentn kick buttons - one for pass, and one for shoot. Aftertouch can be
applied to shots by quickly pressing and holding the direction you want the
ball to bend towards. Pushing in the opposite direction to what you kicked the
ball makes it raise into the air, pushing in the same direction as the ball
makes it dip towards the ground.
%prep
%setup -q
%patch0 -p1
%build
%configure
make %{?_smp_mflags} V=1
%install
make DESTDIR=%{buildroot} install
rm -rf "%{buildroot}%{_prefix}/doc"
install -D -m0644 "%{SOURCE1}" "%{buildroot}%{_datadir}/applications/%{name}.desktop"
%suse_update_desktop_file -r "%{name}" Game SportsGame
%find_lang tuxfootball
%files -f tuxfootball.lang
%defattr(-,root,root)
%doc AUTHORS ChangeLog COPYING NEWS README
%{_bindir}/tuxfootball
%{_datadir}/tuxfootball
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/
%changelog