1 Summary: Closure Linter - a style checker for JavaScript
6 Group: Applications/WWW
7 Source0: https://closure-linter.googlecode.com/files/closure_linter-%{version}.tar.gz
8 # Source0-md5: fcf40eba81428d2d1e92cc97d2f66fde
9 URL: https://code.google.com/intl/en/closure/utilities/
10 BuildRequires: rpm-pythonprov
11 BuildRequires: rpmbuild(macros) >= 1.710
12 # distribute module for for pkg_resources
13 Requires: python-distribute
14 Requires: python-gflags
16 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19 The Closure Linter is a utility that checks JavaScript files for style
20 issues such as operator placement, missing semicolons, spacing, the
21 presence of JsDoc annotations, and more.
24 %setup -qn closure_linter-%{version}
30 rm -rf $RPM_BUILD_ROOT
36 rm -rf $RPM_BUILD_ROOT
39 %defattr(644,root,root,755)
40 # fixjsstyle - tries to fix errors automatically
41 %attr(755,root,root) %{_bindir}/fixjsstyle
42 # gjslint - runs the linter and checks for errors
43 %attr(755,root,root) %{_bindir}/gjslint
45 %{py_sitescriptdir}/closure_linter
46 # egg always installed, even in py 2.4
47 %{py_sitescriptdir}/closure_linter-%{version}-py*.egg-info