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.spec21
1 files changed, 11 insertions, 10 deletions
diff --git a/php-pecl-hdr-histogram.spec b/php-pecl-hdr-histogram.spec
index b8012d5..c630384 100644
--- a/php-pecl-hdr-histogram.spec
+++ b/php-pecl-hdr-histogram.spec
@@ -1,6 +1,6 @@
# remirepo spec file for php-pecl-hdr-histogram
#
-# Copyright (c) 2016-2020 Remi Collet
+# Copyright (c) 2016-2022 Remi Collet
# License: CC-BY-SA
# http://creativecommons.org/licenses/by-sa/4.0/
#
@@ -14,16 +14,12 @@
%global with_zts 0%{!?_without_zts:%{?__ztsphp:1}}
%global proj_name hdr_histogram
%global pecl_name hdrhistogram
-%if "%{php_version}" < "5.6"
-%global ini_name %{pecl_name}.ini
-%else
%global ini_name 40-%{pecl_name}.ini
-%endif
Summary: PHP extension wrapper for the C hdrhistogram API
Name: %{?sub_prefix}php-pecl-hdr-histogram
Version: 0.4.2
-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;')}}
License: MIT
Group: Development/Languages
URL: https://pecl.php.net/package/%{proj_name}
@@ -31,6 +27,7 @@ URL: https://pecl.php.net/package/%{proj_name}
Source: https://pecl.php.net/get/%{proj_name}-%{version}.tgz
Patch0: %{proj_name}-arginfo.patch
+Patch1: %{proj_name}-lib0114.patch
BuildRequires: make
BuildRequires: %{?dtsprefix}gcc
@@ -38,7 +35,7 @@ BuildRequires: %{?scl_prefix}php-devel >= 7.0
BuildRequires: %{?scl_prefix}php-pear
BuildRequires: %{?scl_prefix}php-json
# use our specific package
-BuildRequires: HdrHistogram_c6php-devel
+BuildRequires: HdrHistogram_c6php-devel >= 0.11.4
Requires: %{?scl_prefix}php(zend-abi) = %{php_zend_api}
Requires: %{?scl_prefix}php(api) = %{php_core_api}
@@ -51,15 +48,15 @@ Provides: %{?scl_prefix}php-pecl(%{proj_name})%{?_isa} = %{version}
%if "%{?packager}" == "Remi Collet" && 0%{!?scl:1} && 0%{?rhel}
# Other third party repo stuff
-%if "%{php_version}" > "7.3"
-Obsoletes: php73-pecl-hdr-histogram <= %{version}
-%endif
%if "%{php_version}" > "7.4"
Obsoletes: php74-pecl-hdr-histogram <= %{version}
%endif
%if "%{php_version}" > "8.0"
Obsoletes: php80-pecl-hdr-histogram <= %{version}
%endif
+%if "%{php_version}" > "8.1"
+Obsoletes: php81-pecl-hdr-histogram <= %{version}
+%endif
%endif
@@ -87,6 +84,7 @@ sed -e 's/role="test"/role="src"/' \
cd NTS
%patch0 -p1 -b .pr13
+%patch1 -p1 -b .pr15
# Check upstream version (often broken)
extver=$(sed -n '/#define HDR_VERSION/{s/.* "//;s/".*$//;p}' php_hdrhistogram.h)
@@ -216,6 +214,9 @@ fi
%changelog
+* Tue Mar 1 2022 Remi Collet <remi@remirepo.net> - 0.4.2-2
+- add patch for libhdr_histogram 0.11.4
+
* Wed Dec 9 2020 Remi Collet <remi@remirepo.net> - 0.4.2-1
- update to 0.4.2
- raise dependency on PHP 7