Skip to content

Commit

Permalink
v1.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
remicollet committed Mar 2, 2017
1 parent 50d5e26 commit 30c40da
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 33 deletions.
1 change: 1 addition & 0 deletions fedora-wip.txt
Expand Up @@ -6,6 +6,7 @@ php-tecnickcom-tc-lib-barcode 1.15.6
pear.horde.org Horde_Core 2.27.7 (stable) 2.27.8 (stable) 1621kB
php-aura-router .................................. 3.0.1 3.1.0 2017-03-02 (Just released)
php-phpunit-PHPUnit .............................. 5.7.14 5.7.15 2017-03-02 (Just released)
php-zendframework-zend-expressive-twigrenderer 1.3.0


=================
Expand Down
Expand Up @@ -13,22 +13,22 @@
],
"extra": {
"branch-alias": {
"dev-master": "1.2-dev",
"dev-develop": "1.3-dev"
"dev-master": "1.3-dev",
"dev-develop": "1.4-dev"
}
},
"require": {
"php": "^5.6 || ^7.0",
"container-interop/container-interop": "^1.1",
"twig/twig": "^1.26",
"zendframework/zend-expressive-helpers": "^1.1 || ^2.0 || ^3.0",
"zendframework/zend-expressive-router": "^1.3.2 || ^2.0",
"container-interop/container-interop": "^1.2",
"twig/twig": "^1.32 || ^2.1",
"zendframework/zend-expressive-helpers": "^1.4 || ^2.2 || ^3.0.1",
"zendframework/zend-expressive-router": "^1.3.2 || ^2.1",
"zendframework/zend-expressive-template": "^1.0.4"
},
"require-dev": {
"phpunit/phpunit": "^5.7",
"zendframework/zend-coding-standard": "~1.0.0",
"malukenho/docheader": "^0.1.5"
"malukenho/docheader": "^0.1.5",
"phpunit/phpunit": "^6.0.7 || ^5.7.14",
"zendframework/zend-coding-standard": "~1.0.0"
},
"autoload": {
"psr-4": {
Expand All @@ -42,18 +42,20 @@
},
"suggest": {
"mouf/pimple-interop": "^1.0 to use Pimple for dependency injection",
"aura/di": "3.0.*@beta to make use of Aura.Di dependency injection container",
"zendframework/zend-servicemanager": "^2.5 to use zend-servicemanager for dependency injection"
"aura/di": "^3.2 to make use of Aura.Di dependency injection container",
"zendframework/zend-servicemanager": "^3.3 to use zend-servicemanager for dependency injection"
},
"scripts": {
"check": [
"@license-check",
"@cs",
"@cs-check",
"@test"
],
"cs": "phpcs",
"cs-fix": "phpcbf",
"upload-coverage": "coveralls -v",
"cs-check": "phpcs --colors",
"cs-fix": "phpcbf --colors",
"license-check": "docheader check src/ test/",
"test": "phpunit"
"test": "phpunit --colors=always",
"test-coverage": "phpunit --coverage-clover clover.xml"
}
}
Expand Up @@ -7,7 +7,7 @@
# Please, preserve the changelog entries
#
%global bootstrap 0
%global gh_commit 786c2b971856c810106b37e9e9b8a90cc28ae454
%global gh_commit a1583749cc55b79b81939175281e56a5c9449213
%global gh_short %(c=%{gh_commit}; echo ${c:0:7})
%global gh_owner zendframework
%global gh_project zend-expressive-twigrenderer
Expand All @@ -21,7 +21,7 @@
%endif

Name: php-%{gh_owner}-%{gh_project}
Version: 1.2.1
Version: 1.3.0
Release: 1%{?dist}
Summary: Twig integration for %{library}

