From 7eb586569dfc7c998bca8fe8cef7a9c86492365e Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Tue, 27 Oct 2020 11:45:53 +0100 Subject: add patch for test suite on 32-bit from https://github.com/sebastianbergmann/php-timer/pull/36 --- php-phpunit-php-timer5.spec | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'php-phpunit-php-timer5.spec') diff --git a/php-phpunit-php-timer5.spec b/php-phpunit-php-timer5.spec index 2697b6d..9e08e30 100644 --- a/php-phpunit-php-timer5.spec +++ b/php-phpunit-php-timer5.spec @@ -25,7 +25,7 @@ Name: php-%{pk_vendor}-%{pk_project}%{major} Version: 5.0.3 -Release: 1%{?dist} +Release: 2%{?dist} Summary: PHP Utility class for timing, version %{major} License: BSD @@ -33,6 +33,8 @@ URL: https://github.com/%{gh_owner}/%{gh_project} Source0: %{name}-%{version}-%{gh_short}.tgz Source1: makesrc.sh +Patch0: https://patch-diff.githubusercontent.com/raw/sebastianbergmann/php-timer/pull/36.patch + BuildArch: noarch BuildRequires: php(language) >= 7.3 BuildRequires: php-fedora-autoloader-devel @@ -60,6 +62,7 @@ component. %prep %setup -q -n %{gh_project}-%{gh_commit} +%patch0 -p1 %build @@ -81,14 +84,10 @@ 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 \ - $filter \ --verbose || ret=1 fi done @@ -107,6 +106,10 @@ exit $ret %changelog +* Tue Oct 27 2020 Remi Collet - 5.0.3-2 +- add patch for test suite on 32-bit from + https://github.com/sebastianbergmann/php-timer/pull/36 + * Mon Oct 26 2020 Remi Collet - 5.0.3-1 - update to 5.0.3 - open https://github.com/sebastianbergmann/php-timer/issues/34 -- cgit