2 # - unbundle phar, use system libs, etc
3 %define php_min_version 5.3.3
4 %include /usr/lib/rpm/macros.php
5 Summary: PHP Coding Standards Fixer
10 Group: Development/Languages/PHP
11 Source0: http://cs.sensiolabs.org/get/%{name}.phar
12 # Source0-md5: 5cefff68fe01e635086de6b8b2dd35f7
13 URL: http://cs.sensiolabs.org/
14 Requires: /usr/bin/php
15 Requires: php(core) >= %{php_min_version}
18 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21 The PHP Coding Standards Fixer tool fixes most issues in your code
22 when you want to follow the PHP coding standards as defined in the
23 PSR-1 and PSR-2 documents.
25 If you are already using PHP_CodeSniffer to identify coding standards
26 problems in your code, you know that fixing them by hand is tedious,
27 especially on large projects. This tool does the job for you.
34 #%{__sed} -i -e '1 s,#!.*php,#!/usr/bin/php,' php-cs-fixer.phar
37 rm -rf $RPM_BUILD_ROOT
38 install -d $RPM_BUILD_ROOT%{_bindir}
39 install -p php-cs-fixer.phar $RPM_BUILD_ROOT%{_bindir}/%{name}
42 rm -rf $RPM_BUILD_ROOT
45 %defattr(644,root,root,755)
46 %attr(755,root,root) %{_bindir}/%{name}