]> git.pld-linux.org Git - packages/closure-linter.git/blob - closure-linter.spec
c0c3949e962b8252f7deef5d47a61890f17f8299
[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.219
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 %{__python} setup.py build
28
29 %install
30 rm -rf $RPM_BUILD_ROOT
31 %{__python} setup.py install \
32         --skip-build \
33         --optimize=2 \
34         --root=$RPM_BUILD_ROOT
35
36 %py_postclean
37
38 %clean
39 rm -rf $RPM_BUILD_ROOT
40
41 %files
42 %defattr(644,root,root,755)
43 # fixjsstyle - tries to fix errors automatically
44 %attr(755,root,root) %{_bindir}/fixjsstyle
45 # gjslint - runs the linter and checks for errors
46 %attr(755,root,root) %{_bindir}/gjslint
47
48 %{py_sitescriptdir}/closure_linter
49 # egg always installed, even in py 2.4
50 %{py_sitescriptdir}/closure_linter-%{version}-py*.egg-info
This page took 0.045124 seconds and 2 git commands to generate.