File penguin-command.spec of Package penguin-command

#
# spec file for package penguin-command
#
# 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:           penguin-command
Version:        1.6.11
Release:        0
Summary:        A Clone of the Classic Missile Command Game
License:        GPL-2.0+
Group:          Amusements/Games/Action/Shoot
Url:            http://www.linux-games.com/penguin-command/
Source:         %{name}-%{version}.tar.bz2
Source1:        %{name}.desktop
# PATCH-MISSING-TAG -- See http://wiki.opensuse.org/openSUSE:Packaging_Patches_guidelines
Patch0:         %{name}-%{version}-hiscore.patch
BuildRequires:  SDL_image-devel
BuildRequires:  SDL_mixer-devel
BuildRequires:  libjpeg-devel
BuildRequires:  libpng-devel
BuildRequires:  update-desktop-files
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Penguin Command is a clone of the classic Missile Command game, with
better graphics and sound. The gameplay has been slightly modified.

%prep
%setup -q
%patch0

%build
%configure
make

%install
make DESTDIR=$RPM_BUILD_ROOT install
%suse_update_desktop_file -i %{name} Game ArcadeGame
mkdir -p %{buildroot}%{_datadir}/pixmaps
cp data/gfx/icon.xpm %{buildroot}%{_datadir}/pixmaps/%{name}.xpm

%files
%defattr(-,root,root)
%{_bindir}/*
%{_datadir}/penguin-command
%doc AUTHORS COPYING ChangeLog NEWS README
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.xpm
%doc %{_mandir}/man6/*

%changelog
openSUSE Build Service is sponsored by