Compare commits
3 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5b5d8da03e | ||
|
|
fbc836d76f | ||
|
|
fe46c5d99d |
3 changed files with 23 additions and 15 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
Release: 2%{?dist}
|
||||
Summary: PHP Utility class for timing
|
||||
Version: 5.0.3
|
||||
Release: 1%{?dist}
|
||||
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
|
||||
|
||||
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 5.0.1-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
||||
|
||||
|
|
|
|||
2
sources
2
sources
|
|
@ -1 +1 @@
|
|||
SHA512 (php-phpunit-php-timer5-5.0.1-cc49734.tgz) = 5ac0f3a4bbd1fda51018a3f01c84e955e2b41a398ea6f21a89efa236119289d97492357bf6b2789c6e8db6fbf29b31c93e452e778ddd4f796980d2405f230c4f
|
||||
SHA512 (php-phpunit-php-timer5-5.0.3-5a63ce2.tgz) = 798a4d78bde219747996ae56d83092fe0d070790ed7c1395c04b51e5dfb836e0021ad789341297e5abe7b3a15f428ca270bff6611c18e938cdf1cf7b86adcb84
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue