diff options
| author | Remi Collet <remi@remirepo.net> | 2026-04-14 09:42:37 +0200 |
|---|---|---|
| committer | Remi Collet <remi@php.net> | 2026-04-14 09:42:37 +0200 |
| commit | 112f3bc093f3d4358603dca82daa1bd903ffe454 (patch) | |
| tree | e840849dc14e1128c29bafc6ec1a488914c75ad9 /php-pecl-ds.spec | |
| parent | bb1f6f3af659e0256e60f6dd6c00ae8fa58e0caf (diff) | |
update to 1.8.0
raise dependency on PHP 8.2
switch to phpunit11
Diffstat (limited to 'php-pecl-ds.spec')
| -rw-r--r-- | php-pecl-ds.spec | 34 |
1 files changed, 23 insertions, 11 deletions
diff --git a/php-pecl-ds.spec b/php-pecl-ds.spec index 5d2f9e6..af4f4b1 100644 --- a/php-pecl-ds.spec +++ b/php-pecl-ds.spec @@ -33,31 +33,35 @@ # for EL-8 to avoid TAG usage %global archivename0 %{gh_proj}-%{version} -# For test suite, see https://github.com/php-ds/tests/commits/master -# version 1.5.1 (version 1.6.0 exist but requires phpunit12, so PHP 8.3) +# For test suite, see https://github.com/php-ds/tests/tags %global forgeurl1 https://github.com/%{gh_vend}/tests -%global tag1 v1.5.1 -%global archivename1 tests-1.5.1 +%global tag1 v1.8.0 +%global archivename1 tests-1.8.0 Summary: Data Structures for PHP Name: %{?scl_prefix}php-pecl-%{pecl_name} License: MIT -Version: 1.6.0 -Release: 4%{?dist} +Version: 1.8.0 +Release: 1%{?dist} +%if 0%{?rhel} == 8 +URL: %{forgeurl0} +Source0: %{forgeurl0}/archive/v%{tag0}/%{archivename0}.tar.gz +Source1: %{forgeurl1}/archive/v%{tag1}/%{archivename1}.tar.gz +%else %forgemeta -a URL: %{forgeurl} Source0: %{forgesource0} Source1: %{forgesource1} +%endif BuildRequires: make BuildRequires: %{?dtsprefix}gcc -BuildRequires: %{?scl_prefix}php-devel >= 7.4 -BuildRequires: %{?scl_prefix}php-pear +BuildRequires: %{?scl_prefix}php-devel >= 8.2 BuildRequires: %{?scl_prefix}php-gmp BuildRequires: %{?scl_prefix}php-json %if %{with tests} -BuildRequires: %{_bindir}/phpunit9 +BuildRequires: %{_bindir}/phpunit11 BuildRequires: %{_bindir}/phpab %endif #BuildRequires: php-debuginfo @@ -167,6 +171,9 @@ install -D -m 644 %{ini_name} %{buildroot}%{php_ztsinidir}/%{ini_name} %endif %if %{with tests} +# This file is not a test file +mv tests/tests/CollectionTest.php tests/tests/Collection.php + : Generate autoloader for tests %{_bindir}/phpab \ --output tests/autoload.php \ @@ -175,10 +182,10 @@ install -D -m 644 %{ini_name} %{buildroot}%{php_ztsinidir}/%{ini_name} : Run upstream test suite %{_bindir}/php \ -d extension=%{buildroot}%{php_extdir}/%{pecl_name}.so \ - %{_bindir}/phpunit9 \ + %{_bindir}/phpunit11 \ --do-not-cache-result \ --bootstrap tests/autoload.php \ - --verbose tests + tests %endif @@ -197,6 +204,11 @@ install -D -m 644 %{ini_name} %{buildroot}%{php_ztsinidir}/%{ini_name} %changelog +* Tue Apr 14 2026 Remi Collet <remi@remirepo.net> - 1.8.0-1 +- update to 1.8.0 +- raise dependency on PHP 8.2 +- switch to phpunit11 + * Fri Mar 13 2026 Remi Collet <remi@remirepo.net> - 1.6.0-4 - drop pear/pecl dependency - sources from github |
