]> git.pld-linux.org Git - packages/closure-linter.git/commitdiff
- initial
authorElan Ruusamäe <glen@pld-linux.org>
Wed, 27 Jul 2011 20:12:41 +0000 (20:12 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    closure-linter.spec -> 1.1

closure-linter.spec [new file with mode: 0644]

diff --git a/closure-linter.spec b/closure-linter.spec
new file mode 100644 (file)
index 0000000..610b869
--- /dev/null
@@ -0,0 +1,49 @@
+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
This page took 0.128206 seconds and 4 git commands to generate.