summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2016-05-02 07:44:09 +0200
committerRemi Collet <fedora@famillecollet.com>2016-05-02 07:44:09 +0200
commitfe5d7df066a9f5e74841926e3b5fc9d4519c586b (patch)
tree89d2eb936ab200c53b53d22c5a13e5e05f29bfe7
parent8aabd9478aa0cfb2fde8e4a45f5c32553f732f04 (diff)
php-zendframework-zend-form: 2.8.2
-rw-r--r--composer.json19
-rw-r--r--php-zendframework-zend-form.spec25
2 files changed, 36 insertions, 8 deletions
diff --git a/composer.json b/composer.json
index 4629a73..04cbf8b 100644
--- a/composer.json
+++ b/composer.json
@@ -10,7 +10,10 @@
"autoload": {
"psr-4": {
"Zend\\Form\\": "src/"
- }
+ },
+ "files": [
+ "autoload/formElementManagerPolyfill.php"
+ ]
},
"require": {
"php": "^5.5 || ^7.0",
@@ -23,6 +26,7 @@
"zendframework/zend-cache": "^2.6.1",
"zendframework/zend-captcha": "^2.5.4",
"zendframework/zend-code": "^2.6",
+ "zendframework/zend-escaper": "^2.5",
"zendframework/zend-eventmanager": "^2.6.2 || ^3.0",
"zendframework/zend-filter": "^2.6",
"zendframework/zend-i18n": "^2.6",
@@ -33,7 +37,7 @@
"zendframework/zend-view": "^2.6.2",
"zendframework/zendservice-recaptcha": "*",
"fabpot/php-cs-fixer": "1.7.*",
- "phpunit/PHPUnit": "~4.0"
+ "phpunit/phpunit": "^4.8"
},
"suggest": {
"zendframework/zend-captcha": "Zend\\Captcha component",
@@ -62,5 +66,16 @@
"psr-4": {
"ZendTest\\Form\\": "test/"
}
+ },
+ "scripts": {
+ "check": [
+ "@cs-check",
+ "@test"
+ ],
+ "upload-coverage": "coveralls -v",
+ "cs-check": "php-cs-fixer --version && php-cs-fixer fix -v --diff --dry-run",
+ "cs-fix": "php-cs-fixer fix -v",
+ "test": "phpunit",
+ "test-coverage": "phpunit --coverage-clover clover.xml"
}
}
diff --git a/php-zendframework-zend-form.spec b/php-zendframework-zend-form.spec
index a7f47e0..458c0b1 100644
--- a/php-zendframework-zend-form.spec
+++ b/php-zendframework-zend-form.spec
@@ -7,7 +7,7 @@
# Please, preserve the changelog entries
#
%global bootstrap 0
-%global gh_commit 59c483b06dd1f281a1f2f961e81107bd282a07f7
+%global gh_commit 0e8cce481470443b716a155e5f6bf40242d30635
%global gh_short %(c=%{gh_commit}; echo ${c:0:7})
%global gh_owner zendframework
%global gh_project zend-form
@@ -20,7 +20,7 @@
%endif
Name: php-%{gh_owner}-%{gh_project}
-Version: 2.8.1
+Version: 2.8.2
Release: 1%{?dist}
Summary: Zend Framework %{library} component
@@ -47,6 +47,7 @@ BuildRequires: php-composer(%{gh_owner}/zend-stdlib) >= 2.7
# "zendframework/zend-cache": "^2.6.1",
# "zendframework/zend-captcha": "^2.5.4",
# "zendframework/zend-code": "^2.6",
+# "zendframework/zend-escaper": "^2.5",
# "zendframework/zend-eventmanager": "^2.6.2 || ^3.0",
# "zendframework/zend-filter": "^2.6",
# "zendframework/zend-i18n": "^2.6",
@@ -57,11 +58,12 @@ BuildRequires: php-composer(%{gh_owner}/zend-stdlib) >= 2.7
# "zendframework/zend-view": "^2.6.2",
# "zendframework/zendservice-recaptcha": "*",
# "fabpot/php-cs-fixer": "1.7.*",
-# "phpunit/PHPUnit": "~4.0"
+# "phpunit/PHPUnit": "~4.8"
BuildRequires: php-composer(doctrine/annotations) >= 1.0
BuildRequires: php-composer(%{gh_owner}/zend-cache) >= 2.6.1
BuildRequires: php-composer(%{gh_owner}/zend-captcha) >= 2.5.4
BuildRequires: php-composer(%{gh_owner}/zend-code) >= 2.6
+BuildRequires: php-composer(%{gh_owner}/zend-escaper) >= 2.5
BuildRequires: php-composer(%{gh_owner}/zend-eventmanager) >= 2.6.2
BuildRequires: php-composer(%{gh_owner}/zend-filter) >= 2.6
BuildRequires: php-composer(%{gh_owner}/zend-i18n) >= 2.6
@@ -70,12 +72,13 @@ BuildRequires: php-composer(%{gh_owner}/zend-session) >= 2.6.2
BuildRequires: php-composer(%{gh_owner}/zend-text) >= 2.6
BuildRequires: php-composer(%{gh_owner}/zend-validator) >= 2.6
BuildRequires: php-composer(%{gh_owner}/zend-view) >= 2.6.2
-BuildRequires: php-composer(phpunit/phpunit) >= 4.0
+BuildRequires: php-composer(phpunit/phpunit) >= 4.8
# Missing
-BuildRequires: php-composer(%{gh_owner}/zend-escaper) >= 2.5
BuildRequires: php-composer(ircmaxell/random-lib)
# Autoloader
-BuildRequires: php-composer(%{gh_owner}/zend-loader) >= 2.5
+#BuildRequires: php-composer(%{gh_owner}/zend-loader) >= 2.5
+# For dependencies autoloader
+BuildRequires: php-zendframework-zend-loader >= 2.5.1-3
%endif
# From composer, "require": {
@@ -145,12 +148,17 @@ rm -rf %{buildroot}
mkdir -p %{buildroot}%{php_home}/Zend/
cp -pr src %{buildroot}%{php_home}/Zend/%{library}
+cp -p autoload/formElementManagerPolyfill.php \
+ %{buildroot}%{php_home}/Zend/%{library}-autoload.php
+
%check
%if %{with_tests}
mkdir vendor
cat << 'EOF' | tee vendor/autoload.php
<?php
+define('RPM_BUILDROOT', '%{buildroot}%{php_home}/Zend');
+
require_once '%{php_home}/Zend/Loader/AutoloaderFactory.php';
Zend\Loader\AutoloaderFactory::factory(array(
'Zend\Loader\StandardAutoloader' => array(
@@ -183,9 +191,14 @@ rm -rf %{buildroot}
%doc CONTRIBUTING.md README.md
%doc composer.json
%{php_home}/Zend/%{library}
+%{php_home}/Zend/%{library}-autoload.php
%changelog
+* Mon May 2 2016 Remi Collet <remi@fedoraproject.org> - 2.8.2-1
+- update to 2.8.2
+- raise dependency on zend-loader >= 2.5.1-3
+
* Sun May 1 2016 Remi Collet <remi@fedoraproject.org> - 2.8.1-1
- update to 2.8.1