Compare commits

...
Sign in to create a new pull request.

3 commits

Author SHA1 Message Date
Remi Collet
4ab7658885 fix arch detection
(cherry picked from commit 19d9d50b12)
2020-10-26 15:44:59 +01:00
Remi Collet
2d984c366b skip 1 test on 32-bit
(cherry picked from commit afab8e8a0b)
2020-10-26 15:38:36 +01:00
Remi Collet
11ba353c74 v5.0.3
(cherry picked from commit fe46c5d99d)
2020-10-26 15:22:16 +01:00
3 changed files with 22 additions and 14 deletions

2
.gitignore vendored
View file

@ -1 +1,3 @@
/php-phpunit-php-timer5-5.0.1-cc49734.tgz
/php-phpunit-php-timer5-5.0.2-c9ff14f.tgz
/php-phpunit-php-timer5-5.0.3-5a63ce2.tgz

View file

@ -7,8 +7,9 @@
#
# Please, preserve the changelog entries
#
%global bootstrap 1
%global gh_commit cc49734779cbb302bf51a44297dab8c4bbf941e7
%bcond_without tests
%global gh_commit 5a63ce20ed1b5bf577850e2c4e87f4aa902afbd2
%global gh_short %(c=%{gh_commit}; echo ${c:0:7})
%global gh_owner sebastianbergmann
%global gh_project php-timer
@ -21,16 +22,11 @@
%global major 5
%global php_home %{_datadir}/php
%if %{bootstrap}
%bcond_with tests
%else
%bcond_without tests
%endif
Name: php-%{pk_vendor}-%{pk_project}%{major}
Version: 5.0.1
Version: 5.0.3
Release: 1%{?dist}
Summary: PHP Utility class for timing
Summary: PHP Utility class for timing, version %{major}
License: BSD
URL: https://github.com/%{gh_owner}/%{gh_project}
@ -42,12 +38,12 @@ BuildRequires: php(language) >= 7.3
BuildRequires: php-fedora-autoloader-devel
%if %{with tests}
# From composer.json"require-dev": {
# "phpunit/phpunit": "^9.2"
BuildRequires: phpunit9 >= 9.2
# "phpunit/phpunit": "^9.3"
BuildRequires: phpunit9 >= 9.3
%endif
# From composer.json
# "php": "^7.3 || ^8.0"
# "php": ">=7.3"
Requires: php(language) >= 7.3
# From phpcompatinfo report for version 4.0.0
Requires: php-spl
@ -85,10 +81,15 @@ touch vendor/autoload.php
: Run upstream test suite
ret=0
if [ $(php -r 'echo PHP_INT_SIZE;') -lt 8 ]; then
filter="--filter '^((?!(testCanBeFormattedAsString)).)*$'"
fi
for cmd in php php73 php74 php80; do
if which $cmd; then
$cmd -d auto_prepend_file=%{buildroot}%{php_home}/%{ns_vendor}/%{ns_project}%{major}/autoload.php \
%{_bindir}/phpunit9 --verbose || ret=1
%{_bindir}/phpunit9 \
$filter \
--verbose || ret=1
fi
done
exit $ret
@ -104,6 +105,11 @@ exit $ret
%changelog
* Mon Oct 26 2020 Remi Collet <remi@remirepo.net> - 5.0.3-1
- update to 5.0.3
- open https://github.com/sebastianbergmann/php-timer/issues/34
32-bit compatibility
* Fri Jun 26 2020 Remi Collet <remi@remirepo.net> - 5.0.1-1
- update to 5.0.1

View file

@ -1 +1 @@
SHA512 (php-phpunit-php-timer5-5.0.1-cc49734.tgz) = 5ac0f3a4bbd1fda51018a3f01c84e955e2b41a398ea6f21a89efa236119289d97492357bf6b2789c6e8db6fbf29b31c93e452e778ddd4f796980d2405f230c4f
SHA512 (php-phpunit-php-timer5-5.0.3-5a63ce2.tgz) = 798a4d78bde219747996ae56d83092fe0d070790ed7c1395c04b51e5dfb836e0021ad789341297e5abe7b3a15f428ca270bff6611c18e938cdf1cf7b86adcb84