From f4872f4a5fd0396ea1dd06fd9c5b8dede2e87d00 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 2 May 2018 16:06:06 +0200 Subject: update to 2.6.0 raise dependency on PHP 5.6 run upstream test suite sources from git snapshot --- php-zendframework-zend-loader.spec | 55 +++++++++++++++++++++++++++++++------- 1 file changed, 45 insertions(+), 10 deletions(-) (limited to 'php-zendframework-zend-loader.spec') diff --git a/php-zendframework-zend-loader.spec b/php-zendframework-zend-loader.spec index ed3842f..121c9cf 100644 --- a/php-zendframework-zend-loader.spec +++ b/php-zendframework-zend-loader.spec @@ -1,12 +1,12 @@ # remirepo/Fedora spec file for php-zendframework-zend-loader # -# Copyright (c) 2015-2017 Remi Collet +# Copyright (c) 2015-2018 Remi Collet # License: CC-BY-SA # http://creativecommons.org/licenses/by-sa/4.0/ # # Please, preserve the changelog entries # -%global gh_commit c5fd2f071bde071f4363def7dea8dec7393e135c +%global gh_commit 78f11749ea340f6ca316bca5958eef80b38f9b6c %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) %global gh_owner zendframework %global gh_project zend-loader @@ -15,28 +15,41 @@ %global with_tests 0%{!?_without_tests:1} Name: php-%{gh_owner}-%{gh_project} -Version: 2.5.1 -Release: 7%{?dist} +Version: 2.6.0 +Release: 1%{?dist} Summary: Zend Framework %{library} component Group: Development/Libraries License: BSD URL: https://zendframework.github.io/%{gh_project}/ -Source0: https://github.com/%{gh_owner}/%{gh_project}/archive/%{gh_commit}/%{name}-%{version}-%{gh_short}.tar.gz +Source0: %{gh_commit}/%{name}-%{version}-%{gh_short}.tgz Source1: %{name}-autoload.php +Source2: makesrc.sh BuildArch: noarch # Tests %if %{with_tests} -BuildRequires: php(language) >= 5.3.23 -BuildRequires: php-cli +BuildRequires: php(language) >= 5.6 +# From composer, "require-dev": { +# "phpbench/phpbench": "^0.13", +# "phpunit/phpunit": "^5.7.27 || ^6.5.8 || ^7.1.4", +# "zendframework/zend-coding-standard": "~1.0.0" +# remirepo:1 +%if 0%{?fedora} >= 27 || 0%{?rhel} >= 8 +%global phpunit %{_bindir}/phpunit7 +BuildRequires: phpunit7 >= 7.1.4 +# remirepo:4 +%else +%global phpunit %{_bindir}/phpunit6 +BuildRequires: phpunit >= 5.7.27 +%endif %endif # Autoloader BuildRequires: php-fedora-autoloader-devel # From composer, "require": { -# "php": ">=5.3.23" -Requires: php(language) >= 5.3.23 +# "php": "^5.6 || ^7.0" +Requires: php(language) >= 5.6 # Autoloader Requires: php-composer(fedora/autoloader) # From phpcompatinfo report for version 2.5.1 @@ -77,7 +90,6 @@ cp -pr src %{buildroot}%{php_home}/Zend/%{library} %check -%if %{with_tests} : Deprecated autoloader %{_bindir}/php -r ' require "%{buildroot}%{php_home}/Zend/autoload.php"; @@ -88,6 +100,23 @@ cp -pr src %{buildroot}%{php_home}/Zend/%{library} require "%{buildroot}%{php_home}/Zend/%{library}/autoload.php"; exit (class_exists("Zend\\Loader\\PluginClassLoader" ? 0 : 1)); ' + +%if %{with_tests} +mkdir vendor +cat << 'EOF' | tee vendor/autoload.php + - 2.6.0-1 +- update to 2.6.0 +- raise dependency on PHP 5.6 +- run upstream test suite +- sources from git snapshot + * Wed Dec 6 2017 Remi Collet - 2.5.1-7 - use fedora/autoloader -- cgit