summaryrefslogtreecommitdiffstats
path: root/php-sebastian-diff2.spec
diff options
context:
space:
mode:
Diffstat (limited to 'php-sebastian-diff2.spec')
-rw-r--r--php-sebastian-diff2.spec10
1 files changed, 8 insertions, 2 deletions
diff --git a/php-sebastian-diff2.spec b/php-sebastian-diff2.spec
index 82d3f3d..7f58802 100644
--- a/php-sebastian-diff2.spec
+++ b/php-sebastian-diff2.spec
@@ -25,7 +25,7 @@
Name: php-%{pk_vendor}-%{pk_project}%{major}
Version: 2.0.1
-Release: 1%{?dist}
+Release: 4%{?dist}
Summary: Diff implementation
Group: Development/Libraries
@@ -33,6 +33,8 @@ License: BSD
URL: https://github.com/%{gh_owner}/%{gh_project}
Source0: https://github.com/%{gh_owner}/%{gh_project}/archive/%{gh_commit}/%{name}-%{version}-%{gh_short}.tar.gz
+Patch0: https://github.com/sebastianbergmann/diff/commit/227f803c33aad0c004f77ca61815ee8e76d94788.patch
+
BuildArch: noarch
BuildRequires: php-fedora-autoloader-devel
%if %{with_tests}
@@ -65,6 +67,7 @@ Autoloader: %{php_home}/%{ns_vendor}/%{ns_project}%{major}/autoload.php
%prep
%setup -q -n %{gh_project}-%{gh_commit}
+%patch0 -p1
%build
@@ -84,7 +87,7 @@ touch vendor/autoload.php
: Run upstream test suite
ret=0
-for cmd in php php70 php71 php72; do
+for cmd in php php70 php71 php72 php73; do
if which $cmd; then
$cmd -d auto_prepend_file=%{buildroot}%{php_home}/%{ns_vendor}/%{ns_project}%{major}/autoload.php \
%{_bindir}/phpunit6 --verbose || ret=1
@@ -106,6 +109,9 @@ exit $ret
%changelog
+* Mon Oct 15 2018 Remi Collet <remi@remirepo.net> - 2.0.1-4
+- add adapted upstream patch for PHP 7.3
+
* Fri Aug 4 2017 Remi Collet <remi@remirepo.net> - 2.0.1-1
- update to 2.0.1
- renamed to php-sebastian-diff2