From d01aeb7ec44ed9a90e94310b19056475508e1ea2 Mon Sep 17 00:00:00 2001 From: Automatic Build System Date: Sat, 6 Jan 2024 07:37:13 +0100 Subject: [PATCH] automatic version update by autodist [release 1.5.4-1mamba;Mon Oct 15 2012] --- README.md | 3 ++ neverball-1.5.4-libpng-1.6.patch | 21 +++++++++ neverball.desktop | 11 +++++ neverball.spec | 77 ++++++++++++++++++++++++++++++++ neverputt.desktop | 11 +++++ 5 files changed, 123 insertions(+) create mode 100644 neverball-1.5.4-libpng-1.6.patch create mode 100644 neverball.desktop create mode 100644 neverball.spec create mode 100644 neverputt.desktop diff --git a/README.md b/README.md index bc89a4f..39b0c33 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,5 @@ # neverball +Tilt the floor to roll a ball through an obstacle course before time runs out. Neverball is part puzzle game, part action game, and entirely a test of skill. +Also found here is Neverputt, a hot-seat multiplayer miniature golf game using the physics and graphics of Neverball. + diff --git a/neverball-1.5.4-libpng-1.6.patch b/neverball-1.5.4-libpng-1.6.patch new file mode 100644 index 0000000..d7b2246 --- /dev/null +++ b/neverball-1.5.4-libpng-1.6.patch @@ -0,0 +1,21 @@ +Index: neverball-1.5.4/share/base_image.c +=================================================================== +--- neverball-1.5.4.orig/share/base_image.c ++++ neverball-1.5.4/share/base_image.c +@@ -15,6 +15,7 @@ + #include + #include + #include ++#include + #include + + #include "glext.h" +@@ -94,7 +95,7 @@ static void *image_load_png(const char * + default: longjmp(png_jmpbuf(readp), -1); + } + +- if (!(bytep = png_malloc(readp, h * png_sizeof(png_bytep)))) ++ if (!(bytep = png_malloc(readp, h * sizeof(png_bytep)))) + longjmp(png_jmpbuf(readp), -1); + + /* Allocate the final pixel buffer and read pixels there. */ diff --git a/neverball.desktop b/neverball.desktop new file mode 100644 index 0000000..6663af5 --- /dev/null +++ b/neverball.desktop @@ -0,0 +1,11 @@ +[Desktop Entry] +Encoding=UTF-8 +GenericName=A 3D platform-base game +GenericName[it]=Gioco di piattaforma 3D +Exec=neverball +Icon=neverball +Name=Neverball +Path= +Terminal=false +Type=Application +Categories=Game;ArcadeGame; diff --git a/neverball.spec b/neverball.spec new file mode 100644 index 0000000..aed7785 --- /dev/null +++ b/neverball.spec @@ -0,0 +1,77 @@ +Name: neverball +Version: 1.5.4 +Release: 1mamba +Summary: Neverball is part puzzle game, part action game, and entirely a test of skill +Group: Graphical Desktop/Applications/Games +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://icculus.org/neverball +Source: http://icculus.org/neverball/neverball-%{version}.tar.gz +Source1: neverball.desktop +Source2: neverputt.desktop +Patch0: neverball-1.5.4-libpng-1.6.patch +License: GPL +BuildRoot: %{_tmppath}/%{name}-%{version}-root +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libGL-devel +BuildRequires: libjpeg-devel +BuildRequires: libpng-devel +BuildRequires: libSDL-devel +BuildRequires: libSDL_ttf-devel +BuildRequires: libvorbis-devel +BuildRequires: libX11-devel +## AUTOBUILDREQ-END +BuildRequires: libSDL_mixer-devel >= 1.2.7 +BuildRequires: libSDL_image-devel >= 1.2.5 + +%description +Tilt the floor to roll a ball through an obstacle course before time runs out. Neverball is part puzzle game, part action game, and entirely a test of skill. +Also found here is Neverputt, a hot-seat multiplayer miniature golf game using the physics and graphics of Neverball. + +%prep +%setup -q +%patch0 -p1 +sed -i "s|CONFIG_DATA .*|CONFIG_DATA \"%{_datadir}/neverball/data\"|" share/base_config.h +sed -i "s|CONFIG_LOCALE .*|CONFIG_LOCALE \"%{_datadir}/neverball/locale\"|" share/base_config.h + +%build +%make LDFLAGS="-lX11 -lm" + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +install -d -m0755 %{buildroot}%{_datadir}/neverball +install -D -m0755 neverball %{buildroot}%{_bindir}/neverball +install -D -m0755 neverputt %{buildroot}%{_bindir}/neverputt +install -D -m0644 data/icon/neverball.png %{buildroot}%{_datadir}/pixmaps/neverball.png +install -D -m0644 data/icon/neverputt.png %{buildroot}%{_datadir}/pixmaps/neverputt.png +install -D -m0644 %{SOURCE1} %{buildroot}%{_datadir}/applications/neverball.desktop +install -D -m0644 %{SOURCE2} %{buildroot}%{_datadir}/applications/neverputt.desktop +cp -a data %{buildroot}%{_datadir}/neverball/ +cp -a locale %{buildroot}%{_datadir}/neverball/ + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files +%defattr(-,root,root) +%{_bindir}/neverball +%{_bindir}/neverputt +%{_datadir}/pixmaps/neverball.png +%{_datadir}/pixmaps/neverputt.png +%{_datadir}/applications/neverball.desktop +%{_datadir}/applications/neverputt.desktop +%dir %{_datadir}/neverball +%{_datadir}/neverball/* +%doc CHANGES COPYING README + +%changelog +* Mon Oct 15 2012 Automatic Build System 1.5.4-1mamba +- automatic version update by autodist + +* Tue Feb 17 2009 Silvan Calarco 1.5.0-1mamba +- automatic update by autodist + +* Thu Mar 22 2007 Silvan Calarco 1.4.0-1qilnx +- package created by autospec diff --git a/neverputt.desktop b/neverputt.desktop new file mode 100644 index 0000000..c013c71 --- /dev/null +++ b/neverputt.desktop @@ -0,0 +1,11 @@ +[Desktop Entry] +Encoding=UTF-8 +GenericName=A multiplayer miniature golf game +GenericName[it]=Gioco del minigolf multiutente +Exec=neverputt +Icon=neverputt +Name=Neverputt +Path= +Terminal=false +Type=Application +Categories=Game;ArcadeGame;