summaryrefslogtreecommitdiffstats
path: root/php-phpunit-php-timer5.spec
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2020-10-27 11:45:53 +0100
committerRemi Collet <remi@remirepo.net>2020-10-27 11:45:53 +0100
commit7eb586569dfc7c998bca8fe8cef7a9c86492365e (patch)
tree0d5f864acbcc9fc09d4c2f331806fcc099680f4d /php-phpunit-php-timer5.spec
parenta4ddacc3b089f3df8bb8c1121b4bf6348d55e1e2 (diff)
add patch for test suite on 32-bit from
https://github.com/sebastianbergmann/php-timer/pull/36
Diffstat (limited to 'php-phpunit-php-timer5.spec')
-rw-r--r--php-phpunit-php-timer5.spec13
1 files changed, 8 insertions, 5 deletions
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 <remi@remirepo.net> - 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 <remi@remirepo.net> - 5.0.3-1
- update to 5.0.3
- open https://github.com/sebastianbergmann/php-timer/issues/34