From 5fc400b7fd928ab94fb694ff47290fcdb2100dd0 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Thu, 9 Sep 2021 11:20:01 +0200 Subject: ignore 1 test for 8.1 --- php-pecl-decimal.spec | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/php-pecl-decimal.spec b/php-pecl-decimal.spec index 347f2f3..76000e3 100644 --- a/php-pecl-decimal.spec +++ b/php-pecl-decimal.spec @@ -24,7 +24,7 @@ Summary: Arbitrary-precision floating-point decimal Name: %{?sub_prefix}php-pecl-%{pecl_name} Version: 1.4.0 -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 URL: https://pecl.php.net/package/%{pecl_name} Source0: https://pecl.php.net/get/%{pecl_name}-%{version}.tgz @@ -60,6 +60,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 @@ -166,6 +169,11 @@ fi %check +%if "%{php_version}" > "8.1" +# ignore deprecated calls +rm ?TS/tests/php8/methods/__construct.phpt +%endif + cd NTS OPT="-n" [ -f %{php_extdir}/json.so ] && OPT="$OPT -d extension=json.so" @@ -217,6 +225,9 @@ REPORT_EXIT_STATUS=1 \ %changelog +* Thu Sep 9 2021 Remi Collet - 1.4.0-2 +- ignore 1 test for 8.1 + * Thu Feb 18 2021 Remi Collet - 1.4.0-1 - update to 1.4.0 -- cgit