pangzero-1.3-2kkr2010.0.spec

%define name             pangzero
%define version          1.3
%define release          %mkrel 2


Summary:        A clone of Super Pang
Summary(ja):    Super Pangのクローン
Name:           %{name}
Version:        %{version}
Release:        %{release}
Source:         http://prdownloads.sourceforge.net/pangzero/%{name}-%{version}.tar.gz
  # Size  : 3,049,841
  # MD5   : 57a3ba5bf4f0e4a9590fbd6606c9f91c
  # SHA-1 : ccd8d64e36cbc48bb4c5d6c53a21d8f928a99297
Patch:          %{name}-%{version}-linux.patch
  # Size  : 2,443
  # MD5   : 72bcec046f472519df430a0392e25744
  # SHA-1 : 20dca7ac619bd11475a7249d08c5f8811175077e
URL:            http://apocalypse.rulez.org/pangzero
License:        GPLv2
Group:          Games/Arcade
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-buildroot
BuildRequires:  perl-SDL
Suggests:       xdg-utils zenity
BuildArch:      noarch


%description
Pang Zero is a clone of Super Pang, a fast-paced action game that involves
popping balloons with a harpoon. The intention of our effort is to create a
fun, open-source game that many (currently up to 6) people can play
together.


%description -l ja
Pang ZeroはSuper Pangのクローンで、跳ねる風船をモリで撃つ内容のテンポの良いアクションゲームです。
面白く、オープンソースで、多人数(現状6人まで)が同時にプレイできるゲームを作ることを目的としています。


%prep
%setup -q
%patch -p1


%build
%configure2_5x --bindir=%{_gamesbindir} --datadir=%{_gamesdatadir}


%install
%{__rm} %{buildroot} -fr
%make install DESTDIR=%{buildroot}
%{__cat} <<EOF > pangzero.desktop
[Desktop Entry]
Name=Pang Zero
Comment=A clone of Super Pang
Comment[ja]=Super Pangのクローン
Exec=pangzero
Type=Application
Icon=%{_gamesdatadir}/%{name}/icon.png
Categories=Game;ActionGame;ArcadeGame;
EOF
%{__install} -D -m 644 {,%{buildroot}/%{_datadir}/applications/}pangzero.desktop
%{__lzma} AUTHORS ChangeLog NEWS README


%clean
%{__rm} %{buildroot} -fr


%files
%defattr(-, root, root)
%{_gamesbindir}/pangzero
%{_gamesdatadir}/%{name}/
%{_datadir}/applications/pangzero.desktop
%doc AUTHORS* ChangeLog* NEWS* README*


%changelog
* Fri Nov 20 2009 kakurasan <kakurasan AT gmail DOT com> 1.3-2kkr2010.0
- drop unneeded Requires
- BuildRequires: perl-SDL
- improvement of error/URL handling
- fix icon path
- Suggests: xdg-utils zenity

* Fri Sep 04 2009 kakurasan <kakurasan AT gmail DOT com> 1.3-1kkr2009.1
- initial build