]> git.pld-linux.org Git - packages/closure-linter.git/blob - closure-linter.spec
BR: rpmbuild(macros) >= 1.710
[packages/closure-linter.git] / closure-linter.spec
1 Summary:        Closure Linter - a style checker for JavaScript
2 Name:           closure-linter
3 Version:        2.3
4 Release:        1
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
11 BuildRequires:  rpmbuild(macros) >= 1.710
12 # distribute module for for pkg_resources
13 Requires:       python-distribute
14 Requires:       python-gflags
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
27 %py_build
28
29 %install
30 rm -rf $RPM_BUILD_ROOT
31 %py_install
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
This page took 0.103886 seconds and 3 git commands to generate.