diff --git a/.gitignore b/.gitignore index 7d64065..e018523 100644 --- a/.gitignore +++ b/.gitignore @@ -43,3 +43,4 @@ clog /php-cs-fixer-2.16.3-83baf82.tgz /php-cs-fixer-2.16.4-1023c34.tgz /php-cs-fixer-2.16.7-4e35806.tgz +/php-cs-fixer-2.17.0-5274ce3.tgz diff --git a/php-cs-fixer-autoload.patch b/php-cs-fixer-autoload.patch index 632dd31..e24ef55 100644 --- a/php-cs-fixer-autoload.patch +++ b/php-cs-fixer-autoload.patch @@ -1,7 +1,7 @@ diff -up ./php-cs-fixer.rpm ./php-cs-fixer ---- ./php-cs-fixer.rpm 2019-11-04 09:02:13.808580217 +0100 -+++ ./php-cs-fixer 2019-11-04 09:03:24.388258652 +0100 -@@ -43,38 +43,7 @@ set_error_handler(function ($severity, $ +--- ./php-cs-fixer.rpm 2020-12-08 10:29:13.190515695 +0100 ++++ ./php-cs-fixer 2020-12-08 10:30:26.191258296 +0100 +@@ -52,39 +52,7 @@ set_error_handler(static function ($seve } }); @@ -10,6 +10,7 @@ diff -up ./php-cs-fixer.rpm ./php-cs-fixer - // Maybe this file is used as phar-stub? Let's try! - try { - Phar::mapPhar('php-cs-fixer.phar'); +- - require_once 'phar://php-cs-fixer.phar/vendor/autoload.php'; - $require = false; - } catch (PharException $e) { @@ -42,9 +43,9 @@ diff -up ./php-cs-fixer.rpm ./php-cs-fixer use Composer\XdebugHandler\XdebugHandler; use PhpCsFixer\Console\Application; diff -up ./src/Console/Command/HelpCommand.php.rpm ./src/Console/Command/HelpCommand.php ---- ./src/Console/Command/HelpCommand.php.rpm 2019-11-04 09:01:59.000000000 +0100 -+++ ./src/Console/Command/HelpCommand.php 2019-11-04 09:02:13.808580217 +0100 -@@ -377,6 +377,8 @@ EOF +--- ./src/Console/Command/HelpCommand.php.rpm 2020-12-08 07:57:58.000000000 +0100 ++++ ./src/Console/Command/HelpCommand.php 2020-12-08 10:29:13.190515695 +0100 +@@ -374,6 +374,8 @@ EOF { static $version = null; @@ -54,9 +55,9 @@ diff -up ./src/Console/Command/HelpCommand.php.rpm ./src/Console/Command/HelpCom return $version; } diff -up ./tests/AutoReview/ProjectCodeTest.php.rpm ./tests/AutoReview/ProjectCodeTest.php ---- ./tests/AutoReview/ProjectCodeTest.php.rpm 2019-11-04 09:01:59.000000000 +0100 -+++ ./tests/AutoReview/ProjectCodeTest.php 2019-11-04 09:02:13.808580217 +0100 -@@ -473,8 +473,11 @@ final class ProjectCodeTest extends Test +--- ./tests/AutoReview/ProjectCodeTest.php.rpm 2020-12-08 07:57:59.000000000 +0100 ++++ ./tests/AutoReview/ProjectCodeTest.php 2020-12-08 10:29:13.190515695 +0100 +@@ -690,8 +690,11 @@ final class ProjectCodeTest extends Test ->files() ->name('*.php') ->in(__DIR__.'/../../src') diff --git a/php-cs-fixer.spec b/php-cs-fixer.spec index 2496fd7..5d935e6 100644 --- a/php-cs-fixer.spec +++ b/php-cs-fixer.spec @@ -10,7 +10,7 @@ # For compatibility with SCL %undefine __brp_mangle_shebangs -%global gh_commit 4e35806a6d7d8510d6842ae932e8832363d22c87 +%global gh_commit 5274ce3d3200a2b374baa42143cb9dfcdcc2fa52 %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) #global gh_date 20150717 %global gh_owner FriendsOfPHP @@ -26,7 +26,7 @@ %global gh_diff_short %(c=%{gh_diff_commit}; echo ${c:0:7}) Name: php-cs-fixer -Version: 2.16.7 +Version: 2.17.0 Release: 1%{?gh_date:.%{gh_date}git%{gh_short}}%{?dist} Summary: A tool to automatically fix PHP code style @@ -79,6 +79,7 @@ BuildRequires: php-symfony3-debug # "php-cs-fixer/phpunit-constraint-isidenticalstring": "^1.2", # "php-cs-fixer/phpunit-constraint-xmlmatchesxsd": "^1.2.1", # "phpunit/phpunit": "^5.7.27 || ^6.5.14 || ^7.1", +# "phpunitgoodpractices/polyfill": "^1.5", # "phpunitgoodpractices/traits": "^1.9.1", # "symfony/phpunit-bridge": "^5.1", # "symfony/yaml": "^3.0 || ^4.0 || ^5.0" @@ -90,6 +91,7 @@ BuildRequires: (php-composer(mikey179/vfsstream) BuildRequires: (php-composer(php-cs-fixer/accessible-object) >= 1.0 with php-composer(php-cs-fixer/accessible-object) < 2) BuildRequires: (php-composer(php-cs-fixer/phpunit-constraint-isidenticalstring) >= 1.2 with php-composer(php-cs-fixer/phpunit-constraint-isidenticalstring) < 2) BuildRequires: (php-composer(php-cs-fixer/phpunit-constraint-xmlmatchesxsd) >= 1.2.1 with php-composer(php-cs-fixer/phpunit-constraint-xmlmatchesxsd) < 2) +BuildRequires: (php-composer(phpunitgoodpractices/polyfill) >= 1.5 with php-composer(phpunitgoodpractices/polyfill) < 2) BuildRequires: (php-composer(phpunitgoodpractices/traits) >= 1.9.1 with php-composer(phpunitgoodpractices/traits) < 2) %global phpunit %{_bindir}/phpunit7 BuildRequires: phpunit7 >= 7.1 @@ -98,7 +100,7 @@ BuildRequires: phpunit7 BuildRequires: php-fedora-autoloader-devel # From composer.json, "require": { -# "php": "^7.1", +# "php": "^5.6 || ^7.0 || ^8.0", # "ext-json": "*", # "ext-tokenizer": "*", # "composer/semver": "^1.4 || ^2.0 || ^3.0", @@ -257,6 +259,8 @@ rm tests/Smoke/StdinTest.php rm tests/Smoke/InstallViaComposerTest.php # strange failure rm tests/Fixtures/Integration/priority/combine_consecutive_issets,no_singleline_whitespace_before_semicolons.test +# test checking documentation +rm tests/AutoReview/DocumentationTest.php # Disable listener sed -e '//,/<\/listeners>/d' phpunit.xml.dist >phpunit.xml @@ -294,6 +298,9 @@ exit $ret %changelog +* Tue Dec 8 2020 Remi Collet - 2.17.0-1 +- update to 2.17.0 + * Wed Oct 28 2020 Remi Collet - 2.16.7-1 - update to 2.16.7 - raise dependency on composer/semver v3 diff --git a/sources b/sources index 84ca4e9..01d08ce 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -SHA512 (php-cs-fixer-2.16.7-4e35806.tgz) = 5b5772f7587e8b12e99524b91f0d96d3ae2227a6037a9264346392a9e523d43c75b7b11683355fbf87f374f325847d75320bba0163ca8b1ef5dc2436d5d3d971 -SHA512 (php-cs-fixer-diff-1.3.0-78bb099.tgz) = 7d8bea24495be84ea8729bab9f71efc498e264a8263aa7037f205aa8290404b000a357b556dcc886a461b7af6c915fd357b38e4d3c1ad945dffc5597e2db8f03 +SHA512 (php-cs-fixer-2.17.0-5274ce3.tgz) = 2fef1771c38ee1e66fa206888d1edaa5d5722f6ad205cec8b28c1fa2e68d4134e538d4621843bcd44905457ca8a2f6b7b1867438aaea69b8838ce8a7424c2a8f +SHA512 (php-cs-fixer-diff-1.3.0-78bb099.tgz) = b884451f0799804b7d1c5f3c93fa12a9218fdbd2285fc348c45c496128845d047cf2cf5103e71e0eecc7613b92e42402bd4625bafe3ed9c7d9cda416d4d10918