update to 2.0.3 (no change)

switch to phpunit8
This commit is contained in:
Remi Collet 2020-11-30 10:39:58 +01:00
commit c1eb2bb098
3 changed files with 14 additions and 9 deletions

View file

@ -8,7 +8,7 @@
# Please, preserve the changelog entries
#
%global bootstrap 0
%global gh_commit 050bedf145a257b1ff02746c31894800e5122946
%global gh_commit 4b49fb70f067272b659ef0174ff9ca40fdaa6357
%global gh_short %(c=%{gh_commit}; echo ${c:0:7})
%global gh_owner sebastianbergmann
%global gh_project php-file-iterator
@ -28,8 +28,8 @@
Name: php-%{pk_vendor}-%{pk_project}%{major}
Version: 2.0.2
Release: 5%{?dist}
Version: 2.0.3
Release: 1%{?dist}
Summary: FilterIterator implementation that filters files based on a list of suffixes
License: BSD
@ -39,9 +39,9 @@ Source0: https://github.com/%{gh_owner}/%{gh_project}/archive/%{gh_commit
BuildArch: noarch
%if %{with_tests}
# From composer.json, "require-dev"
# "phpunit/phpunit": "^7.1"
BuildRequires: phpunit7 >= 7.1
BuildRequires: php(language) >= 7.1
# "phpunit/phpunit": "^8.5"
BuildRequires: phpunit8 >= 8.5
BuildRequires: php(language) >= 7.2
BuildRequires: php-pcre
BuildRequires: php-spl
%endif
@ -86,10 +86,10 @@ touch vendor/autoload.php
: Run upstream test suite
ret=0
for cmd in php php71 php72; do
for cmd in php php72 php73 php74 php80; do
if which $cmd; then
$cmd -d auto_prepend_file=%{buildroot}%{php_home}/%{ns_vendor}/%{ns_project}%{major}/autoload.php \
%{_bindir}/phpunit7 --verbose || ret=1
%{_bindir}/phpunit8 --verbose || ret=1
fi
done
exit $ret
@ -106,6 +106,10 @@ exit $ret
%changelog
* Mon Nov 30 2020 Remi Collet <remi@remirepo.net> - 2.0.3-1
- update to 2.0.3 (no change)
- switch to phpunit8
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.2-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild