Compare commits
10 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
369abf37c8 | ||
|
|
ccd25247c8 | ||
|
|
a96450c60f | ||
|
|
b244a555fa | ||
|
|
ddb15f4117 | ||
|
|
2b6357fdce | ||
|
|
02e760c873 | ||
|
|
ed1cc9c1cb | ||
|
|
76a1f360ce | ||
|
|
c20d5e3cb7 |
3 changed files with 49 additions and 9 deletions
9
.gitignore
vendored
9
.gitignore
vendored
|
|
@ -52,3 +52,12 @@ clog
|
|||
/php-pear-PHP-CodeSniffer-3.10.0-57e0980.tgz
|
||||
/roundcubemail-1.5.7-complete.tar.gz
|
||||
/php-pear-PHP-CodeSniffer-3.10.1-8f90f7a.tgz
|
||||
/php-pear-PHP-CodeSniffer-3.10.2-86e5f5d.tgz
|
||||
/php-pear-PHP-CodeSniffer-3.10.3-62d3299.tgz
|
||||
/php-pear-PHP-CodeSniffer-3.11.0-70c08f8.tgz
|
||||
/php-pear-PHP-CodeSniffer-3.11.1-19473c3.tgz
|
||||
/php-pear-PHP-CodeSniffer-3.11.2-1368f4a.tgz
|
||||
/php-pear-PHP-CodeSniffer-3.11.3-ba05f99.tgz
|
||||
/php-pear-PHP-CodeSniffer-3.12.0-2d1b63d.tgz
|
||||
/php-pear-PHP-CodeSniffer-3.12.1-ea16a1f.tgz
|
||||
/php-pear-PHP-CodeSniffer-3.12.2-6d4cf60.tgz
|
||||
|
|
|
|||
|
|
@ -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
|
||||
#
|
||||
|
|
@ -13,9 +13,9 @@
|
|||
|
||||
%bcond_without tests
|
||||
|
||||
%global gh_commit 8f90f7a53ce271935282967f53d0894f8f1ff877
|
||||
%global gh_commit 6d4cf6032d4b718f168c90a96e36c7d0eaacb2aa
|
||||
%global gh_short %(c=%{gh_commit}; echo ${c:0:7})
|
||||
%global gh_date 2024-05-22
|
||||
%global gh_date 2025-04-13
|
||||
%global gh_owner PHPCSStandards
|
||||
%global gh_project PHP_CodeSniffer
|
||||
# keep in old PEAR tree
|
||||
|
|
@ -23,11 +23,11 @@
|
|||
|
||||
|
||||
Name: php-pear-PHP-CodeSniffer
|
||||
Version: 3.10.1
|
||||
Version: 3.12.2
|
||||
Release: 1%{?dist}
|
||||
Summary: PHP coding standards enforcement tool
|
||||
|
||||
License: BSD 3-Clause
|
||||
License: BSD-3-Clause
|
||||
URL: https://github.com/%{gh_owner}/%{gh_project}
|
||||
# git snapshot to retrieve test suite
|
||||
Source0: %{gh_commit}/%{name}-%{version}-%{gh_short}.tgz
|
||||
|
|
@ -45,6 +45,7 @@ BuildRequires: php-dom
|
|||
BuildRequires: php-iconv
|
||||
BuildRequires: php-intl
|
||||
%if %{with tests}
|
||||
BuildRequires: php-bcmath
|
||||
# to run test suite, from composer.json "require-dev"
|
||||
# "phpunit/phpunit": "^4.0 || ^5.0 || ^6.0 || ^7.0 || ^8.0 || ^9.3.4"
|
||||
%global phpunit %{_bindir}/phpunit9
|
||||
|
|
@ -108,15 +109,18 @@ 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.9.0: Tests: 2276, Assertions: 10969, Warnings: 4, Skipped: 12.
|
||||
# Version 3.11.2: Tests: 3174, Assertions: 18639, Warnings: 3, Skipped: 19.
|
||||
# testBrokenRulesetMultiError failing reported as https://github.com/PHPCSStandards/PHP_CodeSniffer/issues/767
|
||||
ret=0
|
||||
for cmdarg in "php %{phpunit}" php81 php82 php83; do
|
||||
for cmdarg in "php %{phpunit}" php81 php82 php83 php84; do
|
||||
if which $cmdarg; then
|
||||
set $cmdarg
|
||||
$1 -d memory_limit=-1 ${2:-%{_bindir}/phpunit9} \
|
||||
--filter '^((?!(testBrokenRulesetMultiError)).)*$' \
|
||||
|| ret=1
|
||||
fi
|
||||
done
|
||||
|
|
@ -141,6 +145,33 @@ fi
|
|||
|
||||
|
||||
%changelog
|
||||
* Mon Apr 14 2025 Remi Collet <remi@remirepo.net> - 3.12.2-1
|
||||
- update to 3.12.2
|
||||
|
||||
* Mon Apr 7 2025 Remi Collet <remi@remirepo.net> - 3.12.1-1
|
||||
- update to 3.12.1
|
||||
|
||||
* Tue Mar 18 2025 Remi Collet <remi@remirepo.net> - 3.12.0-1
|
||||
- update to 3.12.0
|
||||
|
||||
* Fri Jan 24 2025 Remi Collet <remi@remirepo.net> - 3.11.3-1
|
||||
- update to 3.11.3
|
||||
|
||||
* Thu Dec 12 2024 Remi Collet <remi@remirepo.net> - 3.11.2-1
|
||||
- update to 3.11.2
|
||||
|
||||
* Mon Nov 18 2024 Remi Collet <remi@remirepo.net> - 3.11.1-1
|
||||
- update to 3.11.1
|
||||
|
||||
* Tue Nov 12 2024 Remi Collet <remi@remirepo.net> - 3.11.0-1
|
||||
- update to 3.11.0
|
||||
|
||||
* Wed Sep 18 2024 Remi Collet <remi@remirepo.net> - 3.10.3-1
|
||||
- update to 3.10.3
|
||||
|
||||
* Mon Jul 22 2024 Remi Collet <remi@remirepo.net> - 3.10.2-1
|
||||
- update to 3.10.2
|
||||
|
||||
* Thu May 23 2024 Remi Collet <remi@remirepo.net> - 3.10.1-1
|
||||
- update to 3.10.1
|
||||
|
||||
|
|
|
|||
2
sources
2
sources
|
|
@ -1 +1 @@
|
|||
SHA512 (php-pear-PHP-CodeSniffer-3.10.1-8f90f7a.tgz) = 00e972de684d7655b894212962aa49bb5c89899d01dcbb6eb0fb929bd5dc0553c7dd9542e017b22262564137dc2fb545ea8e055d8a6b3c79261d7ce85096432c
|
||||
SHA512 (php-pear-PHP-CodeSniffer-3.12.2-6d4cf60.tgz) = 9c61b2b336a0bc838e79b1ddb1f12ce9550476e1104c13fb1bc38d6d15787a5ba82106f1a48250cb32a63d2e0d007f17f10b9305a57b88ba1de91c979dfc8a1e
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue