From 9671a15e0f067281b9db6808985eea6f8f425023 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Fri, 23 Sep 2016 06:43:25 +0200 Subject: php-twig-extensions: 1.4.0 --- composer.json | 32 ++++++++++++++++++++++++++++++++ php-twig-extensions.spec | 22 ++++++++++++++++++++-- 2 files changed, 52 insertions(+), 2 deletions(-) create mode 100644 composer.json diff --git a/composer.json b/composer.json new file mode 100644 index 0000000..a59ff78 --- /dev/null +++ b/composer.json @@ -0,0 +1,32 @@ +{ + "name": "twig/extensions", + "description": "Common additional features for Twig that do not directly belong in core", + "keywords": ["i18n","text"], + "homepage": "http://twig.sensiolabs.org/doc/extensions/index.html", + "type": "library", + "license": "MIT", + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + } + ], + "require": { + "twig/twig": "~1.20|~2.0" + }, + "require-dev": { + "symfony/translation": "~2.3" + }, + "suggest": { + "symfony/translation": "Allow the time_diff output to be translated" + }, + "autoload": { + "psr-0": { "Twig_Extensions_": "lib/" } + }, + "minimum-stability": "dev", + "extra": { + "branch-alias": { + "dev-master": "1.4-dev" + } + } +} diff --git a/php-twig-extensions.spec b/php-twig-extensions.spec index 231ee1e..602d3e1 100644 --- a/php-twig-extensions.spec +++ b/php-twig-extensions.spec @@ -12,8 +12,8 @@ %global github_owner twigphp %global github_name Twig-extensions -%global github_version 1.3.0 -%global github_commit 449e3c8a9ffad7c2479c7864557275a32b037499 +%global github_version 1.4.0 +%global github_commit 531eaf4b9ab778b1d7cdd10d40fc6aa74729dfee %global composer_vendor twig %global composer_project extensions @@ -107,8 +107,23 @@ cp -rp lib/* %{buildroot}%{phpdir}/ %check %if %{with_tests} +# remirepo:11 +run=0 +ret=0 +if which php56; then + php56 %{_bindir}/phpunit --bootstrap %{buildroot}%{phpdir}/Twig/Extensions/autoload.php || ret=1 + run=1 +fi +if which php71; then + php71 %{_bindir}/phpunit --bootstrap %{buildroot}%{phpdir}/Twig/Extensions/autoload.php || ret=1 + run=1 +fi +if [ $run -eq 0 ]; then %{_bindir}/phpunit --verbose \ --bootstrap %{buildroot}%{phpdir}/Twig/Extensions/autoload.php +# remirepo:2 +fi +exit $ret %else : Tests skipped %endif @@ -129,6 +144,9 @@ rm -rf %{buildroot} %changelog +* Fri Sep 23 2016 Remi Collet - 1.4.0-1 +- update to 1.4.0 + * Mon Oct 12 2015 Shawn Iwinski - 1.3.0-1 - Updated to 1.3.0 (RHBZ #1256169) - "php-phpunit-PHPUnit" build dependency changed to "php-composer(phpunit/phpunit)" -- cgit