summaryrefslogtreecommitdiffstats
path: root/php-pecl-igbinary.spec
diff options
context:
space:
mode:
Diffstat (limited to 'php-pecl-igbinary.spec')
-rw-r--r--php-pecl-igbinary.spec27
1 files changed, 16 insertions, 11 deletions
diff --git a/php-pecl-igbinary.spec b/php-pecl-igbinary.spec
index 7985223..409b5e2 100644
--- a/php-pecl-igbinary.spec
+++ b/php-pecl-igbinary.spec
@@ -3,7 +3,7 @@
#
# Fedora spec file for php-pecl-igbinary
#
-# Copyright (c) 2010-2021 Remi Collet
+# Copyright (c) 2010-2022 Remi Collet
# License: CC-BY-SA
# http://creativecommons.org/licenses/by-sa/4.0/
#
@@ -25,7 +25,7 @@
#global gh_date 20161018
%global ini_name 40-%{pecl_name}.ini
-%global upstream_version 3.2.6
+%global upstream_version 3.2.7
#global upstream_prever RC1
Summary: Replacement for the standard PHP serializer
@@ -35,7 +35,7 @@ Version: %{upstream_version}%{?upstream_prever:~%{upstream_prever}}
Release: 0.14.%{gh_date}.%{gh_short}%{?dist}%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}
Source0: https://github.com/%{pecl_name}/%{pecl_name}/archive/%{gh_commit}/%{pecl_name}-%{version}-%{gh_short}.tar.gz
%else
-Release: 2%{?dist}%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}
+Release: 1%{?dist}%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}
Source0: https://pecl.php.net/get/%{pecl_name}-%{upstream_version}%{?upstream_prever}.tgz
%endif
License: BSD
@@ -220,7 +220,7 @@ sed -e '/^extension=/d' -i ?TS/tests/*phpt
: simple NTS module load test, without APCu, as optional
%{_bindir}/php --no-php-ini \
--define extension=%{buildroot}%{php_extdir}/%{pecl_name}.so \
- --modules | grep %{pecl_name}
+ --modules | grep '^%{pecl_name}$'
# APC required for test 045*
if [ -f %{php_extdir}/apcu.so ]; then
@@ -231,27 +231,29 @@ if [ -f %{php_extdir}/json.so ]; then
MOD="$MOD -d extension=json.so"
fi
+%if "{php_version}" >= "8.0"
+OPTS="-q --show-diff %{?_smp_mflags}"
+%else
+OPTS="-q -P --show-diff"
+%endif
+
: upstream test suite
cd NTS
-TEST_PHP_EXECUTABLE=%{_bindir}/php \
TEST_PHP_ARGS="-n $MOD -d extension=%{buildroot}%{php_extdir}/%{pecl_name}.so" \
-NO_INTERACTION=1 \
REPORT_EXIT_STATUS=1 \
-%{_bindir}/php -n run-tests.php --show-diff
+%{_bindir}/php -n run-tests.php $OPTS
%if %{with_zts}
: simple ZTS module load test, without APCu, as optional
%{__ztsphp} --no-php-ini \
--define extension=%{buildroot}%{php_ztsextdir}/%{pecl_name}.so \
- --modules | grep %{pecl_name}
+ --modules | grep '^%{pecl_name}$'
: upstream test suite
cd ../ZTS
-TEST_PHP_EXECUTABLE=%{__ztsphp} \
TEST_PHP_ARGS="-n $MOD -d extension=%{buildroot}%{php_ztsextdir}/%{pecl_name}.so" \
-NO_INTERACTION=1 \
REPORT_EXIT_STATUS=1 \
-%{__ztsphp} -n run-tests.php --show-diff
+%{__ztsphp} -n run-tests.php $OPTS
%endif
@@ -299,6 +301,9 @@ fi
%changelog
+* Wed Jan 12 2022 Remi Collet <remi@remirepo.net> - 3.2.7-1
+- update to 3.2.7
+
* Wed Sep 01 2021 Remi Collet <remi@remirepo.net> - 3.2.6-2
- rebuild for 8.1.0RC1