From a1e4a14e42e016c87852200d898f9b0b35e6b3da Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Sun, 12 Apr 2026 08:18:10 +0200 Subject: update to 2.0.1 drop support for PHP < 8.2 --- PHPINFO | 2 +- REFLECTION | 859 +++++++++++++++++++++++++++++++++++++++++++------- php-pecl-decimal.spec | 38 ++- 3 files changed, 765 insertions(+), 134 deletions(-) diff --git a/PHPINFO b/PHPINFO index d65aa36..4e35425 100644 --- a/PHPINFO +++ b/PHPINFO @@ -2,5 +2,5 @@ decimal decimal support => enabled -decimal version => 1.5.3 +decimal version => 2.0.1 libmpdec version => 4.0.1 diff --git a/REFLECTION b/REFLECTION index 71218b7..0f04b9d 100644 --- a/REFLECTION +++ b/REFLECTION @@ -1,20 +1,20 @@ -Extension [ extension #76 decimal version 1.5.3 ] { +Extension [ extension #76 decimal version 2.0.1 ] { - - Classes [1] { - Class [ final class Decimal\Decimal implements Stringable, JsonSerializable ] { + - Classes [3] { + Class [ abstract class Decimal\Number implements Stringable, JsonSerializable ] { - Constants [13] { + Constant [ public int DEFAULT_ROUNDING ] { 3 } Constant [ public int ROUND_UP ] { 101 } Constant [ public int ROUND_DOWN ] { 102 } Constant [ public int ROUND_CEILING ] { 103 } Constant [ public int ROUND_FLOOR ] { 104 } - Constant [ public int ROUND_HALF_UP ] { 105 } - Constant [ public int ROUND_HALF_DOWN ] { 106 } - Constant [ public int ROUND_HALF_EVEN ] { 107 } - Constant [ public int ROUND_HALF_ODD ] { 108 } - Constant [ public int ROUND_TRUNCATE ] { 109 } - Constant [ public int DEFAULT_PRECISION ] { 28 } - Constant [ public int DEFAULT_ROUNDING ] { 107 } + Constant [ public int ROUND_HALF_UP ] { 1 } + Constant [ public int ROUND_HALF_DOWN ] { 2 } + Constant [ public int ROUND_HALF_EVEN ] { 3 } + Constant [ public int ROUND_HALF_ODD ] { 4 } + Constant [ public int ROUND_TRUNCATE ] { 105 } + Constant [ public int DEFAULT_PRECISION ] { 34 } Constant [ public int MIN_PRECISION ] { 1 } Constant [ public int MAX_PRECISION ] { 999999999999999999 } } @@ -22,305 +22,915 @@ Extension [ extension #76 decimal version 1.5.3 ] { - Static properties [0] { } - - Static methods [2] { - Method [ static public method sum ] { + - Static methods [1] { + Method [ static public method valueOf ] { + + - Parameters [1] { + Parameter #0 [ $value ] + } + - Return [ Decimal\Number ] + } + } + + - Properties [0] { + } + + - Methods [33] { + Method [ abstract public method add ] { + + - Parameters [1] { + Parameter #0 [ $value ] + } + - Return [ Decimal\Number ] + } + + Method [ abstract public method sub ] { + + - Parameters [1] { + Parameter #0 [ $value ] + } + - Return [ Decimal\Number ] + } + + Method [ abstract public method mul ] { + + - Parameters [1] { + Parameter #0 [ $value ] + } + - Return [ Decimal\Number ] + } + + Method [ abstract public method div ] { + + - Parameters [1] { + Parameter #0 [ $value ] + } + - Return [ Decimal\Number ] + } + + Method [ abstract public method pow ] { + + - Parameters [1] { + Parameter #0 [ $exponent ] + } + - Return [ Decimal\Number ] + } + + Method [ abstract public method mod ] { + + - Parameters [1] { + Parameter #0 [ $value ] + } + - Return [ Decimal\Number ] + } + + Method [ abstract public method shiftl ] { + + - Parameters [1] { + Parameter #0 [ $places ] + } + - Return [ Decimal\Number ] + } + + Method [ abstract public method shiftr ] { + + - Parameters [1] { + Parameter #0 [ $places ] + } + - Return [ Decimal\Number ] + } + + Method [ abstract public method round ] { + + - Parameters [2] { + Parameter #0 [ ?int $places = ] + Parameter #1 [ ?int $mode = ] + } + - Return [ Decimal\Number ] + } + + Method [ public method floor ] { + + - Parameters [0] { + } + - Return [ Decimal\Number ] + } + + Method [ public method ceil ] { + + - Parameters [0] { + } + - Return [ Decimal\Number ] + } + + Method [ public method trunc ] { + + - Parameters [0] { + } + - Return [ Decimal\Number ] + } + + Method [ public method abs ] { + + - Parameters [0] { + } + - Return [ Decimal\Number ] + } + + Method [ public method negate ] { + + - Parameters [0] { + } + - Return [ Decimal\Number ] + } + + Method [ public method isNaN ] { + + - Parameters [0] { + } + - Return [ bool ] + } + + Method [ public method isInf ] { + + - Parameters [0] { + } + - Return [ bool ] + } + + Method [ public method isInteger ] { + + - Parameters [0] { + } + - Return [ bool ] + } + + Method [ public method isZero ] { + + - Parameters [0] { + } + - Return [ bool ] + } + + Method [ public method isEven ] { + + - Parameters [0] { + } + - Return [ bool ] + } + + Method [ public method isOdd ] { + + - Parameters [0] { + } + - Return [ bool ] + } + + Method [ public method isPositive ] { + + - Parameters [0] { + } + - Return [ bool ] + } + + Method [ public method isNegative ] { + + - Parameters [0] { + } + - Return [ bool ] + } + + Method [ abstract public method toString ] { + + - Parameters [0] { + } + - Return [ string ] + } + + Method [ abstract public method toFixed ] { + + - Parameters [3] { + Parameter #0 [ ?int $places = ] + Parameter #1 [ ?bool $commas = ] + Parameter #2 [ ?int $mode = ] + } + - Return [ string ] + } + + Method [ abstract public method toInt ] { + + - Parameters [0] { + } + - Return [ int ] + } + + Method [ abstract public method toFloat ] { + + - Parameters [0] { + } + - Return [ float ] + } + + Method [ public method toDecimal ] { + + - Parameters [1] { + Parameter #0 [ int $precision ] + } + - Return [ Decimal\Decimal ] + } + + Method [ public method toRational ] { + + - Parameters [0] { + } + - Return [ Decimal\Rational ] + } + + Method [ abstract public method compareTo ] { + + - Parameters [1] { + Parameter #0 [ $other ] + } + - Return [ int ] + } + + Method [ public method between ] { + + - Parameters [3] { + Parameter #0 [ $a ] + Parameter #1 [ $b ] + Parameter #2 [ ?bool $inclusive = ] + } + - Return [ bool ] + } + + Method [ public method equals ] { + + - Parameters [1] { + Parameter #0 [ $other ] + } + - Return [ bool ] + } + + Method [ public method __toString ] { + + - Parameters [0] { + } + - Return [ string ] + } + + Method [ public method jsonSerialize ] { + + - Parameters [0] { + } + - Return [ string ] + } + } + } + + Class [ final class Decimal\Decimal extends Decimal\Number implements JsonSerializable, Stringable ] { + + - Constants [15] { + Constant [ public int DEFAULT_ROUNDING ] { 3 } + Constant [ public int ROUND_UP ] { 101 } + Constant [ public int ROUND_DOWN ] { 102 } + Constant [ public int ROUND_CEILING ] { 103 } + Constant [ public int ROUND_FLOOR ] { 104 } + Constant [ public int ROUND_HALF_UP ] { 1 } + Constant [ public int ROUND_HALF_DOWN ] { 2 } + Constant [ public int ROUND_HALF_EVEN ] { 3 } + Constant [ public int ROUND_HALF_ODD ] { 4 } + Constant [ public int ROUND_TRUNCATE ] { 105 } + Constant [ public int DEFAULT_PRECISION ] { 34 } + Constant [ public int MIN_PRECISION ] { 1 } + Constant [ public int MAX_PRECISION ] { 999999999999999999 } + Constant [ public string PI ] { 3.141592653589793 } + Constant [ public string E ] { 2.7182818284590452353602874713526625 } + } + + - Static properties [0] { + } + + - Static methods [1] { + Method [ static public method valueOf ] { - Parameters [2] { - Parameter #0 [ $values ] + Parameter #0 [ $value ] Parameter #1 [ ?int $precision = ] } - - Return [ Decimal\Decimal ] + - Return [ Decimal\Number ] + } + } + + - Properties [0] { + } + + - Methods [45] { + Method [ private method __construct ] { + + - Parameters [0] { + } + } + + Method [ public method add ] { + + - Parameters [1] { + Parameter #0 [ $value ] + } + - Return [ Decimal\Number ] + } + + Method [ public method sub ] { + + - Parameters [1] { + Parameter #0 [ $value ] + } + - Return [ Decimal\Number ] + } + + Method [ public method mul ] { + + - Parameters [1] { + Parameter #0 [ $value ] + } + - Return [ Decimal\Number ] + } + + Method [ public method div ] { + + - Parameters [1] { + Parameter #0 [ $value ] + } + - Return [ Decimal\Number ] + } + + Method [ public method rem ] { + + - Parameters [1] { + Parameter #0 [ $value ] + } + - Return [ Decimal\Number ] + } + + Method [ public method mod ] { + + - Parameters [1] { + Parameter #0 [ $value ] + } + - Return [ Decimal\Number ] + } + + Method [ public method pow ] { + + - Parameters [1] { + Parameter #0 [ $value ] + } + - Return [ Decimal\Number ] + } + + Method [ public method shiftl ] { + + - Parameters [1] { + Parameter #0 [ $places ] + } + - Return [ Decimal\Number ] + } + + Method [ public method shiftr ] { + + - Parameters [1] { + Parameter #0 [ $places ] + } + - Return [ Decimal\Number ] + } + + Method [ public method ln ] { + + - Parameters [0] { + } + - Return [ Decimal\Number ] + } + + Method [ public method exp ] { + + - Parameters [0] { + } + - Return [ Decimal\Number ] + } + + Method [ public method log10 ] { + + - Parameters [0] { + } + - Return [ Decimal\Number ] + } + + Method [ public method sqrt ] { + + - Parameters [0] { + } + - Return [ Decimal\Number ] + } + + Method [ public method floor ] { + + - Parameters [0] { + } + - Return [ Decimal\Number ] + } + + Method [ public method ceil ] { + + - Parameters [0] { + } + - Return [ Decimal\Number ] + } + + Method [ public method trunc ] { + + - Parameters [0] { + } + - Return [ Decimal\Number ] + } + + Method [ public method round ] { + + - Parameters [2] { + Parameter #0 [ ?int $places = ] + Parameter #1 [ ?int $mode = ] + } + - Return [ Decimal\Number ] + } + + Method [ public method trim ] { + + - Parameters [0] { + } + - Return [ Decimal\Number ] } - Method [ static public method avg ] { + Method [ public method reduce ] { - - Parameters [2] { - Parameter #0 [ $values ] - Parameter #1 [ ?int $precision = ] + - Parameters [0] { } - - Return [ Decimal\Decimal ] + - Return [ Decimal\Number ] } - } - - Properties [0] { - } + Method [ public method precision ] { + + - Parameters [0] { + } + - Return [ int ] + } - - Methods [41] { - Method [ public method __construct ] { + Method [ public method abs ] { - - Parameters [2] { - Parameter #0 [ $value = ] - Parameter #1 [ int $precision = ] + - Parameters [0] { } + - Return [ Decimal\Number ] } - Method [ public method copy ] { + Method [ public method negate ] { - Parameters [0] { } - - Return [ Decimal\Decimal ] + - Return [ Decimal\Number ] } - Method [ public method add ] { + Method [ public method isEven ] { - - Parameters [1] { - Parameter #0 [ $value ] + - Parameters [0] { } - - Return [ Decimal\Decimal ] + - Return [ bool ] } - Method [ public method sub ] { + Method [ public method isOdd ] { - - Parameters [1] { - Parameter #0 [ $value ] + - Parameters [0] { } - - Return [ Decimal\Decimal ] + - Return [ bool ] } - Method [ public method mul ] { + Method [ public method isPositive ] { - - Parameters [1] { - Parameter #0 [ $value ] + - Parameters [0] { } - - Return [ Decimal\Decimal ] + - Return [ bool ] } - Method [ public method div ] { + Method [ public method isNegative ] { - - Parameters [1] { - Parameter #0 [ $value ] + - Parameters [0] { } - - Return [ Decimal\Decimal ] + - Return [ bool ] } - Method [ public method rem ] { + Method [ public method isNaN ] { - - Parameters [1] { - Parameter #0 [ $value ] + - Parameters [0] { } - - Return [ Decimal\Decimal ] + - Return [ bool ] } - Method [ public method mod ] { + Method [ public method isInf ] { - - Parameters [1] { - Parameter #0 [ $value ] + - Parameters [0] { } - - Return [ Decimal\Decimal ] + - Return [ bool ] } - Method [ public method pow ] { + Method [ public method isInteger ] { - - Parameters [1] { - Parameter #0 [ $value ] + - Parameters [0] { } - - Return [ Decimal\Decimal ] + - Return [ bool ] } - Method [ public method ln ] { + Method [ public method isZero ] { - Parameters [0] { } - - Return [ Decimal\Decimal ] + - Return [ bool ] } - Method [ public method exp ] { + Method [ public method toString ] { - Parameters [0] { } - - Return [ Decimal\Decimal ] + - Return [ string ] } - Method [ public method log10 ] { + Method [ public method toFixed ] { + + - Parameters [3] { + Parameter #0 [ ?int $places = ] + Parameter #1 [ ?bool $commas = ] + Parameter #2 [ ?int $mode = ] + } + - Return [ string ] + } + + Method [ public method toScientific ] { + + - Parameters [1] { + Parameter #0 [ ?int $precision = ] + } + - Return [ string ] + } + + Method [ public method toInt ] { - Parameters [0] { } - - Return [ Decimal\Decimal ] + - Return [ int ] } - Method [ public method sqrt ] { + Method [ public method toFloat ] { - Parameters [0] { } + - Return [ float ] + } + + Method [ public method toDecimal ] { + + - Parameters [1] { + Parameter #0 [ int $precision = ] + } - Return [ Decimal\Decimal ] } - Method [ public method floor ] { + Method [ public method toRational ] { - Parameters [0] { } - - Return [ Decimal\Decimal ] + - Return [ Decimal\Rational ] } - Method [ public method ceil ] { + Method [ public method compareTo ] { + + - Parameters [1] { + Parameter #0 [ $other ] + } + - Return [ int ] + } + + Method [ public method between ] { + + - Parameters [3] { + Parameter #0 [ $a ] + Parameter #1 [ $b ] + Parameter #2 [ ?bool $inclusive = ] + } + - Return [ bool ] + } + + Method [ public method equals ] { + + - Parameters [1] { + Parameter #0 [ $other ] + } + - Return [ bool ] + } + + Method [ public method __serialize ] { - Parameters [0] { } - - Return [ Decimal\Decimal ] + - Return [ array ] + } + + Method [ public method __unserialize ] { + + - Parameters [1] { + Parameter #0 [ $data ] + } } - Method [ public method truncate ] { + Method [ public method __toString ] { - Parameters [0] { } - - Return [ Decimal\Decimal ] + - Return [ string ] } - Method [ public method round ] { + Method [ public method jsonSerialize ] { - - Parameters [2] { - Parameter #0 [ ?int $places = ] - Parameter #1 [ ?int $rounding = ] + - Parameters [0] { } - - Return [ Decimal\Decimal ] + - Return [ string ] } + } + } + + Class [ final class Decimal\Rational extends Decimal\Number implements JsonSerializable, Stringable ] { + + - Constants [13] { + Constant [ public int DEFAULT_ROUNDING ] { 3 } + Constant [ public int ROUND_UP ] { 101 } + Constant [ public int ROUND_DOWN ] { 102 } + Constant [ public int ROUND_CEILING ] { 103 } + Constant [ public int ROUND_FLOOR ] { 104 } + Constant [ public int ROUND_HALF_UP ] { 1 } + Constant [ public int ROUND_HALF_DOWN ] { 2 } + Constant [ public int ROUND_HALF_EVEN ] { 3 } + Constant [ public int ROUND_HALF_ODD ] { 4 } + Constant [ public int ROUND_TRUNCATE ] { 105 } + Constant [ public int DEFAULT_PRECISION ] { 34 } + Constant [ public int MIN_PRECISION ] { 1 } + Constant [ public int MAX_PRECISION ] { 999999999999999999 } + } + + - Static properties [0] { + } - Method [ public method shift ] { + - Static methods [1] { + Method [ static public method valueOf ] { - Parameters [1] { - Parameter #0 [ int $places ] + Parameter #0 [ $value ] } - - Return [ Decimal\Decimal ] + - Return [ Decimal\Number ] } + } - Method [ public method trim ] { + - Properties [0] { + } + + - Methods [38] { + Method [ private method __construct ] { - Parameters [0] { } - - Return [ Decimal\Decimal ] } - Method [ public method precision ] { + Method [ public method add ] { + + - Parameters [1] { + Parameter #0 [ $value ] + } + - Return [ Decimal\Number ] + } + + Method [ public method sub ] { + + - Parameters [1] { + Parameter #0 [ $value ] + } + - Return [ Decimal\Number ] + } + + Method [ public method mul ] { + + - Parameters [1] { + Parameter #0 [ $value ] + } + - Return [ Decimal\Number ] + } + + Method [ public method div ] { + + - Parameters [1] { + Parameter #0 [ $value ] + } + - Return [ Decimal\Number ] + } + + Method [ public method pow ] { + + - Parameters [1] { + Parameter #0 [ $exponent ] + } + - Return [ Decimal\Number ] + } + + Method [ public method rem ] { + + - Parameters [1] { + Parameter #0 [ $value ] + } + - Return [ Decimal\Number ] + } + + Method [ public method mod ] { + + - Parameters [1] { + Parameter #0 [ $value ] + } + - Return [ Decimal\Number ] + } + + Method [ public method shiftl ] { + + - Parameters [1] { + Parameter #0 [ $places ] + } + - Return [ Decimal\Number ] + } + + Method [ public method shiftr ] { + + - Parameters [1] { + Parameter #0 [ $places ] + } + - Return [ Decimal\Number ] + } + + Method [ public method floor ] { - Parameters [0] { } - - Return [ int ] + - Return [ Decimal\Number ] } - Method [ public method signum ] { + Method [ public method ceil ] { - Parameters [0] { } - - Return [ int ] + - Return [ Decimal\Number ] } - Method [ public method parity ] { + Method [ public method trunc ] { - Parameters [0] { } - - Return [ int ] + - Return [ Decimal\Number ] } - Method [ public method abs ] { + Method [ public method round ] { + + - Parameters [2] { + Parameter #0 [ ?int $places = ] + Parameter #1 [ ?int $rounding = ] + } + - Return [ Decimal\Number ] + } + + Method [ public method abs ] { - Parameters [0] { } - - Return [ Decimal\Decimal ] + - Return [ Decimal\Number ] } - Method [ public method negate ] { + Method [ public method negate ] { - Parameters [0] { } - - Return [ Decimal\Decimal ] + - Return [ Decimal\Number ] } - Method [ public method isEven ] { + Method [ public method isEven ] { - Parameters [0] { } - Return [ bool ] } - Method [ public method isOdd ] { + Method [ public method isOdd ] { - Parameters [0] { } - Return [ bool ] } - Method [ public method isPositive ] { + Method [ public method isPositive ] { - Parameters [0] { } - Return [ bool ] } - Method [ public method isNegative ] { + Method [ public method isNegative ] { - Parameters [0] { } - Return [ bool ] } - Method [ public method isNaN ] { + Method [ public method isNaN ] { - Parameters [0] { } - Return [ bool ] } - Method [ public method isInf ] { + Method [ public method isInf ] { - Parameters [0] { } - Return [ bool ] } - Method [ public method isInteger ] { + Method [ public method isInteger ] { - Parameters [0] { } - Return [ bool ] } - Method [ public method isZero ] { + Method [ public method isZero ] { - Parameters [0] { } - Return [ bool ] } - Method [ public method toFixed ] { + Method [ public method toFixed ] { - Parameters [3] { Parameter #0 [ ?int $places = ] Parameter #1 [ ?bool $commas = ] - Parameter #2 [ ?int $rounding = ] + Parameter #2 [ ?int $mode = ] + } + - Return [ string ] + } + + Method [ public method toScientific ] { + + - Parameters [1] { + Parameter #0 [ ?int $precision = ] } - Return [ string ] } - Method [ public method toString ] { + Method [ public method toString ] { - Parameters [0] { } - Return [ string ] } - Method [ public method toInt ] { + Method [ public method toInt ] { - Parameters [0] { } - Return [ int ] } - Method [ public method toFloat ] { + Method [ public method toFloat ] { - Parameters [0] { } - Return [ float ] } - Method [ public method equals ] { + Method [ public method toDecimal ] { - Parameters [1] { - Parameter #0 [ $other ] + Parameter #0 [ int $precision ] } - - Return [ bool ] + - Return [ Decimal\Decimal ] + } + + Method [ public method toRational ] { + + - Parameters [0] { + } + - Return [ Decimal\Rational ] } - Method [ public method compareTo ] { + Method [ public method compareTo ] { - Parameters [1] { Parameter #0 [ $other ] @@ -328,23 +938,46 @@ Extension [ extension #76 decimal version 1.5.3 ] { - Return [ int ] } - Method [ public method between ] { + Method [ public method between ] { - - Parameters [2] { - Parameter #0 [ $op1 ] - Parameter #1 [ $op2 = ] + - Parameters [3] { + Parameter #0 [ $a ] + Parameter #1 [ $b ] + Parameter #2 [ ?bool $inclusive = ] } - Return [ bool ] } - Method [ public method __toString ] { + Method [ public method equals ] { + + - Parameters [1] { + Parameter #0 [ $other ] + } + - Return [ bool ] + } + + Method [ public method __serialize ] { + + - Parameters [0] { + } + - Return [ array ] + } + + Method [ public method __unserialize ] { + + - Parameters [1] { + Parameter #0 [ $data ] + } + } + + Method [ public method __toString ] { - Parameters [0] { } - Return [ string ] } - Method [ public method jsonSerialize ] { + Method [ public method jsonSerialize ] { - Parameters [0] { } diff --git a/php-pecl-decimal.spec b/php-pecl-decimal.spec index 9dd74bd..a5c523f 100644 --- a/php-pecl-decimal.spec +++ b/php-pecl-decimal.spec @@ -15,7 +15,6 @@ %global pecl_name decimal %global pie_vend php-%{pecl_name} %global pie_proj ext-%{pecl_name} -# After 20-json.ini %global ini_name 40-%{pecl_name}.ini %global _configure ../configure @@ -30,7 +29,7 @@ Name: %{?scl_prefix}php-pecl-%{pecl_name} Summary: Arbitrary-precision floating-point decimal License: MIT -Version: 1.5.3 +Version: 2.0.1 Release: 1%{?dist} %forgemeta URL: %{forgeurl} @@ -38,13 +37,11 @@ Source0: %{forgesource} BuildRequires: make BuildRequires: %{?dtsprefix}gcc -BuildRequires: %{?scl_prefix}php-devel >= 7.4 -BuildRequires: %{?scl_prefix}php-json +BuildRequires: %{?scl_prefix}php-devel >= 8.2 BuildRequires: mpdecimal-devel >= 2.4 Requires: %{?scl_prefix}php(zend-abi) = %{php_zend_api} Requires: %{?scl_prefix}php(api) = %{php_core_api} -Requires: %{?scl_prefix}php-json%{?_isa} # Extension Provides: %{?scl_prefix}php-%{pecl_name} = %{version} @@ -90,13 +87,14 @@ EOF %{?dtsenable} %{__phpize} +sed -e 's/INSTALL_ROOT/DESTDIR/' -i build/Makefile.global cd NTS %configure \ --with-decimal \ --with-libdir=%{_lib} \ --with-php-config=%{__phpconfig} -make %{?_smp_mflags} +%make_build %if %{with_zts} cd ../ZTS @@ -104,45 +102,40 @@ cd ../ZTS --with-decimal \ --with-libdir=%{_lib} \ --with-php-config=%{__ztsphpconfig} -make %{?_smp_mflags} +%make_build %endif %install %{?dtsenable} -make -C NTS install INSTALL_ROOT=%{buildroot} +%make_install -C NTS # install config file install -D -m 644 %{ini_name} %{buildroot}%{php_inidir}/%{ini_name} %if %{with_zts} -make -C ZTS install INSTALL_ROOT=%{buildroot} +%make_install -C ZTS install -D -m 644 %{ini_name} %{buildroot}%{php_ztsinidir}/%{ini_name} %endif %check -OPT="-n" -[ -f %{php_extdir}/json.so ] && OPT="$OPT -d extension=json.so" - -# Minimal load test for NTS extension -%{__php} $OPT \ +: Minimal load test for NTS extension +%{__php} -n \ --define extension=%{buildroot}%{php_extdir}/%{pecl_name}.so \ --modules | grep '^%{pecl_name}$' %if %{with tests} : Upstream test suite for NTS extension -TEST_PHP_EXECUTABLE=%{__php} \ -TEST_PHP_ARGS="$OPT -d extension=%{buildroot}%{php_extdir}/%{pecl_name}.so" \ -REPORT_EXIT_STATUS=1 \ -%{__php} -n run-tests.php -q --show-diff +TEST_PHP_ARGS="-n -d extension=%{buildroot}%{php_extdir}/%{pecl_name}.so" \ +%{__php} -n run-tests.php -q --show-diff %{?_smp_mflags} %endif %if %{with_zts} -# Minimal load test for ZTS extension -%{__ztsphp} $OPT \ +: Minimal load test for ZTS extension +%{__ztsphp} -n \ --define extension=%{buildroot}%{php_ztsextdir}/%{pecl_name}.so \ --modules | grep '^%{pecl_name}$' %endif @@ -150,6 +143,7 @@ REPORT_EXIT_STATUS=1 \ %files %license LICENSE +%doc composer.json %doc *.md %config(noreplace) %{php_inidir}/%{ini_name} @@ -162,6 +156,10 @@ REPORT_EXIT_STATUS=1 \ %changelog +* Sun Apr 12 2026 Remi Collet - 2.0.1-1 +- update to 2.0.1 +- drop support for PHP < 8.2 + * Sun Apr 12 2026 Remi Collet - 1.5.3-1 - update to 1.5.3 -- cgit