update to 2.1.3 (no change)
switch to phpunit8
This commit is contained in:
parent
a4168b35bb
commit
6957c48f27
3 changed files with 15 additions and 10 deletions
|
|
@ -8,7 +8,7 @@
|
|||
# Please, preserve the changelog entries
|
||||
#
|
||||
%global bootstrap 0
|
||||
%global gh_commit 1038454804406b0b5f5f520358e78c1c2f71501e
|
||||
%global gh_commit 2454ae1765516d20c4ffe103d85a58a9a3bd5662
|
||||
%global gh_short %(c=%{gh_commit}; echo ${c:0:7})
|
||||
%global gh_owner sebastianbergmann
|
||||
%global gh_project php-timer
|
||||
|
|
@ -28,8 +28,8 @@
|
|||
%endif
|
||||
|
||||
Name: php-%{pk_vendor}-%{pk_project}%{major}
|
||||
Version: 2.1.2
|
||||
Release: 4%{?dist}
|
||||
Version: 2.1.3
|
||||
Release: 1%{?dist}
|
||||
Summary: PHP Utility class for timing
|
||||
|
||||
License: BSD
|
||||
|
|
@ -37,16 +37,16 @@ URL: https://github.com/%{gh_owner}/%{gh_project}
|
|||
Source0: https://github.com/%{gh_owner}/%{gh_project}/archive/%{gh_commit}/%{name}-%{version}-%{gh_short}.tar.gz
|
||||
|
||||
BuildArch: noarch
|
||||
BuildRequires: php(language) >= 7.1
|
||||
BuildRequires: php(language) >= 7.2
|
||||
BuildRequires: php-fedora-autoloader-devel
|
||||
%if %{with_tests}
|
||||
# From composer.json"require-dev": {
|
||||
# "phpunit/phpunit": "^7.0"
|
||||
BuildRequires: phpunit7
|
||||
# "phpunit/phpunit": "^8.5"
|
||||
BuildRequires: phpunit8 >= 8.5
|
||||
%endif
|
||||
|
||||
# From composer.json
|
||||
# "php": "^7.1"
|
||||
# "php": ">=7.1"
|
||||
Requires: php(language) >= 7.1
|
||||
# From phpcompatinfo report for version 2.0.0
|
||||
Requires: php-spl
|
||||
|
|
@ -84,10 +84,10 @@ touch vendor/autoload.php
|
|||
|
||||
: Run upstream test suite
|
||||
ret=0
|
||||
for cmd in php php71 php72 php73 php74; 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}/autoload.php \
|
||||
%{_bindir}/phpunit7 --verbose || ret=1
|
||||
%{_bindir}/phpunit8 --verbose || ret=1
|
||||
fi
|
||||
done
|
||||
exit $ret
|
||||
|
|
@ -103,6 +103,10 @@ exit $ret
|
|||
|
||||
|
||||
%changelog
|
||||
* Mon Nov 30 2020 Remi Collet <remi@remirepo.net> - 2.1.3-1
|
||||
- update to 2.1.3 (no change)
|
||||
- switch to phpunit8
|
||||
|
||||
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.2-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue