From fdfad5b8d29ec0345956d6682adb8bd85c69948a Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Thu, 28 Jan 2016 09:29:15 +0100 Subject: php-zendframework-zend-log: 2.6.0 --- makesrc.sh | 1 + php-zendframework-zend-log.spec | 26 +++++++++++++++++--------- 2 files changed, 18 insertions(+), 9 deletions(-) diff --git a/makesrc.sh b/makesrc.sh index 24fbf81..e9a1ec5 100755 --- a/makesrc.sh +++ b/makesrc.sh @@ -16,6 +16,7 @@ git clone https://github.com/$OWNER/$PROJECT.git $PROJECT-$COMMIT echo "Getting commit..." pushd $PROJECT-$COMMIT git checkout $COMMIT +cp composer.json ../composer-$VERSION.json popd echo "Archiving..." diff --git a/php-zendframework-zend-log.spec b/php-zendframework-zend-log.spec index 93e7f7c..ed6f9bf 100644 --- a/php-zendframework-zend-log.spec +++ b/php-zendframework-zend-log.spec @@ -7,7 +7,7 @@ # Please, preserve the changelog entries # %global bootstrap 0 -%global gh_commit 6b0c8437c67153c5e81cdf1aaa147e5a126ed013 +%global gh_commit 75bcfb813571705032571e2b471519b924b86fde %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) %global gh_owner zendframework %global gh_project zend-log @@ -20,7 +20,7 @@ %endif Name: php-%{gh_owner}-%{gh_project} -Version: 2.5.2 +Version: 2.6.0 Release: 1%{?dist} Summary: Zend Framework %{library} component @@ -43,6 +43,7 @@ BuildRequires: php-pcre BuildRequires: php-spl BuildRequires: php-composer(%{gh_owner}/zend-servicemanager) >= 2.5 BuildRequires: php-composer(%{gh_owner}/zend-stdlib) >= 2.5 +BuildRequires: php-composer(psr/log) >= 1.0 # From composer, "require-dev": { # "zendframework/zend-console": "~2.5", # "zendframework/zend-db": "~2.5", @@ -70,13 +71,16 @@ BuildRequires: php-composer(%{gh_owner}/zend-loader) >= 2.5 # From composer, "require": { # "php": ">=5.5", # "zendframework/zend-servicemanager": "~2.5", -# "zendframework/zend-stdlib": "~2.5" +# "zendframework/zend-stdlib": "~2.5", +# "psr/log": "~1.0" Requires: php(language) >= 5.5 %if ! %{bootstrap} Requires: php-composer(%{gh_owner}/zend-servicemanager) >= 2.5 Requires: php-composer(%{gh_owner}/zend-servicemanager) < 3 Requires: php-composer(%{gh_owner}/zend-stdlib) >= 2.5 Requires: php-composer(%{gh_owner}/zend-stdlib) < 3 +Requires: php-composer(psr/log) >= 1.0 +Requires: php-composer(psr/log) < 2 # From composer, "suggest": { # "ext-mongo": "mongodb extetension to use MongoDB writer", # "zendframework/zend-console": "Zend\\Console component to use the RequestID log processor", @@ -93,7 +97,7 @@ Suggests: php-composer(%{gh_owner}/zend-mail) Suggests: php-composer(%{gh_owner}/zend-validator) %endif %endif -# From phpcompatinfo report for version 2.5.2 +# From phpcompatinfo report for version 2.6.0 Requires: php-ctype Requires: php-date Requires: php-dom @@ -131,14 +135,14 @@ cp -pr src %{buildroot}%{php_home}/Zend/%{library} %check %if %{with_tests} mkdir vendor -cat << EOF | tee vendor/autoload.php +cat << 'EOF' | tee vendor/autoload.php array( +Zend\Loader\AutoloaderFactory::factory(array( + 'Zend\Loader\StandardAutoloader' => array( 'namespaces' => array( - 'ZendTest\\\\%{library}' => dirname(__DIR__).'/test/', - 'Zend\\\\%{library}' => '%{buildroot}%{php_home}/Zend/%{library}' + 'ZendTest\\%{library}' => dirname(__DIR__).'/test/', + 'Zend\\%{library}' => '%{buildroot}%{php_home}/Zend/%{library}' )))); require_once '%{php_home}/Zend/autoload.php'; EOF @@ -167,5 +171,9 @@ rm -rf %{buildroot} %changelog +* Thu Jan 28 2016 Remi Collet - 2.6.0-1 +- update to 2.6.0 +- add dependency on psr/log + * Tue Aug 4 2015 Remi Collet - 2.5.2-1 - initial package \ No newline at end of file -- cgit