summaryrefslogtreecommitdiffstats
path: root/php-pecl-sdl.spec
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2022-03-21 09:33:00 +0100
committerRemi Collet <remi@php.net>2022-03-21 09:33:00 +0100
commit3f0b8c691d29bfead175f75d3e48fa5275913502 (patch)
tree445eff9ae027557c480d00b20445d195991e8285 /php-pecl-sdl.spec
parent5e0c02cc49dd4cc69e977352796edbcc5493a1c5 (diff)
update to 2.6.0
fix build with PHP 8.0 using patch from https://github.com/Ponup/php-sdl/pull/60 open https://github.com/Ponup/php-sdl/issues/61 build failure with 2.0.10 open https://github.com/Ponup/php-sdl/issues/62 deprecated call
Diffstat (limited to 'php-pecl-sdl.spec')
-rw-r--r--php-pecl-sdl.spec15
1 files changed, 13 insertions, 2 deletions
diff --git a/php-pecl-sdl.spec b/php-pecl-sdl.spec
index c648495..c202871 100644
--- a/php-pecl-sdl.spec
+++ b/php-pecl-sdl.spec
@@ -14,13 +14,16 @@
Summary: Simple DirectMedia Layer for PHP
Name: %{?scl_prefix}php-pecl-sdl
-Version: 2.5.0
-Release: 3%{?dist}%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}
+Version: 2.6.0
+Release: 1%{?dist}%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}
License: PHP
Group: Development/Languages
URL: https://pecl.php.net/package/sdl
Source0: https://pecl.php.net/get/%{pecl_name}-%{version}.tgz
+# https://github.com/Ponup/php-sdl/pull/60
+Patch0: %{pecl_name}-pr60.patch
+
BuildRequires: make
BuildRequires: %{?dtsprefix}gcc
BuildRequires: %{?scl_prefix}php-devel >= 8.0
@@ -69,6 +72,7 @@ mv %{pecl_name}-%{version} NTS
cd NTS
#sed -e 's/2.3.0/%{version}/' -i src/php_sdl.h
+%patch0 -p1 -b .pr60
# Sanity check, really often broken
extver=$(sed -n '/#define PHP_SDL_VERSION/{s/.* "//;s/".*$//;p}' src/php_sdl.h)
@@ -198,6 +202,13 @@ fi
%changelog
+* Mon Mar 21 2022 Remi Collet <remi@remirepo.net> - 2.6.0-1
+- update to 2.6.0
+- fix build with PHP 8.0 using patch from
+ https://github.com/Ponup/php-sdl/pull/60
+- open https://github.com/Ponup/php-sdl/issues/61 build failure with 2.0.10
+- open https://github.com/Ponup/php-sdl/issues/62 deprecated call
+
* Mon Mar 14 2022 Remi Collet <remi@remirepo.net> - 2.5.0-3
- handle all SDL extensions in launcher (for sdl_mixer)