From 467198a88145f77fad8a698326b19a8134da90e4 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Thu, 25 May 2017 09:14:13 +0200 Subject: v2.3.2 --- php-cs-fixer.spec | 44 +++++++++++++++++++++++++++++++------------- 1 file changed, 31 insertions(+), 13 deletions(-) (limited to 'php-cs-fixer.spec') diff --git a/php-cs-fixer.spec b/php-cs-fixer.spec index c3b7d56..3a69da2 100644 --- a/php-cs-fixer.spec +++ b/php-cs-fixer.spec @@ -6,7 +6,7 @@ # # Please, preserve the changelog entries # -%global gh_commit d5257f7433bb490299c4f300d95598fd911a8ab0 +%global gh_commit 597745f744bcce1aed59dfd1bb4603de2a06cda9 %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) #global gh_date 20150717 %global gh_owner FriendsOfPHP @@ -15,7 +15,7 @@ %global with_tests 0%{!?_without_tests:1} Name: php-cs-fixer -Version: 2.3.1 +Version: 2.3.2 Release: 1%{?gh_date:.%{gh_date}git%{gh_short}}%{?dist} Summary: A tool to automatically fix PHP code style @@ -36,6 +36,8 @@ BuildRequires: php(language) >= 5.4 BuildRequires: php-tokenizer BuildRequires: php-composer(doctrine/annotations) < 2 BuildRequires: php-composer(doctrine/annotations) >= 1.2 +BuildRequires: php-composer(gecko-packages/gecko-php-unit) < 3 +BuildRequires: php-composer(gecko-packages/gecko-php-unit) >= 2.0 BuildRequires: php-composer(symfony/console) < 4 BuildRequires: php-composer(symfony/console) >= 3.0 BuildRequires: php-composer(symfony/event-dispatcher) < 4 @@ -46,7 +48,7 @@ BuildRequires: php-composer(symfony/finder) < 4 BuildRequires: php-composer(symfony/finder) >= 3.0 BuildRequires: php-composer(symfony/options-resolver) < 4 BuildRequires: php-composer(symfony/options-resolver) >= 3.0 -BuildRequires: php-composer(symfony/polyfill-php70) < 4 +BuildRequires: php-composer(symfony/polyfill-php70) < 2 BuildRequires: php-composer(symfony/polyfill-php70) >= 1.3 BuildRequires: php-composer(symfony/process) < 4 BuildRequires: php-composer(symfony/process) >= 3.0 @@ -67,13 +69,15 @@ BuildRequires: php-xml BuildRequires: php-composer(symfony/debug) < 4 BuildRequires: php-composer(symfony/debug) >= 3.0 # From composer.json, "require-dev": { -# "gecko-packages/gecko-php-unit": "^2.0", +# NOTICE: listener disabled during test suite +# "johnkary/phpunit-speedtrap": "^1.1", # "justinrainbow/json-schema": "^5.0", -# "phpunit/phpunit": "^4.5 || ^5.0", +# NOTICE: phpmd not used +# "mi-schi/phpmd-extension": "^4.2", +# "phpmd/phpmd": "^2.4.3", +# "phpunit/phpunit": "^4.8.35 || ^5.4.3", # "satooshi/php-coveralls": "^1.0", # "symfony/phpunit-bridge": "^3.2" -BuildRequires: php-composer(gecko-packages/gecko-php-unit) < 3 -BuildRequires: php-composer(gecko-packages/gecko-php-unit) >= 2.0 BuildRequires: php-composer(justinrainbow/json-schema) < 6 BuildRequires: php-composer(justinrainbow/json-schema) >= 5 BuildRequires: php-composer(phpunit/phpunit) >= 4.5 @@ -84,24 +88,27 @@ BuildRequires: php-composer(fedora/autoloader) # From composer.json, "require": { # "php": "^5.6 || >=7.0 <7.2", -# "doctrine/annotations": "^1.2", +# "ext-json": "*", # "ext-tokenizer": "*", +# "doctrine/annotations": "^1.2", +# "gecko-packages/gecko-php-unit": "^2.0", # "sebastian/diff": "^1.4", # "symfony/console": "^3.0", # "symfony/event-dispatcher": "^3.0", # "symfony/filesystem": "^3.0", # "symfony/finder": "^3.0", # "symfony/options-resolver": "^3.0", -# "symfony/polyfill-php54": "^1.0", -# "symfony/polyfill-php55": "^1.3", # "symfony/polyfill-php70": "^1.0", # "symfony/polyfill-xml": "^1.3", # "symfony/process": "^3.0", # "symfony/stopwatch": "^3.0" Requires: php(language) >= 5.6 +Requires: php-json Requires: php-tokenizer Requires: php-composer(doctrine/annotations) < 2 Requires: php-composer(doctrine/annotations) >= 1.2 +Requires: php-composer(gecko-packages/gecko-php-unit) < 3 +Requires: php-composer(gecko-packages/gecko-php-unit) >= 2.0 Requires: php-composer(sebastian/diff) < 2 Requires: php-composer(sebastian/diff) >= 1.4 Requires: php-composer(symfony/console) < 4 @@ -133,7 +140,6 @@ Requires: php-xml Requires: php-cli Requires: php-reflection Requires: php-dom -Requires: php-json Requires: php-pcre Requires: php-phar Requires: php-spl @@ -156,6 +162,7 @@ projects. This tool does not only detect them, but also fixes them for you. %prep %setup -q -n %{gh_project}-%{gh_commit} %patch0 -p1 -b .rpm +find src -name \*rpm -delete -print cat << 'EOF' | tee src/autoload.php phpunit.xml + ret=0 -for cmd in php php56 php70 php71; do +for cmd in php php56 php70 php71 php72; do if which $cmd; then $cmd %{_bindir}/phpunit --verbose || ret=1 fi @@ -230,6 +244,10 @@ exit $ret %changelog +* Thu May 25 2017 Remi Collet - 2.3.2-1 +- Update to 2.3.2 +- add dependency on gecko-packages/gecko-php-unit + * Tue May 9 2017 Remi Collet - 2.3.1-1 - Update to 2.3.1 - raise dependency on PHP 5.6 -- cgit