diff options
author | Remi Collet <fedora@famillecollet.com> | 2016-12-01 16:07:39 +0100 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2016-12-01 16:07:39 +0100 |
commit | 2efef70b25a4098e3acdad2e8cd664cff0ab5a0c (patch) | |
tree | d19882304ba743ca63d5a57161fabe97201e3c2d | |
parent | 21bb4911cc68adee9a562eb976a25a6dd02769fb (diff) |
php-cs-fixer: 2.0.0
-rw-r--r-- | php-cs-fixer.spec | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/php-cs-fixer.spec b/php-cs-fixer.spec index 4fc6681..ae336ce 100644 --- a/php-cs-fixer.spec +++ b/php-cs-fixer.spec @@ -49,12 +49,13 @@ BuildRequires: php-json BuildRequires: php-pcre BuildRequires: php-phar BuildRequires: php-spl -BuildRequires: php-tokenizer BuildRequires: php-xml # From composer.json, "require-dev": { +# "gecko-packages/gecko-php-unit": "^2.0", # "phpunit/phpunit": "^4.5|^5", # "satooshi/php-coveralls": "^1.0" BuildRequires: php-composer(phpunit/phpunit) >= 4.5 +BuildRequires: php-composer(gecko-packages/gecko-php-unit) >= 2.0 # Autoloader BuildRequires: php-composer(fedora/autoloader) %endif @@ -89,7 +90,6 @@ Requires: php-pcre Requires: php-phar Requires: php-spl Requires: php-xml -Requires: php-tokenizer # Autoloader Requires: php-composer(fedora/autoloader) @@ -133,6 +133,7 @@ install -Dpm755 %{name} %{buildroot}%{_bindir}/%{name} mkdir vendor cat << 'EOF' | tee vendor/autoload.php <?php +require_once '%{php_home}/GeckoPackages/PHPUnit/autoload.php'; require_once '%{buildroot}%{php_home}/PhpCsFixer/autoload.php'; \Fedora\Autoloader\Autoload::addPsr4('PhpCsFixer\\Tests\\', dirname(__DIR__) . '/tests'); EOF @@ -170,8 +171,6 @@ rm -rf %{buildroot} %doc composer.json %doc *.md *.rst %{php_home}/PhpCsFixer -%exclude %{php_home}/PhpCsFixer/Tests -%exclude %{php_home}/PhpCsFixer/Resources %{_bindir}/%{name} |