Compare commits

...
Sign in to create a new pull request.

8 commits

Author SHA1 Message Date
Remi Collet
332417e063 v3.10.3
(cherry picked from commit bcdd00f96b)
2024-09-18 14:52:19 +02:00
Miroslav Suchý
f5d3c1fa17 Correct SPDX license
This is part of https://fedoraproject.org/wiki/Changes/SPDX_Licenses_Phase_4

If there will be no comments in two weeks, I will merge this.

(cherry picked from commit 9222b878e8)
2024-09-18 14:52:08 +02:00
Remi Collet
f13ce2f501 v3.10.2
(cherry picked from commit dac4b5583b)
(cherry picked from commit c20d5e3cb7)
2024-07-22 08:00:49 +02:00
Remi Collet
c30ae219c6 v3.10.1
(cherry picked from commit ed1eb2685a)
2024-05-23 07:43:15 +02:00
Remi Collet
8fd3c02202 v3.10.0
(cherry picked from commit 86de742b5b)
2024-05-22 10:40:10 +02:00
Remi Collet
52cd0000aa v3.9.2 2024-04-24 11:02:24 +02:00
Remi Collet
2b1b1d86d8 v3.9.1
(cherry picked from commit 3666b4ec4c)
2024-04-02 08:05:49 +02:00
Remi Collet
d7c5f95f60 update to 3.9.0
drop patch merged upstream

(cherry picked from commit 307edb1bb4)
2024-02-19 08:55:57 +01:00
4 changed files with 45 additions and 24 deletions

8
.gitignore vendored
View file

@ -46,3 +46,11 @@ clog
/PHP_CodeSniffer-3.7.2.tgz /PHP_CodeSniffer-3.7.2.tgz
/php-pear-PHP-CodeSniffer-3.8.0-5805f7a.tgz /php-pear-PHP-CodeSniffer-3.8.0-5805f7a.tgz
/php-pear-PHP-CodeSniffer-3.8.1-14f5fff.tgz /php-pear-PHP-CodeSniffer-3.8.1-14f5fff.tgz
/php-pear-PHP-CodeSniffer-3.9.0-d63cee4.tgz
/php-pear-PHP-CodeSniffer-3.9.1-267a440.tgz
/php-pear-PHP-CodeSniffer-3.9.2-aac1f6f.tgz
/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

View file

@ -1,31 +1,23 @@
diff -up ./bin/phpcbf.rpm ./bin/phpcbf diff -up ./bin/phpcbf.rpm ./bin/phpcbf
--- ./bin/phpcbf.rpm 2023-12-11 09:46:17.920584703 +0100 --- ./bin/phpcbf.rpm 2024-04-02 07:58:25.996735959 +0200
+++ ./bin/phpcbf 2023-12-11 09:46:27.469951577 +0100 +++ ./bin/phpcbf 2024-04-02 07:59:09.906379098 +0200
@@ -8,11 +8,7 @@ @@ -8,7 +8,7 @@
* @license https://github.com/PHPCSStandards/PHP_CodeSniffer/blob/master/licence.txt BSD Licence * @license https://github.com/PHPCSStandards/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
*/ */
-if (is_file(__DIR__.'/../autoload.php') === true) { -require_once __DIR__.'/../autoload.php';
- include_once __DIR__.'/../autoload.php';
-} else {
- include_once 'PHP/CodeSniffer/autoload.php';
-}
+include_once '/usr/share/pear/PHP/CodeSniffer/autoload.php'; +include_once '/usr/share/pear/PHP/CodeSniffer/autoload.php';
$runner = new PHP_CodeSniffer\Runner(); $runner = new PHP_CodeSniffer\Runner();
$exitCode = $runner->runPHPCBF(); $exitCode = $runner->runPHPCBF();
diff -up ./bin/phpcs.rpm ./bin/phpcs diff -up ./bin/phpcs.rpm ./bin/phpcs
--- ./bin/phpcs.rpm 2023-12-11 09:45:10.918010545 +0100 --- ./bin/phpcs.rpm 2024-04-02 07:58:25.996735959 +0200
+++ ./bin/phpcs 2023-12-11 09:46:03.104015468 +0100 +++ ./bin/phpcs 2024-04-02 07:59:18.295693037 +0200
@@ -8,11 +8,7 @@ @@ -8,7 +8,7 @@
* @license https://github.com/PHPCSStandards/PHP_CodeSniffer/blob/master/licence.txt BSD Licence * @license https://github.com/PHPCSStandards/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
*/ */
-if (is_file(__DIR__.'/../autoload.php') === true) { -require_once __DIR__.'/../autoload.php';
- include_once __DIR__.'/../autoload.php';
-} else {
- include_once 'PHP/CodeSniffer/autoload.php';
-}
+include_once '/usr/share/pear/PHP/CodeSniffer/autoload.php'; +include_once '/usr/share/pear/PHP/CodeSniffer/autoload.php';
$runner = new PHP_CodeSniffer\Runner(); $runner = new PHP_CodeSniffer\Runner();

