From acdbf8b7b6ea156bb553ddc1e767bda46f858d3a Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Mon, 2 Aug 2021 09:01:55 +0200 Subject: add build dependency on symfony/polyfill --- php-sebastian-diff3.spec | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/php-sebastian-diff3.spec b/php-sebastian-diff3.spec index 53793e7..716a880 100644 --- a/php-sebastian-diff3.spec +++ b/php-sebastian-diff3.spec @@ -1,6 +1,6 @@ # remirepo/fedora spec file for php-sebastian-diff3 # -# Copyright (c) 2013-2019 Remi Collet +# Copyright (c) 2013-2021 Remi Collet # License: CC-BY-SA # http://creativecommons.org/licenses/by-sa/4.0/ # @@ -28,7 +28,7 @@ Name: php-%{pk_vendor}-%{pk_project}%{major} Version: 3.0.3 -Release: 1%{?dist} +Release: 4%{?dist} Summary: Diff implementation License: BSD @@ -46,6 +46,7 @@ BuildRequires: php-spl # "symfony/process": "^2 || ^3.3 || ^4" BuildRequires: phpunit8 BuildRequires: php-symfony4-process +BuildRequires: php-symfony-polyfill %endif # from composer.json @@ -86,6 +87,9 @@ mkdir vendor %{_bindir}/phpab --output vendor/autoload.php tests cat << 'EOF' | tee -a vendor/autoload.php \Fedora\Autoloader\Autoload::addPsr4('Symfony\\Component\\Process', '%{php_home}/Symfony4/Component/Process'); +\Fedora\Autoloader\Dependencies::required([ + '%{php_home}/Symfony/Polyfill/autoload.php' +]); EOF # remirepo:4 @@ -96,7 +100,7 @@ rm -r tests/Output/Integration : Run upstream test suite ret=0 -for cmd in php php72 php73 php80; do +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}/phpunit8 --verbose || ret=1 @@ -119,6 +123,9 @@ exit $ret %changelog +* Mon Aug 2 2021 Remi Collet - 3.0.3-4 +- add build dependency on symfony/polyfill + * Mon Nov 30 2020 Remi Collet - 3.0.3-1 - update to 3.0.3 (no change) - switch to phpunit8 -- cgit