diff options
Diffstat (limited to 'php-pear-PHP-CodeSniffer.spec')
-rw-r--r-- | php-pear-PHP-CodeSniffer.spec | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/php-pear-PHP-CodeSniffer.spec b/php-pear-PHP-CodeSniffer.spec index 923ccfd..a1bd95c 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-2024 Remi Collet +# Copyright (c) 2013-2025 Remi Collet # Copyright (c) 2009-2013 Christof Damian # Copyright (c) 2006-2009 Konstantin Ryabitsev # @@ -27,7 +27,7 @@ Name: php-pear-PHP-CodeSniffer Version: 3.11.2 -Release: 1%{?dist} +Release: 2%{?dist} Summary: PHP coding standards enforcement tool License: BSD-3-Clause @@ -112,7 +112,8 @@ rm src/Standards/Generic/Tests/Debug/JSHintUnitTest.* # Fix current date YEAR=$(date +%Y) -sed -e "/@copyright/s/2021/${YEAR}/" \ +PREV=$(expr $YEAR - 1) +sed -e "/@copyright/s/${PREV}/${YEAR}/" \ -i src/Standards/Squiz/Tests/Commenting/FileCommentUnitTest.1.*.fixed # Version 3.11.2: Tests: 3174, Assertions: 18639, Warnings: 3, Skipped: 19. @@ -147,6 +148,9 @@ fi %changelog +* Wed Jan 22 2025 Remi Collet <remi@remirepo.net> - 3.11.2-2 +- fix tests failing because of new year + * Thu Dec 12 2024 Remi Collet <remi@remirepo.net> - 3.11.2-1 - update to 3.11.2 |