From 4de314b045510c2292adda4ab263c9c8fd7f6358 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Tue, 13 Feb 2018 10:27:09 +0100 Subject: fix FTBFS from Koschei, path from https://github.com/zendframework/zend-i18n/pull/91 always use phpunit6 --- php-zendframework-zend-i18n.spec | 33 ++++++++++++++++----------------- 1 file changed, 16 insertions(+), 17 deletions(-) diff --git a/php-zendframework-zend-i18n.spec b/php-zendframework-zend-i18n.spec index 3a931d3..7b9aacb 100644 --- a/php-zendframework-zend-i18n.spec +++ b/php-zendframework-zend-i18n.spec @@ -1,6 +1,6 @@ # remirepo/Fedora spec file for php-zendframework-zend-i18n # -# Copyright (c) 2015-2017 Remi Collet +# Copyright (c) 2015-2018 Remi Collet # License: CC-BY-SA # http://creativecommons.org/licenses/by-sa/4.0/ # @@ -21,15 +21,17 @@ Name: php-%{gh_owner}-%{gh_project} Version: 2.7.4 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Zend Framework %{library} component -Group: Development/Libraries License: BSD URL: https://zendframework.github.io/%{gh_project}/ Source0: %{gh_commit}/%{name}-%{version}-%{gh_short}.tgz Source1: makesrc.sh +# https://github.com/zendframework/zend-i18n/pull/91 +Patch0: https://patch-diff.githubusercontent.com/raw/zendframework/zend-i18n/pull/91.patch + BuildArch: noarch # Tests %if %{with_tests} @@ -57,16 +59,11 @@ BuildRequires: php-composer(%{gh_owner}/zend-filter) >= 2.5 BuildRequires: php-composer(%{gh_owner}/zend-servicemanager) >= 2.7.5 BuildRequires: php-composer(%{gh_owner}/zend-validator) >= 2.6 BuildRequires: php-composer(%{gh_owner}/zend-view) >= 2.6.3 -%if 0%{?fedora} >= 26 -%global phpunit %{_bindir}/phpunit6 -%else -%global phpunit %{_bindir}/phpunit -%endif -BuildRequires: %{phpunit} +BuildRequires: phpunit6 # Autoloader BuildRequires: php-composer(%{gh_owner}/zend-loader) >= 2.5 -BuildRequires: php-fedora-autoloader-devel %endif +BuildRequires: php-fedora-autoloader-devel # From composer, "require": { # "php": "^7.0 || ^5.6", @@ -126,6 +123,7 @@ Documentation: https://zendframework.github.io/%{gh_project}/ %prep %setup -q -n %{gh_project}-%{gh_commit} +%patch0 -p1 mv LICENSE.md LICENSE @@ -157,9 +155,6 @@ cp -pr src %{buildroot}%{php_home}/Zend/%{library} %check %if %{with_tests} -# See https://github.com/zendframework/zend-i18n/issues/14 -sed -e '/de_AT/d' -i test/View/Helper/CurrencyFormatTest.php - mkdir vendor cat << 'EOF' | tee vendor/autoload.php - 2.7.4-4 +- fix FTBFS from Koschei, path from + https://github.com/zendframework/zend-i18n/pull/91 +- always use phpunit6 + * Fri Nov 24 2017 Remi Collet - 2.7.4-3 - switch from zend-loader to fedora/autoloader -- cgit