diff --git a/.gitignore b/.gitignore index f1d8fc1..a33d534 100644 --- a/.gitignore +++ b/.gitignore @@ -13,3 +13,4 @@ clog /PHP_CodeSniffer-2.6.2.tgz /PHP_CodeSniffer-2.7.0.tgz /PHP_CodeSniffer-2.7.1.tgz +/PHP_CodeSniffer-2.8.0.tgz diff --git a/php-pear-PHP-CodeSniffer.spec b/php-pear-PHP-CodeSniffer.spec index 397483e..5010d44 100644 --- a/php-pear-PHP-CodeSniffer.spec +++ b/php-pear-PHP-CodeSniffer.spec @@ -1,6 +1,6 @@ # spec file for php-pear-PHP-CodeSniffer # -# Copyright (c) 2013-2016 Remi Collet +# Copyright (c) 2013-2017 Remi Collet # Copyright (c) 2009-2013 Christof Damian # Copyright (c) 2006-2009 Konstantin Ryabitsev # @@ -13,7 +13,7 @@ %global pear_name PHP_CodeSniffer Name: php-pear-PHP-CodeSniffer -Version: 2.7.1 +Version: 2.8.0 Release: 1%{?dist} Summary: PHP coding standards enforcement tool @@ -33,7 +33,7 @@ Requires(post): %{__pear} Requires(postun): %{__pear} # From package.xml Requires: php-pear(PEAR) -# From phpcompatinfo report for version 2.3.4 +# From phpcompatinfo report for version 2.8.0 Requires: php-ctype Requires: php-date Requires: php-dom @@ -86,8 +86,14 @@ install -pm 644 %{pear_name}.xml %{buildroot}%{pear_xmldir} %check cd %{pear_name}-%{version}/tests -# Version 2.7.0: Tests: 236, Assertions: 90, Skipped: 3. -%{_bindir}/phpunit AllTests.php +# Version 2.8.0: Tests: 238, Assertions: 92, Skipped: 3. +ret=0 +for cmd in php php56 php70 php71; do + if which $cmd; then + $cmd %{_bindir}/phpunit AllTests.php || ret=1 + fi +done +exit $ret %post @@ -113,6 +119,9 @@ fi %changelog +* Thu Feb 02 2017 Remi Collet - 2.8.0-1 +- Update to 2.8.0 + * Wed Nov 30 2016 Remi Collet - 2.7.1-1 - Update to 2.7.1 diff --git a/sources b/sources index 4113c7d..b91bf33 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -fd6bded59396b8842f969620bfc1e9aa PHP_CodeSniffer-2.7.1.tgz +SHA512 (PHP_CodeSniffer-2.8.0.tgz) = afbfd1121f67989d442ae2529081ea41a735cecee1aeb335f2a235a94bddeb92d6939bc5fb13b7a07466428e585e2b816d6ee06731595693ca594f28fec65a12