From 55d5049d933ae890b888c9344037e825469f39ce Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Tue, 31 Oct 2017 14:31:57 +0100 Subject: fix FTBFS from Koschei, add upstream patch for PHP 7.2 --- php-di.spec | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'php-di.spec') diff --git a/php-di.spec b/php-di.spec index 5186a02..03d4af7 100644 --- a/php-di.spec +++ b/php-di.spec @@ -52,7 +52,7 @@ Name: %{composer_project} Version: %{github_version} -Release: 1%{?github_release}%{?dist} +Release: 3%{?github_release}%{?dist} Summary: The dependency injection container for humans Group: Development/Libraries @@ -64,6 +64,8 @@ URL: http://php-di.org/ Source0: %{name}-%{github_version}-%{github_commit}.tar.gz Source1: %{name}-get-source.sh +Patch0: https://github.com/PHP-DI/PHP-DI/commit/ecab701e7de49f160d83be6a42d6c5aa9a8df76b.patch + BuildArch: noarch # Tests %if %{with_tests} @@ -138,6 +140,7 @@ Autoloader: %{phpdir}/DI/autoload.php %prep %setup -qn %{github_name}-%{github_commit} +%patch0 -p1 : Remove executable bit : https://github.com/PHP-DI/PHP-DI/pull/392 @@ -207,7 +210,7 @@ sed -e '/@test/d' \ : Upstream tests RETURN_CODE=0 -for PHP_EXEC in php php70 php71; do +for PHP_EXEC in php php70 php71 php72; do if [ "php" == "$PHP_EXEC" ] || which $PHP_EXEC; then for PHPUNIT in phpunit; do PHPUNIT=$(which $PHPUNIT) || : @@ -233,6 +236,9 @@ exit $RETURN_CODE %changelog +* Tue Oct 31 2017 Remi Collet - 5.4.3-2 +- fix FTBFS from Koschei, add upstream patch for PHP 7.2 + * Fri Apr 14 2017 Shawn Iwinski - 5.4.3-1 - Update to 5.4.3 (RHBZ #1442382) -- cgit