Author: laxathom
Update of /cvs/free/rpms/pangzero/F-8
In directory se02.es.rpmfusion.net:/tmp/cvs-serv16200/F-8
Modified Files:
.cvsignore sources
Added Files:
pangzero-1.2-nowin32.patch pangzero.spec
Log Message:
Initial import.
pangzero-1.2-nowin32.patch:
--- NEW FILE pangzero-1.2-nowin32.patch ---
--- pangzero-1.2/bin/pangzero.orig 2007-06-28 08:08:40.000000000 +0100
+++ pangzero-1.2/bin/pangzero 2007-06-30 00:15:36.000000000 +0100
@@ -4945,10 +4945,6 @@
eval("SDL::Quit"); warn $@ if $@;
$message = "Pang Zero $::Version died:\n$message";
if (&IsMicrosoftWindows()) {
- eval( '
- use Win32;
- Win32::MsgBox($message, MB_ICONEXCLAMATION, "Pang Zero error");
- ' );
return;
} elsif ($ENV{'DISPLAY'}) {
$message =~ s/\"/\\"/g;
--- NEW FILE pangzero.spec ---
Name: pangzero
Version: 1.3
Release: 1%{?dist}
Summary: A clone and enhancement of Super Pang
Group: Amusements/Games
License: GPLv2
URL:
http://apocalypse.rulez.org/pangzero
Source0:
http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
Patch0: pangzero-1.2-nowin32.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires: desktop-file-utils
BuildRequires: lame
BuildRequires: perl-SDL >= 2.1.0
BuildRequires: vorbis-tools
Requires: hicolor-icon-theme
%description
Pang Zero is a clone and enhancement of Super Pang, a fast-paced action game
that involves popping balloons with a harpoon. Currently up to 6 people can
play together.
%prep
%setup -q
%patch -p1
# Set the data location
sed -i 's|$::DataDir = '`echo -e "\047\047"`'|$::DataDir =
'`echo -e "\047%{_datadir}/%{name}\047"`'|' bin/pangzero
# Convert audio, Fedora's SDL does not support MP3
lame --silent --decode data/UPiPang.mp3 - | oggenc -Q - -o data/UPiPang.ogg ||:
# Use the ogg instead of mp3
sed -i 's|UPiPang.mp3|UPiPang.ogg|' bin/pangzero
%build
%configure
make %{?_smp_mflags}
# Build desktop file
cat >%{name}.desktop <<EOF
[Desktop Entry]
Encoding=UTF-8
Name=Pang Zero
GenericName=Super Pang Clone
Comment=%{summary}
Exec=%{name}
Icon=%{name}
Terminal=false
Type=Application
Categories=Game;ArcadeGame;
EOF
%install
rm -rf %{buildroot}
make install DESTDIR=%{buildroot}
mkdir -p %{buildroot}%{_datadir}/applications
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/32x32/apps/
install -m0644 data/UPiPang.ogg %{buildroot}%{_datadir}/%{name}
desktop-file-install --vendor dribble \
--dir %{buildroot}%{_datadir}/applications \
%{name}.desktop
install -m0644 data/icon.png %{buildroot}%{_datadir}/icons/hicolor/32x32/apps/%{name}.png
%clean
rm -rf %{buildroot}
%post
touch --no-create %{_datadir}/icons/hicolor || :
if [ -x %{_bindir}/gtk-update-icon-cache ]; then
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
fi
%postun
touch --no-create %{_datadir}/icons/hicolor || :
if [ -x %{_bindir}/gtk-update-icon-cache ]; then
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
fi
%files
%defattr(-,root,root,-)
%{_bindir}/pangzero
%{_datadir}/%{name}
%{_datadir}/icons/hicolor/32x32/apps/%{name}.png
%{_datadir}/applications/dribble-%{name}.desktop
%exclude %{_datadir}/%{name}/UPiPang.mp3
%exclude %{_datadir}/%{name}/icon.ico
%doc AUTHORS ChangeLog COPYING NEWS README
%changelog
* Mon Jan 07 2008 Ian Chapman <packages[AT]amiga-hardware.com> 1.3-1
- Upgrade to 1.3
- License change due to new guidelines
* Fri Jun 29 2007 Ian Chapman <packages[AT]amiga-hardware.com> 1.2-1
- Upgrade to 1.2
- Minor changes to spec due to new guidelines
- Updated patch as some fixes are now fixed upstream
* Thu Jan 04 2007 Ian Chapman <packages[AT]amiga-hardware.com> 1.1-1
- Upgrade to 1.1
- Patched so perl(Win32) is not picked up as a dependancy
- Patched so that view website on exit works properly
- Patched for ogg audio as perl-SDL no longer supports MP3 since moving to FE
- Added vorbis-tools and lame BRs for audio conversion
- Use the icon supplied in this version instead of our own
* Wed Nov 01 2006 Ian Chapman <packages[AT]amiga-hardware.com> 0.15-2
- Rebuild due to perl-SDL 1 -> 2 upgrade on FC5
- Now requires perl SDL 2+ on all supported FCs.
* Sat Oct 14 2006 Ian Chapman <packages[AT]amiga-hardware.com> 0.15-1
- Upgrade to 0.15
- Updated perl-SDL2 patch
* Fri Oct 06 2006 Ian Chapman <packages[AT]amiga-hardware.com> 0.14-1
- Upgrade to 0.14
- Updated perl-SDL2 patch
- Added perl-SDL buildrequire as configure now checks to see if it's installed
* Sat Aug 26 2006 Ian Chapman <packages[AT]amiga-hardware.com> 0.12-2
- Added patch to run with perl-SDL v2 on FC6 courtesy of Hans de Goede
* Sat Aug 12 2006 Ian Chapman <packages[AT]amiga-hardware.com> 0.12-1
- Upgraded to 0.12
- Dropped my division by zero patch as it's been merged upstream
* Sun Jul 30 2006 Ian Chapman <packages[AT]amiga-hardware.com> 0.11-3
- Added patch to fix division by zero (BZ #10)
* Sun Jul 23 2006 Ian Chapman <packages[AT]amiga-hardware.com> 0.11-2
- Don't use /usr/share/games/%%{name} as that is deprecated too.
* Thu Jul 20 2006 Ian Chapman <packages[AT]amiga-hardware.com> 0.11-1
- Initial Release
Index: .cvsignore
===================================================================
RCS file: /cvs/free/rpms/pangzero/F-8/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore 1 Jun 2008 12:22:32 -0000 1.1
+++ .cvsignore 4 Sep 2008 11:04:10 -0000 1.2
@@ -0,0 +1 @@
+pangzero-1.3.tar.gz
Index: sources
===================================================================
RCS file: /cvs/free/rpms/pangzero/F-8/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources 1 Jun 2008 12:22:32 -0000 1.1
+++ sources 4 Sep 2008 11:04:10 -0000 1.2
@@ -0,0 +1 @@
+57a3ba5bf4f0e4a9590fbd6606c9f91c pangzero-1.3.tar.gz