3 # - NOTE: build-data.properties is included twice in .jar
5 %include /usr/lib/rpm/macros.java
6 Summary: Closure Compiler - JavaScript compressor
11 Group: Applications/WWW
12 Source0: http://closure-compiler.googlecode.com/files/compiler-%{version}.tar.gz
13 # Source0-md5: 71bb4f8975ffc81fd0b9a82e18318a49
15 URL: http://closure-compiler.appspot.com/
16 BuildRequires: rpm-javaprov
17 BuildRequires: rpmbuild(macros) >= 1.300
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 Closure Compiler is a JavaScript optimizing compiler. It parses your
23 JavaScript, analyzes it, removes dead code and rewrites and minimizes
24 what's left. It also checks syntax, variable references, and types,
25 and warns about common JavaScript pitfalls. It is used in many of
26 Google's JavaScript apps, including Gmail, Google Web Search, Google
27 Maps, and Google Docs.
33 rm -rf $RPM_BUILD_ROOT
34 install -d $RPM_BUILD_ROOT{%{_bindir},%{_javadir}}
35 install -p %{SOURCE1} $RPM_BUILD_ROOT%{_bindir}/%{name}
38 cp -a compiler.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar
39 ln -s %{name}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}.jar
42 rm -rf $RPM_BUILD_ROOT
45 %defattr(644,root,root,755)
47 %attr(755,root,root) %{_bindir}/%{name}