2 # - check release notes from here https://code.google.com/p/closure-compiler/wiki/Releases
4 # - build from source (get-source.sh fetches it)
6 %include /usr/lib/rpm/macros.java
7 Summary: Closure Compiler - JavaScript compressor
12 Group: Applications/WWW
13 # Source0Download: https://code.google.com/p/closure-compiler/downloads/list
14 Source0: http://closure-compiler.googlecode.com/files/compiler-%{version}.tar.gz
15 # Source0-md5: 105db24c4676e23f2495adfdea3159bc
17 Source2: get-source.sh
19 URL: http://closure-compiler.appspot.com/
20 BuildRequires: rpm-javaprov
21 BuildRequires: rpmbuild(macros) >= 1.300
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 The Closure Compiler is a tool for making JavaScript download and run
27 faster. It is a true compiler for JavaScript. Instead of compiling
28 from a source language to machine code, it compiles from JavaScript to
29 better JavaScript. It parses your JavaScript, analyzes it, removes
30 dead code and rewrites and minimizes what's left. It also checks
31 syntax, variable references, and types, and warns about common
39 rm -rf $RPM_BUILD_ROOT
40 install -d $RPM_BUILD_ROOT{%{_bindir},%{_javadir}}
41 install -p %{SOURCE1} $RPM_BUILD_ROOT%{_bindir}/%{name}
44 cp -p compiler.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar
45 ln -s %{name}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}.jar
48 rm -rf $RPM_BUILD_ROOT
51 %defattr(644,root,root,755)
53 %attr(755,root,root) %{_bindir}/%{name}