summaryrefslogtreecommitdiffstats
path: root/php-pecl-hdr-histogram.spec
diff options
context:
space:
mode:
Diffstat (limited to 'php-pecl-hdr-histogram.spec')
-rw-r--r--php-pecl-hdr-histogram.spec11
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