summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2021-03-26 09:03:20 +0100
committerRemi Collet <remi@remirepo.net>2021-03-26 09:03:20 +0100
commita83d8d10b3be229bafb2ae6136453749f9236959 (patch)
treef46b6af1a99302239e4aa8c2e41430a548e904b3
parent150050a88a0fc4b5ef6cc7de642790ea8a8a4028 (diff)
switch to phpunit7
-rw-r--r--php-pecl-ds.spec18
1 files 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 <remi@remirepo.net> - 1.3.0-4
+- switch to phpunit7
+
* Tue Nov 3 2020 Remi Collet <remi@remirepo.net> - 1.3.0-2
- fix segfault using patch from
https://github.com/php-ds/ext-ds/pull/165