From 7e2e9772a2c923f200dccbd27f72541f668cc785 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Tue, 16 Nov 2021 08:25:26 +0100 Subject: update to 3.3.1 --- php-cs-fixer3.spec | 34 ++++++++++++++++++++++++---------- 1 file changed, 24 insertions(+), 10 deletions(-) (limited to 'php-cs-fixer3.spec') diff --git a/php-cs-fixer3.spec b/php-cs-fixer3.spec index d824e4c..8a57fad 100644 --- a/php-cs-fixer3.spec +++ b/php-cs-fixer3.spec @@ -10,13 +10,17 @@ # For compatibility with SCL %undefine __brp_mangle_shebangs -%global gh_commit cf4cedb9e8991c2daa94a756176d81bf487e4c4b +%global gh_commit b37bf90405cec3f7a83c18e645ef748bcb87ac11 %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) #global gh_date 20150717 %global gh_owner FriendsOfPHP %global gh_project PHP-CS-Fixer %global php_home %{_datadir}/php -%global with_tests 0%{!?_without_tests:1} +%if 0%{?fedora} >= 36 +%bcond_with tests +%else +%bcond_without tests +%endif %global major 3 # Bundled this fork which is not designed for use outside of php-cs-fixer @@ -27,7 +31,7 @@ %global gh_diff_short %(c=%{gh_diff_commit}; echo ${c:0:7}) Name: php-cs-fixer%{major} -Version: 3.1.0 +Version: 3.3.1 Release: 1%{?gh_date:.%{gh_date}git%{gh_short}}%{?dist} Summary: A tool to automatically fix PHP code style @@ -42,7 +46,7 @@ Source2: makesrc.sh Patch0: %{name}-autoload.patch BuildArch: noarch -%if %{with_tests} +%if %{with tests} # For tests # as we use phpunit9 BuildRequires: php(language) >= 7.3 @@ -53,6 +57,7 @@ BuildRequires: (php-composer(composer/semver) >= 3.2 with php-co BuildRequires: (php-composer(composer/xdebug-handler) >= 2.0 with php-composer(composer/xdebug-handler) < 3) BuildRequires: (php-composer(doctrine/annotations) >= 1.12 with php-composer(doctrine/annotations) < 2) BuildRequires: (php-composer(sebastian/diff) >= 1.4 with php-composer(sebastian/diff) < 2) +BuildRequires: (php-composer(symfony/polyfill-php80) >= 1.23 with php-composer(symfony/polyfill-php80) < 2) BuildRequires: (php-composer(symfony/polyfill-php81) >= 1.23 with php-composer(symfony/polyfill-php81) < 2) # remirepo:7 %else @@ -132,7 +137,7 @@ BuildRequires: phpunit9 BuildRequires: php-fedora-autoloader-devel # From composer.json, "require": { -# "php": "^7.1.3 || ^8.0", +# "php": "^7.2.5 || ^8.0", # "ext-json": "*", # "ext-tokenizer": "*", # "composer/semver": "^3.2", @@ -144,12 +149,14 @@ BuildRequires: php-fedora-autoloader-devel # "symfony/filesystem": "^4.4.20 || ^5.0", # "symfony/finder": "^4.4.20 || ^5.0", # "symfony/options-resolver": "^4.4.20 || ^5.0", +# "symfony/polyfill-mbstring": "^1.23", # "symfony/polyfill-php72": "^1.23", +# "symfony/polyfill-php80": "^1.23", # "symfony/polyfill-php81": "^1.23", # "symfony/process": "^4.4.20 || ^5.0", # "symfony/stopwatch": "^4.4.20 || ^5.0" # raised to 7.2 to avoid the polyfill -Requires: php(language) >= 7.2 +Requires: php(language) >= 7.2.5 Requires: php-json Requires: php-tokenizer # remirepo:1 @@ -158,6 +165,7 @@ Requires: (php-composer(composer/semver) >= 3.2 with php-co Requires: (php-composer(composer/xdebug-handler) >= 2.0 with php-composer(composer/xdebug-handler) < 3) Requires: (php-composer(doctrine/annotations) >= 1.12 with php-composer(doctrine/annotations) < 2) Requires: (php-composer(sebastian/diff) >= 1.4 with php-composer(sebastian/diff) < 2) +Requires: (php-composer(symfony/polyfill-php80) >= 1.23 with php-composer(symfony/polyfill-php80) < 2) Requires: (php-composer(symfony/polyfill-php81) >= 1.23 with php-composer(symfony/polyfill-php81) < 2) # remirepo:7 %else @@ -178,8 +186,7 @@ Requires: php-symfony4-stopwatch Requires: php-symfony4-debug # From composer.json, "suggest": { # "ext-dom": "For handling output formats in XML", -# "ext-mbstring": "For handling non-UTF8 characters.", -# "symfony/polyfill-mbstring": "When enabling `ext-mbstring` is not possible." +# "ext-mbstring": "For handling non-UTF8 characters." Requires: php-dom Requires: php-mbstring # From phpcompatinfo report for version 3.0.0 @@ -265,7 +272,7 @@ install -Dpm755 php-cs-fixer %{buildroot}%{_bindir}/%{name} %check -%if %{with_tests} +%if %{with tests} mkdir vendor cat << 'EOF' | tee vendor/autoload.php - 3.3.1-1 +- update to 3.3.1 + +* Tue Oct 5 2021 Remi Collet - 3.2.1-1 +- update to 3.2.1 + * Thu Sep 2 2021 Remi Collet - 3.1.0-1 - update to 3.1.0 - add dependency on symfony/polyfill-php81 + * Thu Aug 5 2021 Remi Collet - 3.0.2-1 - update to 3.0.2 -- cgit