summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--php-brick-varexporter.spec11
1 files changed, 9 insertions, 2 deletions
diff --git a/php-brick-varexporter.spec b/php-brick-varexporter.spec
index e181117..8a45343 100644
--- a/php-brick-varexporter.spec
+++ b/php-brick-varexporter.spec
@@ -20,7 +20,7 @@
Name: php-%{pk_vendor}-%{pk_name}
Version: 0.3.5
-Release: 1%{?dist}
+Release: 3%{?dist}
Summary: A powerful alternative to var_export
License: MIT
@@ -29,6 +29,9 @@ Source0: %{name}-%{version}-%{gh_short}.tgz
# Create git snapshot as tests are excluded from official tarball
Source1: makesrc.sh
+# Upstream patch for PHP 8.1 (test suite)
+Patch0: %{name}-tests.patch
+
BuildArch: noarch
BuildRequires: php(language) >= 7.2
@@ -88,6 +91,7 @@ Autoloader: %{_datadir}/php/%{ns_vendor}/%{ns_project}/autoload.php
%prep
%setup -q -n %{gh_project}-%{gh_commit}
+%patch0 -p1 -b .up
%build
@@ -123,7 +127,7 @@ EOF
: Run upstream test suite
ret=0
-for cmdarg in "php %{phpunit}" "php72 %{_bindir}/phpunit8" php73 php74 php80; do
+for cmdarg in "php %{phpunit}" php74 php80 php81; do
if which $cmdarg; then
set $cmdarg
$1 ${2:-%{_bindir}/phpunit9} \
@@ -144,6 +148,9 @@ exit $ret
%changelog
+* Wed Nov 24 2021 Remi Collet <remi@remirepo.net> - 0.3.5-3
+- add upstream patch to fix test suite with PHP 8.1
+
* Wed Feb 10 2021 Remi Collet <remi@remirepo.net> - 0.3.5-1
- update to 0.3.5