View file

@ -13,8 +13,9 @@
%bcond_without tests %bcond_without tests
%global gh_commit 14f5fff1e64118595db5408e946f3a22c75807f7 %global gh_commit 62d32998e820bddc40f99f8251958aed187a5c9c
%global gh_short %(c=%{gh_commit}; echo ${c:0:7}) %global gh_short %(c=%{gh_commit}; echo ${c:0:7})
%global gh_date 2024-09-18
%global gh_owner PHPCSStandards %global gh_owner PHPCSStandards
%global gh_project PHP_CodeSniffer %global gh_project PHP_CodeSniffer
# keep in old PEAR tree # keep in old PEAR tree
@ -22,11 +23,11 @@
Name: php-pear-PHP-CodeSniffer Name: php-pear-PHP-CodeSniffer
Version: 3.8.1 Version: 3.10.3
Release: 1%{?dist} Release: 1%{?dist}
Summary: PHP coding standards enforcement tool Summary: PHP coding standards enforcement tool
License: BSD 3-Clause License: BSD-3-Clause
URL: https://github.com/%{gh_owner}/%{gh_project} URL: https://github.com/%{gh_owner}/%{gh_project}
# git snapshot to retrieve test suite # git snapshot to retrieve test suite
Source0: %{gh_commit}/%{name}-%{version}-%{gh_short}.tgz Source0: %{gh_commit}/%{name}-%{version}-%{gh_short}.tgz
@ -34,7 +35,6 @@ Source1: makesrc.sh
# RPM installation path # RPM installation path
Patch0: %{name}-rpm.patch Patch0: %{name}-rpm.patch
Patch1: 0001-skip-tests-requiring-git-repository.patch
BuildArch: noarch BuildArch: noarch
BuildRequires: php(language) >= 5.4 BuildRequires: php(language) >= 5.4
@ -79,7 +79,6 @@ certain standards, such as PEAR, or user-defined.
%prep %prep
%setup -q -n %{gh_project}-%{gh_commit} %setup -q -n %{gh_project}-%{gh_commit}
%patch -P0 -p1 -b .rpm %patch -P0 -p1 -b .rpm
%patch -P1 -p1 -b .nogit
%build %build
@ -112,12 +111,12 @@ YEAR=$(date +%Y)
sed -e "/@copyright/s/2021/${YEAR}/" \ sed -e "/@copyright/s/2021/${YEAR}/" \
-i src/Standards/Squiz/Tests/Commenting/FileCommentUnitTest.1.*.fixed -i src/Standards/Squiz/Tests/Commenting/FileCommentUnitTest.1.*.fixed
# Version 3.6.2: Tests: 1327, Assertions: 8476, Skipped: 8. # Version 3.9.0: Tests: 2276, Assertions: 10969, Warnings: 4, Skipped: 12.
ret=0 ret=0
for cmdarg in "php %{phpunit}" php81 php82 php83; do for cmdarg in "php %{phpunit}" php81 php82 php83; do
if which $cmdarg; then if which $cmdarg; then
set $cmdarg set $cmdarg
$1 -d memory_limit=1G ${2:-%{_bindir}/phpunit9} \ $1 -d memory_limit=-1 ${2:-%{_bindir}/phpunit9} \
|| ret=1 || ret=1
fi fi
done done
@ -142,6 +141,28 @@ fi
%changelog %changelog
* 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
* Wed May 22 2024 Remi Collet <remi@remirepo.net> - 3.10.0-1
- update to 3.10.0
* Wed Apr 24 2024 Remi Collet <remi@remirepo.net> - 3.9.2-1
- update to 3.9.2
* Tue Apr 2 2024 Remi Collet <remi@remirepo.net> - 3.9.1-1
- update to 3.9.1
* Sat Feb 17 2024 Remi Collet <remi@remirepo.net> - 3.9.0-1
- update to 3.9.0
- drop patch merged upstream
* Fri Jan 12 2024 Remi Collet <remi@remirepo.net> - 3.8.1-1 * Fri Jan 12 2024 Remi Collet <remi@remirepo.net> - 3.8.1-1
- update to 3.8.1 - update to 3.8.1
- add patch for test suite from - add patch for test suite from

View file

@ -1 +1 @@
SHA512 (php-pear-PHP-CodeSniffer-3.8.1-14f5fff.tgz) = f3d219c9520c134061994ee36a44ac3aff8aaf311495eefd4f0fc7489d3e9473283b69a4cc4cd6df8e352a1ed3d8bdc177b4ecec5bab59f25cee13cbeb9fe162 SHA512 (php-pear-PHP-CodeSniffer-3.10.3-62d3299.tgz) = 5d3ad84e8a67cdc9b30ff807232923a022cd5e4149a770c02ff36d54fca4959d1cae7bd00cf11b948b4d2df0f7a345b36cfc950d15258dab966472554ca0557d