[packages/guile-sdl] - new - info patch to unify direntry - system-sdlgfx patch to use system SDL_gfx - somode patch to i
qboosh
qboosh at pld-linux.org
Wed Apr 24 17:40:09 CEST 2013
commit 69a03d8188af59e861dfdda5c2405ad0627d62cb
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Wed Apr 24 17:39:58 2013 +0200
- new
- info patch to unify direntry
- system-sdlgfx patch to use system SDL_gfx
- somode patch to install .so modules as executable, so rpm can generate deps
guile-sdl-info.patch | 14 ++++++
guile-sdl-somode.patch | 11 +++++
guile-sdl-system-sdlgfx.patch | 77 ++++++++++++++++++++++++++++++
guile-sdl.spec | 107 ++++++++++++++++++++++++++++++++++++++++++
4 files changed, 209 insertions(+)
---
diff --git a/guile-sdl.spec b/guile-sdl.spec
new file mode 100644
index 0000000..d17a44d
--- /dev/null
+++ b/guile-sdl.spec
@@ -0,0 +1,107 @@
+Summary: Guile-SDL - set of modules that provide Guile bindings for SDL
+Summary(pl.UTF-8): Guile-SDL - zestaw modułów zapewniających wiązania Guile do SDL
+Name: guile-sdl
+Version: 0.4.3
+Release: 1
+License: LGPL v3+
+Group: Libraries
+Source0: http://ftp.gnu.org/gnu/guile-sdl/%{name}-%{version}.tar.xz
+# Source0-md5: f92e5f8bf9301a0331b07142d4c71161
+Patch0: %{name}-info.patch
+Patch1: %{name}-system-sdlgfx.patch
+Patch2: %{name}-somode.patch
+URL: http://www.gnu.org/software/guile-sdl/
+BuildRequires: SDL-devel >= 1.2.0
+BuildRequires: SDL_gfx-devel >= 2.0.22
+BuildRequires: SDL_image-devel
+BuildRequires: SDL_mixer-devel
+BuildRequires: SDL_ttf-devel
+BuildRequires: autoconf >= 2.50
+BuildRequires: automake >= 1:1.12.2
+BuildRequires: guile-devel >= 5:1.4
+BuildRequires: libtool >= 2:2.4.2
+BuildRequires: texinfo
+BuildRequires: tar >= 1:1.22
+BuildRequires: xz
+Requires(post,postun): /sbin/ldconfig
+Requires: SDL >= 1.2.0
+Requires: SDL_gfx >= 2.0.22
+Requires: guile >= 5:1.4
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This package contains Guile-SDL, a set of modules that provide
+bindings for SDL (Simple DirectMedia Layer) to enable Guile
+programmers to do all the nice things you can do with SDL.
+
+Most of the SDL functions have been wrapped with the exception of a
+few functions that were too C-centric. The SDL Threads and the Audio
+functions haven't been included because of the problems with Guile
+code being run from more than one thread. However audio programming
+can be done with the module (sdl mixer) that requires the SDL_mixer
+library. Bindings for SDL_gfx are also included.
+
+%description -l pl.UTF-8
+Ten pakiet zawiera Guile-SDL - zbiór modułów będących wiązaniami do
+bibliotek SDL (Simple DirectMedia Layer), pozwalających programistom
+Guile robić wszystkie przyjemne rzeczy, które można robić z użyciem
+SDL-a.
+
+Obudowanych jest większość funkcji SDL-a z wyjątkiem kilku, które były
+zbyt C-centryczne. Funkcje dotyczące wątków (SDL Threads) i dźwięku
+(SDL Audio) nie zostały dołączone ze względu na problemy z działaniem
+kodu Guile w więcej niż jednym wątku. Pprogramowanie dźwięku jest
+jednak możliwe przy użyciu modułu (sdl mixer), wymagającego biblioteki
+SDL_mixer. Dołączone są także wiązania do biblioteki SDL_gfx.
+
+%prep
+%setup -q
+%patch0 -p1
+%patch1 -p1
+%patch2 -p1
+
+# ensure system SDL_gfx is used
+%{__rm} -r src/SDL_gfx
+
+%build
+%{__libtoolize}
+%{__aclocal} -I build-aux
+%{__autoconf}
+%{__autoheader}
+%{__automake}
+%configure
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post -p /sbin/postshell
+/sbin/ldconfig
+-/usr/sbin/fix-info-dir -c %{_infodir}
+
+%postun -p /sbin/postshell
+/sbin/ldconfig
+-/usr/sbin/fix-info-dir -c %{_infodir}
+
+%files
+%defattr(644,root,root,755)
+%doc AUTHORS ChangeLog HISTORY NEWS README THANKS
+%dir %{_libdir}/guile-sdl
+%attr(755,root,root) %{_libdir}/guile-sdl/gfx.so
+%attr(755,root,root) %{_libdir}/guile-sdl/mixer.so
+%attr(755,root,root) %{_libdir}/guile-sdl/sdl.so
+%attr(755,root,root) %{_libdir}/guile-sdl/ttf.so
+%dir %{_datadir}/guile/site/sdl
+%{_datadir}/guile/site/sdl/gfx
+%{_datadir}/guile/site/sdl/misc-utils.scm
+%{_datadir}/guile/site/sdl/mixer
+%{_datadir}/guile/site/sdl/sdl
+%{_datadir}/guile/site/sdl/simple.scm
+%{_datadir}/guile/site/sdl/ttf
+%{_infodir}/guile-sdl.info*
diff --git a/guile-sdl-info.patch b/guile-sdl-info.patch
new file mode 100644
index 0000000..09155aa
--- /dev/null
+++ b/guile-sdl-info.patch
@@ -0,0 +1,14 @@
+--- guile-sdl-0.4.3/doc/guile-sdl.texi.orig 2013-03-18 12:40:00.000000000 +0100
++++ guile-sdl-0.4.3/doc/guile-sdl.texi 2013-04-23 21:26:23.051482309 +0200
+@@ -12,9 +12,9 @@
+
+ @include version.texi
+
+- at dircategory Guile modules
++ at dircategory The Algorithmic Language Scheme:
+ @direntry
+-* Guile-SDL: (guile-sdl). SDL for Guile.
++* Guile-SDL: (guile-sdl). SDL for Guile
+ @end direntry
+
+ @copying
diff --git a/guile-sdl-somode.patch b/guile-sdl-somode.patch
new file mode 100644
index 0000000..884228f
--- /dev/null
+++ b/guile-sdl-somode.patch
@@ -0,0 +1,11 @@
+--- guile-sdl-0.4.3/build-aux/sofix.orig 2011-10-25 06:48:29.000000000 +0200
++++ guile-sdl-0.4.3/build-aux/sofix 2013-04-24 17:29:40.451785805 +0200
+@@ -65,7 +65,7 @@
+ $rep $la lib$la ;;
+ esac
+
+- chmod -x $la $dlname
++ chmod -x $la
+
+ case $flags in *,no-la,*) rm -f $la ;; esac
+ done
diff --git a/guile-sdl-system-sdlgfx.patch b/guile-sdl-system-sdlgfx.patch
new file mode 100644
index 0000000..881a213
--- /dev/null
+++ b/guile-sdl-system-sdlgfx.patch
@@ -0,0 +1,77 @@
+--- guile-sdl-0.4.3/src/sdlgfx.c.orig 2013-03-18 18:24:55.000000000 +0100
++++ guile-sdl-0.4.3/src/sdlgfx.c 2013-04-24 16:57:08.435201056 +0200
+@@ -62,7 +62,7 @@
+ * gfxPrimitives
+ */
+
+-#include "SDL_gfx/SDL_gfxPrimitives.h"
++#include "SDL/SDL_gfxPrimitives.h"
+
+
+ PRIMPROC
+@@ -688,7 +688,7 @@
+ * rotozoom
+ */
+
+-#include "SDL_gfx/SDL_rotozoom.h"
++#include "SDL/SDL_rotozoom.h"
+
+
+ PRIMPROC
+@@ -824,7 +824,7 @@
+ * framerate
+ */
+
+-#include "SDL_gfx/SDL_framerate.h"
++#include "SDL/SDL_framerate.h"
+
+ static long fpsmgr_tag;
+
+@@ -943,7 +943,7 @@
+ * RGBA extras
+ */
+
+-#include "SDL_gfx/SDL_gfxBlitFunc.h"
++#include "SDL/SDL_gfxBlitFunc.h"
+
+
+ PRIMPROC
+@@ -997,7 +997,7 @@
+ * image filter
+ */
+
+-#include "SDL_gfx/SDL_imageFilter.h"
++#include "SDL/SDL_imageFilter.h"
+
+ PRIMPROC
+ (imfi_mmx_p, "imfi-mmx?", 0, 1, 0,
+--- guile-sdl-0.4.3/src/Makefile.am.orig 2013-03-18 12:40:00.000000000 +0100
++++ guile-sdl-0.4.3/src/Makefile.am 2013-04-24 16:56:34.328535800 +0200
+@@ -18,7 +18,6 @@
+ ## Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ ## Boston, MA 02110-1301 USA
+
+-SUBDIRS = SDL_gfx
+
+ AM_CPPFLAGS = $(SDL_CFLAGS)
+ AM_CFLAGS = $(NORMAL_CFLAGS)
+@@ -76,8 +75,7 @@
+
+ gfx_la_SOURCES = sdlgfx.c $(headers)
+ gfx_la_LDFLAGS = $(modflags)
+-gfx_la_LIBADD = SDL_gfx/libSDL_gfx.la \
+- SDL_gfx/libimfi.la
++gfx_la_LIBADD = -lSDL_gfx
+
+ SUFFIXES = .c .fs
+
+--- guile-sdl-0.4.3/configure.ac.orig 2013-04-13 16:12:50.000000000 +0200
++++ guile-sdl-0.4.3/configure.ac 2013-04-24 17:01:24.608523633 +0200
+@@ -121,7 +121,6 @@
+ AC_CONFIG_FILES([
+ Makefile
+ src/Makefile
+- src/SDL_gfx/Makefile
+ doc/Makefile
+ test/Makefile
+ test/zow
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/guile-sdl.git/commitdiff/69a03d8188af59e861dfdda5c2405ad0627d62cb
More information about the pld-cvs-commit
mailing list