From 81bb23e38bef8e987eab6cecc4ffce83e78541c92fa03a620dd0c994a7559ad0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Mail=C3=A4nder?= Date: Sun, 17 Feb 2013 14:18:52 +0000 Subject: [PATCH] Accepting request 155647 from home:jengelh:branches:games nottetris2 strictly requires love-0.7.2 OBS-URL: https://build.opensuse.org/request/show/155647 OBS-URL: https://build.opensuse.org/package/show/games/love-0_7_2?expand=0&rev=1 --- .gitattributes | 23 ++++++++++++ .gitignore | 1 + love-0.7.2-linux-src.tar.gz | 3 ++ love-0_7_2.changes | 11 ++++++ love-0_7_2.spec | 75 +++++++++++++++++++++++++++++++++++++ love-modplug.patch | 13 +++++++ love-remove-mpg123.patch | 71 +++++++++++++++++++++++++++++++++++ 7 files changed, 197 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 love-0.7.2-linux-src.tar.gz create mode 100644 love-0_7_2.changes create mode 100644 love-0_7_2.spec create mode 100644 love-modplug.patch create mode 100644 love-remove-mpg123.patch diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/love-0.7.2-linux-src.tar.gz b/love-0.7.2-linux-src.tar.gz new file mode 100644 index 0000000..676383a --- /dev/null +++ b/love-0.7.2-linux-src.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a57adcb0cbdc390a9bd8e2fe477bc175799b9ffd3486e01f859a36bf27f7f268 +size 900209 diff --git a/love-0_7_2.changes b/love-0_7_2.changes new file mode 100644 index 0000000..e1b3069 --- /dev/null +++ b/love-0_7_2.changes @@ -0,0 +1,11 @@ +------------------------------------------------------------------- +Tue Sep 13 17:57:56 UTC 2011 - jmatejek@suse.com + +- build fix - added devel dependencies for DevIL +- standard group name + +------------------------------------------------------------------- +Wed Jun 22 20:08:34 UTC 2011 - prusnak@opensuse.org + +- created package (version 0.7.2) + diff --git a/love-0_7_2.spec b/love-0_7_2.spec new file mode 100644 index 0000000..1c1ceda --- /dev/null +++ b/love-0_7_2.spec @@ -0,0 +1,75 @@ +# +# spec file for package love +# +# Copyright (c) 2013 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: love-0_7_2 +Version: 0.7.2 +Release: 0 +Summary: 2D gaming engine written in Lua +License: Zlib +Group: Development/Languages/Other +Url: http://love2d.org/ +Source: https://bitbucket.org/rude/love/downloads/love-0.7.2-linux-src.tar.gz +Patch0: love-modplug.patch +Patch1: love-remove-mpg123.patch +BuildRequires: autoconf +BuildRequires: automake +BuildRequires: gcc-c++ +BuildRequires: libmng-devel +BuildRequires: libtiff-devel +BuildRequires: libtool +BuildRequires: physfs-devel +BuildRequires: pkgconfig(IL) +BuildRequires: pkgconfig(freetype2) +BuildRequires: pkgconfig(gl) +BuildRequires: pkgconfig(libmodplug) +BuildRequires: pkgconfig(lua) < 5.2 +BuildRequires: pkgconfig(lua) >= 5.1 +BuildRequires: pkgconfig(openal) +BuildRequires: pkgconfig(sdl) +BuildRequires: pkgconfig(vorbisfile) +%if %{with mpg123} +BuildRequires: pkgconfig(libmpg123) +%endif + +%description +LÖVE is a framework for making 2D games in Lua. + +%prep +%setup -qn love-HEAD +sed -i 's/\r$//' *.txt +%patch0 +# remove mpg123 support +%patch1 +rm -f src/modules/sound/lullaby/Mpg123Decoder.{cpp,h} + +%build +autoreconf -fi +%configure +make %{?_smp_mflags} + +%install +b="%buildroot"; +make install DESTDIR="$b" +mv "$b/%_bindir"/love{,-0.7.2} + +%files +%defattr(-,root,root) +%doc changes.txt license.txt readme.txt +%_bindir/love-0.7.2 + +%changelog diff --git a/love-modplug.patch b/love-modplug.patch new file mode 100644 index 0000000..7c8a2eb --- /dev/null +++ b/love-modplug.patch @@ -0,0 +1,13 @@ +Index: src/modules/sound/lullaby/ModPlugDecoder.cpp +=================================================================== +--- src/modules/sound/lullaby/ModPlugDecoder.cpp.orig ++++ src/modules/sound/lullaby/ModPlugDecoder.cpp +@@ -42,8 +42,6 @@ namespace lullaby + // fill with modplug defaults (modplug _memsets_, so we could get + // garbage settings when the struct is only partially initialized) + // This does not exist yet on Windows. +- settings.mStereoSeparation = 128; +- settings.mMaxMixChannels = 32; + settings.mReverbDepth = 0; + settings.mReverbDelay = 0; + settings.mBassAmount = 0; diff --git a/love-remove-mpg123.patch b/love-remove-mpg123.patch new file mode 100644 index 0000000..a64525f --- /dev/null +++ b/love-remove-mpg123.patch @@ -0,0 +1,71 @@ +Index: Makefile.am +=================================================================== +--- Makefile.am.orig ++++ Makefile.am +@@ -1,3 +1,2 @@ +-ACLOCAL_AMFLAGS = -I platform/unix/m4 + SUBDIRS = src + EXTRA_DIST = changes.txt license.txt readme.txt +Index: configure.in +=================================================================== +--- configure.in.orig ++++ configure.in +@@ -1,7 +1,6 @@ + AC_INIT([love], [HEAD]) + AC_CONFIG_HEADERS([config.h]) + AC_CONFIG_AUX_DIR([platform/unix]) +-AC_CONFIG_MACRO_DIR([platform/unix/m4]) + AC_CONFIG_SRCDIR([src/love.cpp]) + AM_INIT_AUTOMAKE([foreign -Wall foreign tar-ustar]) + AC_PREFIX_DEFAULT([/usr]) +@@ -36,8 +35,6 @@ AC_SEARCH_LIBS([TIFFOpen], [tiff], [], A + AC_SEARCH_LIBS([FT_Load_Glyph], [freetype], [], AC_MSG_ERROR([Can't LÖVE without FreeType])) + AC_SEARCH_LIBS([PHYSFS_init], [physfs], [], AC_MSG_ERROR([Can't LÖVE without PhysicsFS])) + AC_SEARCH_LIBS([ModPlug_Load], [modplug], [], AC_MSG_ERROR([Can't LÖVE without ModPlug])) +-AC_SEARCH_LIBS([mpg123_open_feed], [mpg123], [], AC_MSG_ERROR([Can't LÖVE without Mpg123])) +-AC_SEARCH_LIBS([mpg123_seek_64], [mpg123], AC_SUBST([FILE_OFFSET],[-D_FILE_OFFSET_BITS=64]), AC_SUBST([FILE_OFFSET],[])) + AC_SEARCH_LIBS([ov_open], [vorbisfile], [], AC_MSG_ERROR([Can't LÖVE without VorbisFile])) + AC_CONFIG_FILES([ + Makefile +Index: src/Makefile.am +=================================================================== +--- src/Makefile.am.orig ++++ src/Makefile.am +@@ -31,8 +31,6 @@ love_SOURCES = \ + ./modules/sound/lullaby/VorbisDecoder.cpp \ + ./modules/sound/lullaby/Sound.h \ + ./modules/sound/lullaby/Sound.cpp \ +-./modules/sound/lullaby/Mpg123Decoder.h \ +-./modules/sound/lullaby/Mpg123Decoder.cpp \ + ./modules/sound/lullaby/ModPlugDecoder.h \ + ./modules/sound/lullaby/ModPlugDecoder.cpp \ + ./modules/sound/lullaby/Decoder.h \ +Index: src/modules/sound/lullaby/Sound.cpp +=================================================================== +--- src/modules/sound/lullaby/Sound.cpp.orig ++++ src/modules/sound/lullaby/Sound.cpp +@@ -21,7 +21,6 @@ + #include "Sound.h" + + #include "ModPlugDecoder.h" +-#include "Mpg123Decoder.h" + #include "VorbisDecoder.h" + //#include "FLACDecoder.h" + +@@ -37,7 +36,6 @@ namespace lullaby + + Sound::~Sound() + { +- Mpg123Decoder::quit(); + } + + const char * Sound::getName() const +@@ -55,8 +53,6 @@ namespace lullaby + // Find a suitable decoder here, and return it. + if(ModPlugDecoder::accepts(ext)) + decoder = new ModPlugDecoder(data, ext, bufferSize); +- else if(Mpg123Decoder::accepts(ext)) +- decoder = new Mpg123Decoder(data, ext, bufferSize); + else if(VorbisDecoder::accepts(ext)) + decoder = new VorbisDecoder(data, ext, bufferSize); + /*else if (FLACDecoder::accepts(ext))