diff options
-rw-r--r-- | php-pecl-sdl.spec | 10 | ||||
-rw-r--r-- | sdl-build.patch | 84 |
2 files changed, 5 insertions, 89 deletions
diff --git a/php-pecl-sdl.spec b/php-pecl-sdl.spec index a0056d2..a40b79f 100644 --- a/php-pecl-sdl.spec +++ b/php-pecl-sdl.spec @@ -17,7 +17,7 @@ Summary: Simple DirectMedia Layer for PHP Name: php-pecl-sdl -Version: 0.9.0 +Version: 0.9.1 Release: 1%{?dist}%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')} License: PHP Group: Development/Languages @@ -28,9 +28,6 @@ Source0: http://pecl.php.net/get/%{pecl_name}-%{version}.tgz # From http://sourceforge.net/projects/phpsdl/files/ Source1: example.php -# Build patch for shared mode (emailed to upstream) -Patch0: %{pecl_name}-build.patch - BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildRequires: php-devel > 5.2.0 BuildRequires: php-pear @@ -66,7 +63,6 @@ Use the "phpsdl" command to launch a SDL application. %prep %setup -q -c -%patch0 mv %{pecl_name}-%{version} NTS @@ -172,5 +168,9 @@ fi %changelog +* Tue Nov 26 2013 Remi Collet <remi@fedoraproject.org> - 0.9.1-1 +- Update to 0.9.1 (beta) +- drop build patch merged upstream + * Mon Nov 25 2013 Remi Collet <remi@fedoraproject.org> - 0.9.0-1 - initial package, 0.9.0 (beta) diff --git a/sdl-build.patch b/sdl-build.patch deleted file mode 100644 index a1538e7..0000000 --- a/sdl-build.patch +++ /dev/null @@ -1,84 +0,0 @@ -diff -up sdl-0.9.0/config.m4.old sdl-0.9.0/config.m4 ---- sdl-0.9.0/config.m4.old 2013-11-24 21:38:31.000000000 +0100 -+++ sdl-0.9.0/config.m4 2013-11-25 08:21:59.000000000 +0100 -@@ -1,7 +1,7 @@ - dnl $Id$ - dnl config.m4 for extension sdl - --PHP_ARG_WITH( sdl, for sdl support, [ --with-sdl=DIR Include sdl support ] ) -+PHP_ARG_WITH(sdl, for sdl support, [ --with-sdl=DIR Include sdl support ]) - - if test "$PHP_SDL" != "no"; then - -@@ -34,21 +34,7 @@ if test "$PHP_SDL" != "no"; then - AC_MSG_RESULT(found in $SDL_CONFIG) - - PHP_EVAL_INCLINE(`$SDL_CONFIG --cflags`) -- -- dnl FIXME: support non-shared builds -- SDL_LIBS=`$SDL_CONFIG --libs` -- for i in $SDL_LIBS; do -- case $i in -- -L*) -- tmp=`echo $i | cut -c 3-` -- PHP_ADD_LIBPATH($tmp, SDL_SHARED_LIBADD) -- ;; -- -l*) -- tmp=`echo $i | cut -c 3-` -- PHP_ADD_LIBRARY($tmp, 1, SDL_SHARED_LIBADD) -- ;; -- esac -- done -+ PHP_EVAL_LIBLINE(`$SDL_CONFIG --libs`, SDL_SHARED_LIBADD) - else - AC_MSG_RESULT([not found, trying manual way]) - -@@ -72,14 +58,17 @@ if test "$PHP_SDL" != "no"; then - AC_MSG_RESULT(found below $SDL_DIR/include) - fi - -- if test ! -f "$i/lib/libSDL.so"; then -- AC_MSG_ERROR(Cannot find lib/libSDL.so below $i) -+ if test ! -f "$SDL_DIR/$PHP_LIBDIR/libSDL.$SHLIB_SUFFIX_NAME"; then -+ AC_MSG_ERROR(Cannot find $PHP_LIBDIR/libSDL.$SHLIB_SUFFIX_NAME below $i) - fi - - PHP_ADD_INCLUDE($SDL_DIR/include/SDL) -+ PHP_ADD_LIBRARY_WITH_PATH(SDL, $SDL_DIR/$PHP_LIBDIR, SDL_SHARED_LIBADD) - fi -+ AC_MSG_RESULT(BUILD AS $ext_shared) - -- PHP_NEW_EXTENSION( sdl, php_sdl.c php_sdl_audio.c php_sdl_event.c php_sdl_thread.c php_sdl_wm.c php_sdl_cdrom.c php_sdl_joystick.c php_sdl_time.c, $ext_shared ) -+ PHP_NEW_EXTENSION(sdl, php_sdl.c php_sdl_audio.c php_sdl_event.c php_sdl_thread.c php_sdl_wm.c php_sdl_cdrom.c php_sdl_joystick.c php_sdl_time.c, $ext_shared) -+ PHP_SUBST(SDL_SHARED_LIBADD) - - AC_DEFINE(HAVE_SDL, 1, [ ]) - fi -diff -up sdl-0.9.0/php_sdl.c.old sdl-0.9.0/php_sdl.c ---- sdl-0.9.0/php_sdl.c.old 2013-11-25 08:22:37.000000000 +0100 -+++ sdl-0.9.0/php_sdl.c 2013-11-25 08:23:02.000000000 +0100 -@@ -3318,10 +3318,6 @@ int php_sdl_find_key_with_type(zval *arr - return 1; - } - --#ifdef COMPILE_DL_SDL --ZEND_GET_MODULE(sdl) --#endif -- - /* - * Local variables: - * tab-width: 4 ---- sdl-0.9.0/php_sdl.h.old 2013-11-25 18:18:08.000000000 +0100 -+++ sdl-0.9.0/php_sdl.h 2013-11-25 18:18:34.000000000 +0100 -@@ -156,6 +156,11 @@ - #define SDL_G(v) (sdl_globals.v) - #endif - -+/* ZEND_FE_END exist only in PHP >= 5.3.7 */ -+#ifndef ZEND_FE_END -+#define ZEND_FE_END { NULL, NULL, NULL, 0, 0 } -+#endif -+ - #endif /* PHP_SDL_H */ - - /* |