From f716064cec80f9e2700c4e96db1b982752b2c3f3 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Thu, 21 Apr 2016 06:07:29 +0200 Subject: php-zendframework-zend-mime: 2.6.0 --- composer.json | 40 ++++++++++++++++++++++++++++++++++++++++ php-zendframework-zend-mime.spec | 39 ++++++++++++++++++++++----------------- 2 files changed, 62 insertions(+), 17 deletions(-) create mode 100644 composer.json diff --git a/composer.json b/composer.json new file mode 100644 index 0000000..b04e9ff --- /dev/null +++ b/composer.json @@ -0,0 +1,40 @@ +{ + "name": "zendframework/zend-mime", + "description": " ", + "license": "BSD-3-Clause", + "keywords": [ + "zf2", + "mime" + ], + "homepage": "https://github.com/zendframework/zend-mime", + "autoload": { + "psr-4": { + "Zend\\Mime\\": "src/" + } + }, + "require": { + "php": "^5.5 || ^7.0", + "zendframework/zend-stdlib": "^2.7 || ^3.0" + }, + "require-dev": { + "zendframework/zend-mail": "^2.6", + "fabpot/php-cs-fixer": "1.7.*", + "phpunit/PHPUnit": "~4.0" + }, + "suggest": { + "zendframework/zend-mail": "Zend\\Mail component" + }, + "minimum-stability": "dev", + "prefer-stable": true, + "extra": { + "branch-alias": { + "dev-master": "2.6-dev", + "dev-develop": "2.7-dev" + } + }, + "autoload-dev": { + "psr-4": { + "ZendTest\\Mime\\": "test/" + } + } +} diff --git a/php-zendframework-zend-mime.spec b/php-zendframework-zend-mime.spec index c1799f7..c760d1c 100644 --- a/php-zendframework-zend-mime.spec +++ b/php-zendframework-zend-mime.spec @@ -7,7 +7,7 @@ # Please, preserve the changelog entries # %global bootstrap 0 -%global gh_commit 4148e39291c94ffea84c5b26a5ba69147953dcad +%global gh_commit 340769c3d962ac4d9d3cf9da7e75419368e56fcc %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) %global gh_owner zendframework %global gh_project zend-mime @@ -20,7 +20,7 @@ %endif Name: php-%{gh_owner}-%{gh_project} -Version: 2.5.1 +Version: 2.6.0 Release: 1%{?dist} Summary: Zend Framework %{library} component @@ -34,28 +34,28 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildArch: noarch # Tests %if %{with_tests} -BuildRequires: php(language) >= 5.3.23 +BuildRequires: php(language) >= 5.5 BuildRequires: php-iconv BuildRequires: php-pcre BuildRequires: php-spl -BuildRequires: php-composer(%{gh_owner}/zend-stdlib) >= 2.5 +BuildRequires: php-composer(%{gh_owner}/zend-stdlib) >= 2.7 # From composer, "require-dev": { -# "zendframework/zend-mail": "~2.5", +# "zendframework/zend-mail": "^2.6"", # "fabpot/php-cs-fixer": "1.7.*", # "phpunit/PHPUnit": "~4.0" -BuildRequires: php-composer(%{gh_owner}/zend-mail) >= 2.5 +BuildRequires: php-composer(%{gh_owner}/zend-mail) >= 2.6 BuildRequires: php-composer(phpunit/phpunit) >= 4.0 # Autoloader BuildRequires: php-composer(%{gh_owner}/zend-loader) >= 2.5 %endif # From composer, "require": { -# "php": ">=5.3.23", -# "zendframework/zend-stdlib": "~2.5" -Requires: php(language) >= 5.3.23 +# "php": "^5.5 || ^7.0", +# "zendframework/zend-stdlib": "^2.7 || ^3.0" +Requires: php(language) >= 5.5 %if ! %{bootstrap} -Requires: php-composer(%{gh_owner}/zend-stdlib) >= 2.5 -Requires: php-composer(%{gh_owner}/zend-stdlib) < 3 +Requires: php-composer(%{gh_owner}/zend-stdlib) >= 2.7 +Requires: php-composer(%{gh_owner}/zend-stdlib) < 4 # From composer, "suggest": { # "zendframework/zend-mail": "Zend\\Mail component" %if 0%{?fedora} >= 21 @@ -96,14 +96,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 @@ -132,5 +132,10 @@ rm -rf %{buildroot} %changelog +* Tue Apr 21 2016 Remi Collet - 2.6.0-1 +- update to 2.6.0 +- raise dependency on PHP >= 5.5 +- raise dependency on zend-stdlib >= 2.7 + * Tue Aug 4 2015 Remi Collet - 2.5.1-1 -- initial package \ No newline at end of file +- initial package -- cgit