diff --git a/.gitignore b/.gitignore index aab10e4..39a07fe 100644 --- a/.gitignore +++ b/.gitignore @@ -30,3 +30,9 @@ clog /PHP_CodeSniffer-3.4.0.tgz /PHP_CodeSniffer-3.4.1.tgz /PHP_CodeSniffer-3.4.2.tgz +/PHP_CodeSniffer-3.5.0.tgz +/PHP_CodeSniffer-3.5.1.tgz +/PHP_CodeSniffer-3.5.2.tgz +/PHP_CodeSniffer-3.5.3.tgz +/PHP_CodeSniffer-3.5.4.tgz +/PHP_CodeSniffer-3.5.5.tgz diff --git a/php-pear-PHP-CodeSniffer.spec b/php-pear-PHP-CodeSniffer.spec index 529a63c..d4a74be 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-2019 Remi Collet +# Copyright (c) 2013-2020 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: 3.4.2 +Version: 3.5.5 Release: 1%{?dist} Summary: PHP coding standards enforcement tool @@ -86,12 +86,20 @@ install -pm 644 %{pear_name}.xml %{buildroot}%{pear_xmldir} %check cd %{pear_name}-%{version} +# fix broken pear detection (may use export PHP_CODESNIFFER_PEAR=1 if PR accepted) +# https://github.com/squizlabs/PHP_CodeSniffer/pull/2847 +sed -e '/PHP_CODESNIFFER_PEAR/s/false/true/' -i tests/AllTests.php + +# fails with js: Couldn't read source file +rm src/Standards/Generic/Tests/Debug/JSHintUnitTest.* + # Version 3.4.0: Tests: 364, Assertions: 419, Skipped: 3. ret=0 -for cmdarg in "php %{phpunit}" "php70 %{_bindir}/phpunit6" php71 php72 php73; do +for cmdarg in "php %{phpunit}" php71 php72 php73 php74; do if which $cmdarg; then set $cmdarg - $1 -d memory_limit=1G ${2:-%{_bindir}/phpunit7} --verbose || ret=1 + $1 -d memory_limit=1G ${2:-%{_bindir}/phpunit7} \ + --verbose || ret=1 fi done exit $ret @@ -119,6 +127,26 @@ fi %changelog +* Mon Apr 20 2020 Remi Collet - 3.5.5-1 +- update to 3.5.5 + +* Fri Jan 31 2020 Remi Collet - 3.5.4-1 +- update to 3.5.4 +- fix test suite from + https://github.com/squizlabs/PHP_CodeSniffer/pull/2847 + +* Wed Dec 4 2019 Remi Collet - 3.5.3-1 +- update to 3.5.3 + +* Mon Oct 28 2019 Remi Collet - 3.5.2-1 +- update to 3.5.2 + +* Thu Oct 17 2019 Remi Collet - 3.5.1-1 +- update to 3.5.1 + +* Fri Sep 27 2019 Remi Collet - 3.5.0-1 +- update to 3.5.0 + * Thu Apr 11 2019 Remi Collet - 3.4.2-1 - update to 3.4.2 diff --git a/sources b/sources index 22e4008..e80bf94 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (PHP_CodeSniffer-3.4.2.tgz) = 6236e3f9899d8f4637314f359a8db44835140d0292ea02b56b5e2e55ea8739841648ee03c3f25bf4df64577237b6bc1c3d0999d5452b9f292ef019347ecd41f5 +SHA512 (PHP_CodeSniffer-3.5.5.tgz) = dad676069122d879b8afb665d661bcd1c810c762b44738765231f8c8cc90d20e7e581690b7e725cdc24438be26fa3185f3556a300798ed5a03cff51f5cbb5d4d