From c0586611f69be630bb0d0ef12c4569c01d6d1d15 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 24 Apr 2024 08:50:53 +0200 Subject: update to 0.5.0 fix build with old GCC (EL-7) using patch from https://github.com/beberlei/hdrhistogram-php/pull/38 --- php-pecl-hdr-histogram.spec | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'php-pecl-hdr-histogram.spec') diff --git a/php-pecl-hdr-histogram.spec b/php-pecl-hdr-histogram.spec index 3e8b3d5..d2f59bc 100644 --- a/php-pecl-hdr-histogram.spec +++ b/php-pecl-hdr-histogram.spec @@ -21,13 +21,15 @@ Summary: PHP extension wrapper for the C hdrhistogram API Name: %{?scl_prefix}php-pecl-hdr-histogram Version: 0.5.0 -Release: 0%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} +Release: 1%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} License: BSD-2-Clause Group: Development/Languages URL: https://pecl.php.net/package/%{proj_name} Source: https://pecl.php.net/get/%{sources}.tgz +Patch0: %{proj_name}-build.patch + BuildRequires: make BuildRequires: %{?dtsprefix}gcc BuildRequires: %{?scl_prefix}php-devel >= 7.0 @@ -67,6 +69,8 @@ sed -e 's/role="test"/role="src"/' \ -i package.xml cd %{sources} +%patch -P0 -p1 + # Check upstream version (often broken) extver=$(sed -n '/#define PHP_HDR_HISTOGRAM_VERSION/{s/.* "//;s/".*$//;p}' php_hdrhistogram.h) if test "x${extver}" != "x%{version}"; then @@ -196,6 +200,11 @@ fi %changelog +* Wed Apr 24 2024 Remi Collet - 0.5.0-1 +- update to 0.5.0 +- fix build with old GCC (EL-7) using patch from + https://github.com/beberlei/hdrhistogram-php/pull/38 + * Tue Apr 23 2024 Remi Collet - 0.5.0-0 - test build for upcoming 0.5.0 - drop patches merged upstream -- cgit