commit c9703a2e8ccb54499dd80dac1452e6fbeee4923e
Author: Sérgio M. Basto <sergio(a)serjux.com>
Date: Mon Sep 3 00:03:16 2018 +0100
Revert "No longer maintained upstream"
This reverts commit e712eceeb20f7af3f00f258213bef3915e8d3157.
.gitignore | 1 +
10_nowebpage.patch | 15 +++++
dead.package | 1 -
pangzero.desktop | 9 +++
pangzero.spec | 163 +++++++++++++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
6 files changed, 189 insertions(+), 1 deletion(-)
---
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..9b201ea
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+pangzero-master.tar.gz
diff --git a/10_nowebpage.patch b/10_nowebpage.patch
new file mode 100644
index 0000000..4d5e9c6
--- /dev/null
+++ b/10_nowebpage.patch
@@ -0,0 +1,15 @@
+Author: Paul Wise <pabs(a)debian.org>
+Description: Default ShowWebsite so webpage not called on exit
+Bug-Debian:
http://bugs.debian.org/481998
+Last-Update: 2012-03-04
+Forwarded: no
+--- a/lib/Games/PangZero/Globals.pm
++++ b/lib/Games/PangZero/Globals.pm
+@@ -242,6 +242,6 @@
+ $Games::PangZero::FullScreen = 1;
+ $Games::PangZero::UnicodeMode = 0;
+ $Games::PangZero::Slippery = 0;
+-$Games::PangZero::ShowWebsite = 0;
++$Games::PangZero::ShowWebsite = 1.4.1;
+
+ 1;
diff --git a/pangzero.desktop b/pangzero.desktop
new file mode 100644
index 0000000..1586845
--- /dev/null
+++ b/pangzero.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Name=Pang Zero
+GenericName=Super Pang Clone
+Comment=A clone and enhancement of Super Pang
+Exec=pangzero
+Icon=pangzero
+Terminal=false
+Type=Application
+Categories=Game;ArcadeGame;
diff --git a/pangzero.spec b/pangzero.spec
new file mode 100644
index 0000000..b9f41b8
--- /dev/null
+++ b/pangzero.spec
@@ -0,0 +1,163 @@
+Name: pangzero
+Version: 1.4.1
+Release: 9%{?dist}
+Summary: A clone and enhancement of Super Pang
+Group: Amusements/Games
+License: GPLv2
+URL:
http://apocalypse.rulez.org/pangzero
+# This was downloaded from:
https://github.com/jwrdegoede/pangzero
+# Using githubs download current revision functionality
+# Note no proper tarbals there unfortunately :|
+Source0: pangzero-master.tar.gz
+Source1: %{name}.desktop
+Patch0: 10_nowebpage.patch
+BuildArch: noarch
+BuildRequires: desktop-file-utils
+BuildRequires: lame
+BuildRequires: perl-SDL >= 2.536
+BuildRequires: vorbis-tools
+BuildRequires: perl(Module::Build)
+BuildRequires: perl(File::ShareDir)
+BuildRequires: perl(File::Spec)
+BuildRequires: perl(Time::HiRes)
+BuildRequires: perl-generators
+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 -n pangzero-master
+%patch0 -p1
+
+# Convert audio, Fedora's SDL does not support MP3
+lame --silent --decode data/UPiPang.mp3 - | oggenc -Q - -o data/UPiPang.ogg
+
+
+%build
+perl Build.PL --installdirs vendor
+./Build
+
+
+%install
+./Build install --destdir=%{buildroot}
+rm %{buildroot}%{perl_vendorarch}/auto/Games/PangZero/.packlist
+mkdir -p %{buildroot}%{_datadir}/applications
+mkdir -p %{buildroot}%{_datadir}/icons/hicolor/32x32/apps/
+desktop-file-install --vendor "" \
+ --dir %{buildroot}%{_datadir}/applications \
+ %{SOURCE1}
+install -m0644 data/icon.png
%{buildroot}%{_datadir}/icons/hicolor/32x32/apps/%{name}.png
+
+
+%post
+touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
+
+%postun
+if [ $1 -eq 0 ] ; then
+ touch --no-create %{_datadir}/icons/hicolor &>/dev/null
+ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
+fi
+
+%posttrans
+gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
+
+
+%files
+%doc AUTHORS ChangeLog COPYING NEWS README
+%{_bindir}/pangzero
+%{perl_vendorlib}/Games
+%{perl_vendorlib}/auto
+%{_datadir}/icons/hicolor/32x32/apps/%{name}.png
+%{_datadir}/applications/%{name}.desktop
+%exclude %{perl_vendorlib}/auto/share/dist/Games-PangZero/UPiPang.mp3
+%exclude %{perl_vendorlib}/auto/share/dist/Games-PangZero/icon.ico
+%exclude %{perl_vendorlib}/auto/share/dist/Games-PangZero/icon.png
+
+
+%changelog
+* Fri Jul 27 2018 RPM Fusion Release Engineering <leigh123linux(a)gmail.com> -
1.4.1-9
+- Rebuilt for
https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
+
+* Thu Mar 01 2018 RPM Fusion Release Engineering <leigh123linux(a)googlemail.com> -
1.4.1-8
+- Rebuilt for
https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
+
+* Thu Aug 31 2017 RPM Fusion Release Engineering <kwizart(a)rpmfusion.org> - 1.4.1-7
+- Rebuilt for
https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
+
+* Sat Jul 15 2017 Paul Howarth <paul(a)city-fan.org> - 1.4.1-6
+- Perl 5.26 rebuild
+
+* Mon Mar 20 2017 RPM Fusion Release Engineering <kwizart(a)rpmfusion.org> - 1.4.1-5
+- Rebuilt for
https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
+
+* Fri Sep 30 2016 Sérgio Basto <sergio(a)serjux.com> - 1.4.1-4
+- Add perl-generators to get proper requires/provides on F-25 and later
+
+* Fri Sep 30 2016 Sérgio Basto <sergio(a)serjux.com> - 1.4.1-3
+- Rebuild for Perl with locale (buildroot with glibc-all-langpacks)
+
+* Sun Aug 31 2014 Sérgio Basto <sergio(a)serjux.com> - 1.4.1-2
+- Rebuilt for
https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
+
+* Sun Oct 28 2012 Hans de Goede <j.w.r.degoede(a)gmail.com> - 1.4.1-1
+- New upstream:
https://github.com/jwrdegoede/pangzero
+- New upstream version 1.4.1, which works with latest perl-SDL
+
+* Wed Feb 08 2012 Nicolas Chauvet <kwizart(a)gmail.com> - 1.3-4
+- Rebuilt for
https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
+
+* Sun Mar 29 2009 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info> - 1.3-3
+- rebuild for new F11 features
+
+* Mon Sep 08 2008 Xavier Lamien <lxtnow[at]gmail.com> - 1.3-2
+- Update for rpmfusion inclusion.
+
+* 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
diff --git a/sources b/sources
new file mode 100644
index 0000000..b95a881
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+8f8e951d8220f60d7ee70b77a6872da6 pangzero-master.tar.gz