From 3f0b8c691d29bfead175f75d3e48fa5275913502 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Mon, 21 Mar 2022 09:33:00 +0100 Subject: 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 --- php-pecl-sdl.spec | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'php-pecl-sdl.spec') 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 - 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 - 2.5.0-3 - handle all SDL extensions in launcher (for sdl_mixer) -- cgit