summaryrefslogtreecommitdiffstats
path: root/php-pear-PHP-CodeSniffer.spec
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2025-01-22 15:37:15 +0100
committerRemi Collet <remi@php.net>2025-01-22 15:37:15 +0100
commitf41d69d637e428cbd0469dc7bd7619324bb4312a (patch)
tree6abedab33ba31b8124aab3d2a168f5503e849875 /php-pear-PHP-CodeSniffer.spec
parent70eeefb6ea6f43efc2a1f428de45c0f1927b7cf7 (diff)
fix tests failing because of new year
Diffstat (limited to 'php-pear-PHP-CodeSniffer.spec')
-rw-r--r--php-pear-PHP-CodeSniffer.spec10
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