]>
Commit | Line | Data |
---|---|---|
8b93e0d3 ER |
1 | Summary: Closure Linter - a style checker for JavaScript |
2 | Name: closure-linter | |
3 | Version: 2.3 | |
e0faf96f | 4 | Release: 1 |
8b93e0d3 ER |
5 | License: Apache v2.0 |
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 | |
6911ed89 | 11 | BuildRequires: rpmbuild(macros) >= 1.710 |
8b93e0d3 ER |
12 | # distribute module for for pkg_resources |
13 | Requires: python-distribute | |
e0faf96f | 14 | Requires: python-gflags |
8b93e0d3 ER |
15 | BuildArch: noarch |
16 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
17 | ||
18 | %description | |
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. | |
22 | ||
23 | %prep | |
24 | %setup -qn closure_linter-%{version} | |
25 | ||
26 | %build | |
dd249d0c | 27 | %py_build |
8b93e0d3 ER |
28 | |
29 | %install | |
30 | rm -rf $RPM_BUILD_ROOT | |
dd249d0c | 31 | %py_install |
8b93e0d3 ER |
32 | |
33 | %py_postclean | |
34 | ||
35 | %clean | |
36 | rm -rf $RPM_BUILD_ROOT | |
37 | ||
38 | %files | |
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 | |
44 | ||
45 | %{py_sitescriptdir}/closure_linter | |
46 | # egg always installed, even in py 2.4 | |
47 | %{py_sitescriptdir}/closure_linter-%{version}-py*.egg-info |