summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2021-02-05 10:49:51 +0100
committerRemi Collet <remi@remirepo.net>2021-02-05 10:49:51 +0100
commit4ef3098b4c06f280e996b21db480fbf3f7f18ee4 (patch)
tree0deae400baaeb199147558765f28d78aef131113
parent8ff61cea7db0bf24c9ffc8f613c041bde870afdb (diff)
fix test relying on current year, fix FTBFS #1923570
-rw-r--r--php-pear-PHP-CodeSniffer.spec12
1 files changed, 10 insertions, 2 deletions
diff --git a/php-pear-PHP-CodeSniffer.spec b/php-pear-PHP-CodeSniffer.spec
index 7f73371..8de7629 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-2020 Remi Collet
+# Copyright (c) 2013-2021 Remi Collet
# Copyright (c) 2009-2013 Christof Damian
# Copyright (c) 2006-2009 Konstantin Ryabitsev
#
@@ -14,7 +14,7 @@
Name: php-pear-PHP-CodeSniffer
Version: 3.5.8
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: PHP coding standards enforcement tool
License: BSD
@@ -95,6 +95,11 @@ cd %{pear_name}-%{version}
# fails with js: Couldn't read source file
rm src/Standards/Generic/Tests/Debug/JSHintUnitTest.*
+# Fix current date
+YEAR=$(date +%Y)
+sed -e "/@copyright/s/2020/${YEAR}/" \
+ -i src/Standards/Squiz/Tests/Commenting/FileCommentUnitTest.1.*.fixed
+
# Version 3.4.0: Tests: 364, Assertions: 419, Skipped: 3.
ret=0
# TODO php80
@@ -130,6 +135,9 @@ fi
%changelog
+* Fri Feb 5 2021 Remi Collet <remi@remirepo.net> - 3.5.8-2
+- fix test relying on current year, fix FTBFS #1923570
+
* Fri Oct 23 2020 Remi Collet <remi@remirepo.net> - 3.5.8-1
- update to 3.5.8