From e9cf32572fe79e849e99b14b7b88aac4f59cf005 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Mon, 5 Jul 2021 07:45:37 +0200 Subject: update to 2.3.3 add patch for PHP 8.1 from https://github.com/longxinH/xhprof/pull/61 --- php-pecl-xhprof.spec | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'php-pecl-xhprof.spec') diff --git a/php-pecl-xhprof.spec b/php-pecl-xhprof.spec index 3224539..b1ae4c6 100644 --- a/php-pecl-xhprof.spec +++ b/php-pecl-xhprof.spec @@ -25,7 +25,7 @@ %global ini_name 40-%{pecl_name}.ini Name: %{?sub_prefix}php-pecl-xhprof -Version: 2.3.2 +Version: 2.3.3 Release: 1%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} Summary: PHP extension for XHProf, a Hierarchical Profiler @@ -34,6 +34,8 @@ License: ASL 2.0 URL: https://pecl.php.net/package/%{pecl_name} Source0: https://pecl.php.net/get/%{pecl_name}-%{version}.tgz +Patch0: %{pecl_name}-php81.patch + # https://bugs.php.net/61262 ExclusiveArch: %{ix86} x86_64 @@ -64,6 +66,9 @@ Obsoletes: php74-pecl-%{pecl_name} <= %{version} %if "%{php_version}" > "8.0" Obsoletes: php80-pecl-%{pecl_name} <= %{version} %endif +%if "%{php_version}" > "8.1" +Obsoletes: php81-pecl-%{pecl_name} <= %{version} +%endif %endif @@ -114,6 +119,8 @@ sed -e 's/role="php"/role="src"/' \ -i package.xml pushd %{pecl_name}-%{version}/extension +%patch0 -p2 -b .pr61 + sed -e '/XHPROF_VERSION/s/2.3.0/%{version}/' -i php_xhprof.h # Sanity check, really often broken extver=$(sed -n '/#define XHPROF_VERSION/{s/.* "//;s/".*$//;p}' php_xhprof.h) @@ -278,6 +285,11 @@ fi %changelog +* Mon Jul 5 2021 Remi Collet - 2.3.3-1 +- update to 2.3.3 +- add patch for PHP 8.1 from + https://github.com/longxinH/xhprof/pull/61 + * Fri May 7 2021 Remi Collet - 2.3.2-1 - update to 2.3.2 (stable) -- cgit