From e8386d203def4f6cbc1b1378a16276502b3ade29 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 30 Jul 2025 14:25:53 +0200 Subject: fix build with PHP 8.5.0alpha3 using patch from --- php-pecl-nsq.spec | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'php-pecl-nsq.spec') diff --git a/php-pecl-nsq.spec b/php-pecl-nsq.spec index 2cad95e..ae11cde 100644 --- a/php-pecl-nsq.spec +++ b/php-pecl-nsq.spec @@ -22,11 +22,13 @@ Summary: PHP extension for NSQ client Name: %{?scl_prefix}php-pecl-nsq Version: 3.9.1 -Release: 1%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} +Release: 2%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} Source: https://pecl.php.net/get/%{sources}%{?prever}.tgz License: PHP-3.01 URL: https://pecl.php.net/package/nsq +Patch0: 82.patch + BuildRequires: make BuildRequires: %{?dtsprefix}gcc BuildRequires: %{?scl_prefix}php-devel >= 7.0 @@ -59,6 +61,8 @@ sed -e 's/role="test"/role="src"/' \ -i package.xml cd %{sources} +%patch -P0 -p1 + # Sanity check, really often broken extver=$(sed -n '/#define PHP_NSQ_VERSION/{s/.* "//;s/".*$//;p}' php_nsq.h ) if test "x${extver}" != "x%{version}"; then @@ -175,6 +179,9 @@ REPORT_EXIT_STATUS=1 \ %changelog +* Wed Jul 30 2025 Remi Collet - 3.9.1-2 +- fix build with PHP 8.5.0alpha3 using patch from + * Mon Jun 16 2025 Remi Collet - 3.9.1-1 - update to 3.9.1 -- cgit