packages: closure-linter/closure-linter.spec (NEW) - initial
glen
glen at pld-linux.org
Wed Jul 27 22:12:46 CEST 2011
Author: glen Date: Wed Jul 27 20:12:46 2011 GMT
Module: packages Tag: HEAD
---- Log message:
- initial
---- Files affected:
packages/closure-linter:
closure-linter.spec (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: packages/closure-linter/closure-linter.spec
diff -u /dev/null packages/closure-linter/closure-linter.spec:1.1
--- /dev/null Wed Jul 27 22:12:46 2011
+++ packages/closure-linter/closure-linter.spec Wed Jul 27 22:12:41 2011
@@ -0,0 +1,59 @@
+# $Revision$, $Date$
+Summary: Closure Linter - a style checker for JavaScript
+Name: closure-linter
+Version: 2.3
+Release: 0.1
+License: Apache v2.0
+Group: Applications/WWW
+Source0: https://closure-linter.googlecode.com/files/closure_linter-%{version}.tar.gz
+# Source0-md5: fcf40eba81428d2d1e92cc97d2f66fde
+URL: https://code.google.com/intl/en/closure/utilities/
+BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 1.219
+# distribute module for for pkg_resources
+Requires: python-distribute
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+The Closure Linter is a utility that checks JavaScript files for style
+issues such as operator placement, missing semicolons, spacing, the
+presence of JsDoc annotations, and more.
+
+%prep
+%setup -qn closure_linter-%{version}
+
+%build
+%{__python} setup.py build
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%{__python} setup.py install \
+ --skip-build \
+ --optimize=2 \
+ --root=$RPM_BUILD_ROOT
+
+%py_postclean
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+# fixjsstyle - tries to fix errors automatically
+%attr(755,root,root) %{_bindir}/fixjsstyle
+# gjslint - runs the linter and checks for errors
+%attr(755,root,root) %{_bindir}/gjslint
+
+%{py_sitescriptdir}/closure_linter
+# egg always installed, even in py 2.4
+%{py_sitescriptdir}/closure_linter-%{version}-py*.egg-info
+
+%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1 2011/07/27 20:12:41 glen
+- initial
================================================================
More information about the pld-cvs-commit
mailing list