From 8dd70ebe7c781915b3382477b56488096e18386f Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Mon, 30 Sep 2024 08:09:01 +0200 Subject: fix test suite with PHP 8.4 using patch from https://github.com/igbinary/igbinary/pull/393 --- php-pecl-igbinary.spec | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'php-pecl-igbinary.spec') diff --git a/php-pecl-igbinary.spec b/php-pecl-igbinary.spec index a61273f..ba25715 100644 --- a/php-pecl-igbinary.spec +++ b/php-pecl-igbinary.spec @@ -28,11 +28,13 @@ Summary: Replacement for the standard PHP serializer Name: %{?scl_prefix}php-pecl-igbinary Version: %{upstream_version}%{?upstream_prever:~%{upstream_prever}} -Release: 2%{?dist}%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')} +Release: 3%{?dist}%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')} License: BSD-3-Clause URL: https://pecl.php.net/package/igbinary Source0: https://pecl.php.net/get/%{sources}.tgz +Patch0: 393.patch + BuildRequires: make BuildRequires: %{?dtsprefix}gcc BuildRequires: %{?scl_prefix}php-pear @@ -92,6 +94,8 @@ These are the files needed to compile programs using Igbinary sed -e '/COPYING/s/role="doc"/role="src"/' -i package.xml pushd %{sources} +%patch -P0 -p1 + # Check version subdir=php7 extver=$(sed -n '/#define PHP_IGBINARY_VERSION/{s/.* "//;s/".*$//;p}' src/$subdir/igbinary.h) @@ -169,9 +173,6 @@ done %check cd %{sources} -# PHP 8.4.0RC1 -rm tests/igbinary_009b_php8.phpt - MOD="" # drop extension load from phpt sed -e '/^extension=/d' -i tests/*phpt @@ -242,6 +243,10 @@ REPORT_EXIT_STATUS=1 \ %changelog +* Mon Sep 30 2024 Remi Collet - 3.2.16-3 +- fix test suite with PHP 8.4 using patch from + https://github.com/igbinary/igbinary/pull/393 + * Tue Sep 24 2024 Remi Collet - 3.2.16-2 - rebuild for 8.4.0RC1 -- cgit