From 6f8b51d7f1f0025f95dc77f810bbe304c73f9fbf Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Tue, 6 Jun 2017 09:03:45 +0200 Subject: v1.34.2 --- php-twig.spec | 85 ++++++++++++++++++++++++++--------------------------------- 1 file changed, 38 insertions(+), 47 deletions(-) (limited to 'php-twig.spec') diff --git a/php-twig.spec b/php-twig.spec index 31b37da..030ed41 100644 --- a/php-twig.spec +++ b/php-twig.spec @@ -30,8 +30,8 @@ %global github_owner twigphp %global github_name Twig -%global github_version 1.33.2 -%global github_commit dd6ca96227917e1e85b41c7c3cc6507b411e0927 +%global github_version 1.34.2 +%global github_commit 55e4beb721a044db9e31ae0470024fc205b6a008 %global github_short %(c=%{github_commit}; echo ${c:0:7}) %if "%{php_version}" < "7" @@ -54,8 +54,8 @@ BuildArch: noarch %global ini_name 40-%{ext_name}.ini %endif -# "php": ">=5.2.7" -%global php_min_ver 5.2.7 +# "php": ">=5.3.3" +%global php_min_ver 5.3.3 %global phpdir %{_datadir}/php @@ -73,10 +73,11 @@ BuildRequires: %{?scl_prefix}php-devel >= %{php_min_ver} %if %{with_tests} # For tests BuildRequires: php-composer(phpunit/phpunit) -BuildRequires: php-composer(symfony/phpunit-bridge) +BuildRequires: php-composer(symfony/debug) < 3 BuildRequires: php-composer(symfony/debug) >= 2.7 +BuildRequires: php-composer(psr/container) < 2 BuildRequires: php-composer(psr/container) >= 1.0 -## phpcompatinfo (computed from version 1.23.3) +## phpcompatinfo (computed from version 1.34.2) BuildRequires: %{?scl_prefix}php-ctype BuildRequires: %{?scl_prefix}php-date BuildRequires: %{?scl_prefix}php-dom @@ -88,11 +89,13 @@ BuildRequires: %{?scl_prefix}php-pcre BuildRequires: %{?scl_prefix}php-reflection BuildRequires: %{?scl_prefix}php-spl %endif +# Autoloader +BuildRequires: php-fedora-autoloader-devel # Lib ## composer.json Requires: %{?scl_prefix}php(language) >= %{php_min_ver} -## phpcompatinfo (computed from version 1.22.2) +## phpcompatinfo (computed from version 1.34.2) Requires: %{?scl_prefix}php-ctype Requires: %{?scl_prefix}php-date Requires: %{?scl_prefix}php-dom @@ -109,6 +112,8 @@ Requires: %{?scl_prefix}php(zend-abi) = %{php_zend_api} Requires: %{?scl_prefix}php(api) = %{php_core_api} %{?_sclreq:Requires: %{?scl_prefix}runtime%{?_sclreq}%{?_isa}} %endif +# Autoloader +Requires: php-composer(fedora/autoloader) # Lib ## Composer @@ -210,21 +215,11 @@ extension=%{ext_name}.so INI %endif -: Create lib autoloader -cat <<'AUTOLOAD' | tee lib/Twig/autoload.php - phpunit.xml -fi + +: Disable listener from symfony/phpunit-bridge ~3.2 +sed -e '/listener/d' phpunit.xml.dist > phpunit.xml : Test suite without extension -# remirepo:11 -run=0 ret=0 -if which php56; then - php56 %{_bindir}/phpunit || ret=1 - run=1 -fi -if which php71; then - php71 %{_bindir}/phpunit || ret=1 - run=1 -fi -if [ $run -eq 0 ]; then -%{_bindir}/phpunit --verbose || ret=1 -# remirepo:1 -fi - +for cmd in php php56 php70 php71 php72; do + if which $cmd; then + $cmd %{_bindir}/phpunit --verbose || ret=1 + fi +done %if %{with_ext} : Test suite with extension %{_bindir}/php --define extension=ext/NTS/modules/%{ext_name}.so \ @@ -364,6 +349,12 @@ exit $ret %changelog +* Tue Jun 6 2017 Remi Collet - 1.34.2-1 +- Update to 1.34.2 +- raise dependency on PHP 5.3.3 +- add namespaced compat library +- switch to fedora/autoloader + * Fri Apr 21 2017 Remi Collet - 1.33.2-1 - Update to 1.33.2 -- cgit