summaryrefslogtreecommitdiffstats
path: root/php-cs-fixer.spec
diff options
context:
space:
mode:
Diffstat (limited to 'php-cs-fixer.spec')
-rw-r--r--php-cs-fixer.spec107
1 files changed, 49 insertions, 58 deletions
diff --git a/php-cs-fixer.spec b/php-cs-fixer.spec
index 6ee21aa..af6eac2 100644
--- a/php-cs-fixer.spec
+++ b/php-cs-fixer.spec
@@ -6,7 +6,7 @@
#
# Please, preserve the changelog entries
#
-%global gh_commit 8f33cf3da0da94b67b9cd696b2b9dda81c928f72
+%global gh_commit d5257f7433bb490299c4f300d95598fd911a8ab0
%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.2.3
+Version: 2.3.1
Release: 1%{?gh_date:.%{gh_date}git%{gh_short}}%{?dist}
Summary: A tool to automatically fix PHP code style
@@ -37,23 +37,21 @@ BuildRequires: php-tokenizer
BuildRequires: php-composer(doctrine/annotations) < 2
BuildRequires: php-composer(doctrine/annotations) >= 1.2
BuildRequires: php-composer(symfony/console) < 4
-BuildRequires: php-composer(symfony/console) >= 2.4
+BuildRequires: php-composer(symfony/console) >= 3.0
BuildRequires: php-composer(symfony/event-dispatcher) < 4
-BuildRequires: php-composer(symfony/event-dispatcher) >= 2.1
+BuildRequires: php-composer(symfony/event-dispatcher) >= 3.0
BuildRequires: php-composer(symfony/filesystem) < 4
-BuildRequires: php-composer(symfony/filesystem) >= 2.4
+BuildRequires: php-composer(symfony/filesystem) >= 3.0
BuildRequires: php-composer(symfony/finder) < 4
-BuildRequires: php-composer(symfony/finder) >= 2.4
+BuildRequires: php-composer(symfony/finder) >= 3.0
BuildRequires: php-composer(symfony/options-resolver) < 4
-BuildRequires: php-composer(symfony/options-resolver) >= 2.6
-BuildRequires: php-composer(symfony/polyfill-php55) < 4
-BuildRequires: php-composer(symfony/polyfill-php55) >= 1.3
+BuildRequires: php-composer(symfony/options-resolver) >= 3.0
BuildRequires: php-composer(symfony/polyfill-php70) < 4
BuildRequires: php-composer(symfony/polyfill-php70) >= 1.3
BuildRequires: php-composer(symfony/process) < 4
-BuildRequires: php-composer(symfony/process) >= 2.3
+BuildRequires: php-composer(symfony/process) >= 3.0
BuildRequires: php-composer(symfony/stopwatch) < 4
-BuildRequires: php-composer(symfony/stopwatch) >= 2.5
+BuildRequires: php-composer(symfony/stopwatch) >= 3.0
BuildRequires: php-composer(sebastian/diff) < 2
BuildRequires: php-composer(sebastian/diff) >= 1.4
BuildRequires: php-mbstring
@@ -65,6 +63,9 @@ BuildRequires: php-pcre
BuildRequires: php-phar
BuildRequires: php-spl
BuildRequires: php-xml
+# Missing dependency for Console
+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",
# "justinrainbow/json-schema": "^5.0",
@@ -82,46 +83,46 @@ BuildRequires: php-composer(fedora/autoloader)
%endif
# From composer.json, "require": {
-# "php": "^5.3.6 || >=7.0 <7.2",
+# "php": "^5.6 || >=7.0 <7.2",
# "doctrine/annotations": "^1.2",
# "ext-tokenizer": "*",
# "sebastian/diff": "^1.4",
-# "symfony/console": "^2.4 || ^3.0",
-# "symfony/event-dispatcher": "^2.1 || ^3.0",
-# "symfony/filesystem": "^2.4 || ^3.0",
-# "symfony/finder": "^2.2 || ^3.0",
-# "symfony/options-resolver": "^2.6 || ^3.0",
+# "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": "^2.3 || ^3.0",
-# "symfony/stopwatch": "^2.5 || ^3.0"
-# use 5.4 to avoid polyfill
-Requires: php(language) >= 5.4
+# "symfony/process": "^3.0",
+# "symfony/stopwatch": "^3.0"
+Requires: php(language) >= 5.6
Requires: php-tokenizer
Requires: php-composer(doctrine/annotations) < 2
Requires: php-composer(doctrine/annotations) >= 1.2
Requires: php-composer(sebastian/diff) < 2
Requires: php-composer(sebastian/diff) >= 1.4
Requires: php-composer(symfony/console) < 4
-Requires: php-composer(symfony/console) >= 2.4
+Requires: php-composer(symfony/console) >= 3.0
Requires: php-composer(symfony/event-dispatcher) < 4
-Requires: php-composer(symfony/event-dispatcher) >= 2.1
+Requires: php-composer(symfony/event-dispatcher) >= 3.0
Requires: php-composer(symfony/filesystem) < 4
-Requires: php-composer(symfony/filesystem) >= 2.4
+Requires: php-composer(symfony/filesystem) >= 3.0
Requires: php-composer(symfony/finder) < 4
-Requires: php-composer(symfony/finder) >= 2.4
+Requires: php-composer(symfony/finder) >= 3.0
Requires: php-composer(symfony/options-resolver) < 4
-Requires: php-composer(symfony/options-resolver) >= 2.6
-Requires: php-composer(symfony/polyfill-php55) < 2
-Requires: php-composer(symfony/polyfill-php55) >= 1.3
+Requires: php-composer(symfony/options-resolver) >= 3.0
Requires: php-composer(symfony/polyfill-php70) < 2
Requires: php-composer(symfony/polyfill-php70) >= 1.0
Requires: php-composer(symfony/process) < 4
-Requires: php-composer(symfony/process) >= 2.3
+Requires: php-composer(symfony/process) >= 3.0
Requires: php-composer(symfony/stopwatch) < 4
-Requires: php-composer(symfony/stopwatch) >= 2.5
+Requires: php-composer(symfony/stopwatch) >= 3.0
+# Missing dependency for Console
+Requires: php-composer(symfony/debug) < 4
+Requires: php-composer(symfony/debug) >= 3.0
# From composer.json, "suggest": {
# "ext-mbstring": "For handling non-UTF8 characters in cache signature.",
# "ext-xml": "For better performance.",
@@ -164,10 +165,13 @@ require_once '%{php_home}/Fedora/Autoloader/autoload.php';
\Fedora\Autoloader\Autoload::addPsr4('PhpCsFixer\\', __DIR__);
\Fedora\Autoloader\Dependencies::required([
'%{php_home}/Doctrine/Common/Annotations/autoload.php',
- [
- '%{php_home}/Symfony3/Component/autoload.php',
- '%{php_home}/Symfony/Component/autoload.php',
- ],
+ '%{php_home}/Symfony3/Component/Console/autoload.php',
+ '%{php_home}/Symfony3/Component/EventDispatcher/autoload.php',
+ '%{php_home}/Symfony3/Component/Filesystem/autoload.php',
+ '%{php_home}/Symfony3/Component/Finder/autoload.php',
+ '%{php_home}/Symfony3/Component/OptionsResolver/autoload.php',
+ '%{php_home}/Symfony3/Component/Process/autoload.php',
+ '%{php_home}/Symfony3/Component/Stopwatch//autoload.php',
'%{php_home}/SebastianBergmann/Diff/autoload.php',
'%{php_home}/Symfony/Polyfill/autoload.php',
]);
@@ -194,37 +198,19 @@ cat << 'EOF' | tee vendor/autoload.php
<?php
\Fedora\Autoloader\Dependencies::required([
'%{php_home}/GeckoPackages/PHPUnit/autoload.php',
- [
- '%{php_home}/Symfony3/Bridge/PhpUnit/autoload.php',
- '%{php_home}/Symfony/Bridge/PhpUnit/autoload.php',
- ],
+ '%{php_home}/Symfony/Bridge/PhpUnit/autoload.php',
'%{php_home}/JsonSchema5/autoload.php',
'%{buildroot}%{php_home}/PhpCsFixer/autoload.php',
]);
\Fedora\Autoloader\Autoload::addPsr4('PhpCsFixer\\Tests\\', dirname(__DIR__) . '/tests');
EOF
-
-# remirepo:11
-run=0
ret=0
-if which php56; then
- php56 %{_bindir}/phpunit
- run=1
-fi
-if which php71; then
- php71 %{_bindir}/phpunit
- run=1
-fi
-if [ $run -eq 0 ]; then
-# see https://github.com/FriendsOfPHP/PHP-CS-Fixer/blob/master/.travis.yml
-if php -r 'exit (version_compare(PHP_VERSION, "5.6", "<") ? 0 : 1);'; then
- export SKIP_LINT_TEST_CASES=1
-fi
-
-%{_bindir}/phpunit --verbose
-# remirepo:2
-fi
+for cmd in php php56 php70 php71; do
+ if which $cmd; then
+ $cmd %{_bindir}/phpunit --verbose || ret=1
+ fi
+done
exit $ret
%else
: Test suite disabled
@@ -241,6 +227,11 @@ exit $ret
%changelog
+* Tue May 9 2017 Remi Collet <remi@remirepo.net> - 2.3.1-1
+- Update to 2.3.1
+- raise dependency on PHP 5.6
+- raise dependency on Symfony 3
+
* Wed Apr 26 2017 Remi Collet <remi@remirepo.net> - 2.2.3-1
- Update to 2.2.3