Expand All @@ -36,18 +36,19 @@ BuildArch: noarch
# Tests
%if %{with_tests}
BuildRequires: php(language) >= 5.6
BuildRequires: php-composer(container-interop/container-interop) >= 1.1
BuildRequires: php-composer(container-interop/container-interop) >= 1.2
# test suite fails with v2
BuildRequires: php-composer(twig/twig) < 2
BuildRequires: php-composer(twig/twig) >= 1.26
BuildRequires: php-composer(%{gh_owner}/zend-expressive-helpers) >= 1.1
BuildRequires: php-composer(twig/twig) >= 1.32
BuildRequires: php-composer(%{gh_owner}/zend-expressive-helpers) >= 1.4
BuildRequires: php-composer(%{gh_owner}/zend-expressive-router) >= 1.3.2
BuildRequires: php-composer(%{gh_owner}/zend-expressive-template) >= 1.0
BuildRequires: php-pcre
BuildRequires: php-spl
# From composer, "require-dev": {
# "phpunit/phpunit": "^5.7",
# "zendframework/zend-coding-standard": "~1.0.0",
# "malukenho/docheader": "^0.1.5"
# "malukenho/docheader": "^0.1.5",
# "phpunit/phpunit": "^6.0.7 || ^5.7.14",
# "zendframework/zend-coding-standard": "~1.0.0"
BuildRequires: php-composer(phpunit/phpunit) >= 5.7
# Autoloader
BuildRequires: php-composer(%{gh_owner}/zend-loader) >= 2.5
Expand All @@ -57,17 +58,17 @@ BuildRequires: php-zendframework-zend-loader >= 2.5.1-4

# From composer, "require": {
# "php": "^5.6 || ^7.0",
# "container-interop/container-interop": "^1.1",
# "twig/twig": "^1.26",
# "zendframework/zend-expressive-helpers": "^1.1 || ^2.0 || ^3.0",
# "zendframework/zend-expressive-router": "^1.3.2 || ^2.0",
# "container-interop/container-interop": "^1.2",
# "twig/twig": "^1.32 || ^2.1",
# "zendframework/zend-expressive-helpers": "^1.4 || ^2.2 || ^3.0.1",
# "zendframework/zend-expressive-router": "^1.3.2 || ^2.1",
# "zendframework/zend-expressive-template": "^1.0.4"
Requires: php(language) >= 5.6
Requires: php-composer(container-interop/container-interop) >= 1.1
Requires: php-composer(container-interop/container-interop) >= 1.2
Requires: php-composer(container-interop/container-interop) < 2
Requires: php-composer(twig/twig) >= 1.19
Requires: php-composer(twig/twig) < 2
Requires: php-composer(%{gh_owner}/zend-expressive-helpers) >= 1.1
Requires: php-composer(twig/twig) >= 1.32
Requires: php-composer(twig/twig) < 3
Requires: php-composer(%{gh_owner}/zend-expressive-helpers) >= 1.4
Requires: php-composer(%{gh_owner}/zend-expressive-helpers) < 4
Requires: php-composer(%{gh_owner}/zend-expressive-router) >= 1.3.2
Requires: php-composer(%{gh_owner}/zend-expressive-router) < 3
Expand Down Expand Up @@ -107,7 +108,11 @@ mv LICENSE.md LICENSE
: Create dependency autoloader
cat << 'EOF' | tee autoload.php
<?php
require_once '%{php_home}/Twig/autoload.php';
if (file_exists('%{php_home}/Twig/autoload.php')) {
require_once '%{php_home}/Twig/autoload.php';
} else {
require_once '%{php_home}/Twig2/autoload.php';
}
if (file_exists('%{php_home}/Aura/Di/autoload.php')) {
require_once '%{php_home}/Aura/Di/autoload.php';
}
Expand Down Expand Up @@ -152,7 +157,7 @@ if which php56; then
run=1
fi
if which php71; then
php71 %{_bindir}/phpunit --verbose || ret=1
php71 %{_bindir}/phpunit6 --verbose || ret=1
run=1
fi
if [ $run -eq 0 ]; then
Expand Down Expand Up @@ -180,6 +185,10 @@ rm -rf %{buildroot}


%changelog
* Thu Mar 2 2017 Remi Collet <remi@remirepo.net> - 1.3.0-1
- Update to 1.3.0
- allow twig 2

* Thu Jan 12 2017 Remi Collet <remi@fedoraproject.org> - 1.2.1-1
- update to 1.2.1 (no change)

Expand Down

0 comments on commit 30c40da

Please sign in to comment.