From a83d8d10b3be229bafb2ae6136453749f9236959 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Fri, 26 Mar 2021 09:03:20 +0100 Subject: switch to phpunit7 --- php-pecl-ds.spec | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/php-pecl-ds.spec b/php-pecl-ds.spec index a130037..fb05d13 100644 --- a/php-pecl-ds.spec +++ b/php-pecl-ds.spec @@ -1,6 +1,6 @@ # remirepo spec file for php-pecl-ds # -# Copyright (c) 2016-2020 Remi Collet +# Copyright (c) 2016-2021 Remi Collet # License: CC-BY-SA # http://creativecommons.org/licenses/by-sa/4.0/ # @@ -34,7 +34,7 @@ Summary: Data Structures for PHP Name: %{?sub_prefix}php-pecl-%{pecl_name} Version: 1.3.0 -Release: 2%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} +Release: 4%{?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 @@ -44,13 +44,14 @@ Source1: https://github.com/%{gh_owner}/%{gh_project}/archive/%{gh_commit Patch0: 0001-fix-missing-return-after-exception.patch +BuildRequires: make BuildRequires: %{?dtsprefix}gcc BuildRequires: %{?scl_prefix}php-devel >= 7 BuildRequires: %{?scl_prefix}php-pear BuildRequires: %{?scl_prefix}php-gmp BuildRequires: %{?scl_prefix}php-json %if %{with tests} -BuildRequires: %{_bindir}/phpunit6 +BuildRequires: %{_bindir}/phpunit7 BuildRequires: %{_bindir}/phpab %endif #BuildRequires: php-debuginfo @@ -82,12 +83,6 @@ Obsoletes: php80-pecl-%{pecl_name} <= %{version} %endif %endif -%if 0%{?fedora} < 20 && 0%{?rhel} < 7 -# Filter shared private -%{?filter_provides_in: %filter_provides_in %{_libdir}/.*\.so$} -%{?filter_setup} -%endif - %description An extension providing specialized data structures as efficient alternatives @@ -223,7 +218,7 @@ cd .. : Run upstream test suite %{_bindir}/php \ -d extension=%{buildroot}%{php_extdir}/%{pecl_name}.so \ - %{_bindir}/phpunit6 \ + %{_bindir}/phpunit7 \ --bootstrap tests/autoload.php \ tests %endif @@ -244,6 +239,9 @@ cd .. %changelog +* Fri Mar 26 2021 Remi Collet - 1.3.0-4 +- switch to phpunit7 + * Tue Nov 3 2020 Remi Collet - 1.3.0-2 - fix segfault using patch from https://github.com/php-ds/ext-ds/pull/165 -- cgit