diff options
author | Remi Collet <remi@remirepo.net> | 2024-04-24 08:50:53 +0200 |
---|---|---|
committer | Remi Collet <remi@php.net> | 2024-04-24 08:50:53 +0200 |
commit | c0586611f69be630bb0d0ef12c4569c01d6d1d15 (patch) | |
tree | 0b8475d31ca06f6c4b3db14bdb6a707404bd3900 /php-pecl-hdr-histogram.spec | |
parent | b68012a87512a569e3577a094418809f3a062c55 (diff) |
fix build with old GCC (EL-7) using patch from
https://github.com/beberlei/hdrhistogram-php/pull/38
Diffstat (limited to 'php-pecl-hdr-histogram.spec')
-rw-r--r-- | php-pecl-hdr-histogram.spec | 11 |
1 files changed, 10 insertions, 1 deletions
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 <remi@remirepo.net> - 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 <remi@remirepo.net> - 0.5.0-0 - test build for upcoming 0.5.0 - drop patches merged upstream |