[packages/php-cs-fixer] new, version 0.3.0 post version

glen glen at pld-linux.org
Tue Dec 3 00:17:42 CET 2013


commit 1c08b1ff1afe58c1a02119678ae27a80ecebc4cd
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Tue Dec 3 01:13:28 2013 +0200

    new, version 0.3.0 post version

 php-cs-fixer.spec | 46 ++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 46 insertions(+)
---
diff --git a/php-cs-fixer.spec b/php-cs-fixer.spec
new file mode 100644
index 0000000..82b322a
--- /dev/null
+++ b/php-cs-fixer.spec
@@ -0,0 +1,46 @@
+# TODO
+# - unbundle phar, use system libs, etc
+%define		php_min_version 5.3.3
+%include	/usr/lib/rpm/macros.php
+Summary:	PHP Coding Standards Fixer
+Name:		php-cs-fixer
+Version:	0.3.0
+Release:	0.4
+License:	MIT
+Group:		Development/Languages/PHP
+Source0:	http://cs.sensiolabs.org/get/%{name}.phar
+# Source0-md5:	5cefff68fe01e635086de6b8b2dd35f7
+URL:		http://cs.sensiolabs.org/
+Requires:	/usr/bin/php
+Requires:	php(core) >= %{php_min_version}
+Requires:	php(phar)
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+The PHP Coding Standards Fixer tool fixes most issues in your code
+when you want to follow the PHP coding standards as defined in the
+PSR-1 and PSR-2 documents.
+
+If you are already using PHP_CodeSniffer to identify coding standards
+problems in your code, you know that fixing them by hand is tedious,
+especially on large projects. This tool does the job for you.
+
+%prep
+%setup -qcT
+cp -p %{SOURCE0} .
+
+# breaks signature:
+#%{__sed} -i -e '1 s,#!.*php,#!/usr/bin/php,' php-cs-fixer.phar
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_bindir}
+install -p php-cs-fixer.phar $RPM_BUILD_ROOT%{_bindir}/%{name}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/%{name}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/php-cs-fixer.git/commitdiff/1c08b1ff1afe58c1a02119678ae27a80ecebc4cd



More information about the pld-cvs-commit mailing list