summaryrefslogtreecommitdiffstats
path: root/php-pecl-memprof.spec
diff options
context:
space:
mode:
Diffstat (limited to 'php-pecl-memprof.spec')
-rw-r--r--php-pecl-memprof.spec16
1 files changed, 15 insertions, 1 deletions
diff --git a/php-pecl-memprof.spec b/php-pecl-memprof.spec
index f03cd5d..bc55a50 100644
--- a/php-pecl-memprof.spec
+++ b/php-pecl-memprof.spec
@@ -33,12 +33,14 @@
Summary: Memory usage profiler
Name: %{?sub_prefix}php-pecl-%{pecl_name}
-Version: 3.0.0
+Version: 3.0.1
Release: 1%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}}
License: BSD
URL: https://pecl.php.net/package/%{pecl_name}
Source0: https://pecl.php.net/get/%{pecl_name}-%{version}.tgz
+Patch0: %{pecl_name}-php81.patch
+
BuildRequires: make
BuildRequires: %{?dtsprefix}gcc
BuildRequires: %{?scl_prefix}php-devel >= 7.1
@@ -65,6 +67,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
@@ -85,6 +90,8 @@ sed -e 's/role="test"/role="src"/' \
-i package.xml
cd NTS
+%patch0 -p1 -b .pr54
+
# Sanity check, really often broken
extver=$(sed -n '/#define PHP_MEMPROF_VERSION/{s/.* "//;s/".*$//;p}' php_memprof.h)
if test "x${extver}" != "x%{version}%{?prever:-%{prever}}"; then
@@ -182,6 +189,8 @@ fi
%if %{with tests}
cd NTS
+grep "HAVE_MALLOC_HOOKS 1" config.h && export MEMPROF_EXPECT_NATIVE_TRACKING=1
+
: Upstream test suite for NTS extension
TEST_PHP_EXECUTABLE=%{_bindir}/php \
TEST_PHP_ARGS="-n -d extension=%{buildroot}%{php_extdir}/%{pecl_name}.so" \
@@ -223,6 +232,11 @@ REPORT_EXIT_STATUS=1 \
%changelog
+* Fri Jul 2 2021 Remi Collet <remi@remirepo.net> - 3.0.1-1
+- update to 3.0.1
+- add patch for PHP 8.1 from
+ https://github.com/arnaud-lb/php-memory-profiler/pull/54
+
* Tue Mar 30 2021 Remi Collet <remi@remirepo.net> - 3.0.0-1
- update to 3.0.0