summaryrefslogtreecommitdiffstats
path: root/php-pear-PHP-CodeSniffer.spec
diff options
context:
space:
mode:
Diffstat (limited to 'php-pear-PHP-CodeSniffer.spec')
-rw-r--r--php-pear-PHP-CodeSniffer.spec29
1 files changed, 21 insertions, 8 deletions
diff --git a/php-pear-PHP-CodeSniffer.spec b/php-pear-PHP-CodeSniffer.spec
index 17eac3d..d236348 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
#
@@ -13,7 +13,7 @@
%global pear_name PHP_CodeSniffer
Name: php-pear-PHP-CodeSniffer
-Version: 3.5.5
+Version: 3.6.0
Release: 1%{?dist}
Summary: PHP coding standards enforcement tool
@@ -92,16 +92,17 @@ 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.
+# Fix current date
+YEAR=$(date +%Y)
+sed -e "/@copyright/s/2020/${YEAR}/" \
+ -i src/Standards/Squiz/Tests/Commenting/FileCommentUnitTest.1.*.fixed
+
+# Version 3.6.0: Tests: 1183, Assertions: 8128, Skipped: 8.
ret=0
-for cmdarg in "php %{phpunit}" php71 php72 php73 php74; do
+for cmdarg in "php %{phpunit}" php73 php74 php80; do
if which $cmdarg; then
set $cmdarg
$1 -d memory_limit=1G ${2:-%{_bindir}/phpunit7} \
@@ -133,6 +134,18 @@ fi
%changelog
+* Fri Apr 9 2021 Remi Collet <remi@remirepo.net> - 3.6.0-1
+- update to 3.6.0
+
+* 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
+
+* Tue Aug 11 2020 Remi Collet <remi@remirepo.net> - 3.5.6-1
+- update to 3.5.6
+
* Mon Apr 20 2020 Remi Collet <remi@remirepo.net> - 3.5.5-1
- update to 3.5.5