]>
Commit | Line | Data |
---|---|---|
65a15527 ER |
1 | # TODO |
2 | # - build from source | |
65a15527 ER |
3 | |
4 | %include /usr/lib/rpm/macros.java | |
5 | Summary: Closure Compiler - JavaScript compressor | |
6 | Name: closure-compiler | |
14ce12a9 | 7 | Version: 20110811 |
baab7897 | 8 | Release: 1 |
65a15527 ER |
9 | License: Apache v2.0 |
10 | Group: Applications/WWW | |
11 | Source0: http://closure-compiler.googlecode.com/files/compiler-%{version}.tar.gz | |
14ce12a9 | 12 | # Source0-md5: 815d453b7c51657241d11307231a4037 |
8055adf6 | 13 | Source1: %{name}.sh |
65a15527 ER |
14 | URL: http://closure-compiler.appspot.com/ |
15 | BuildRequires: rpm-javaprov | |
16 | BuildRequires: rpmbuild(macros) >= 1.300 | |
17 | BuildArch: noarch | |
18 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
19 | ||
20 | %description | |
baab7897 ER |
21 | The Closure Compiler is a tool for making JavaScript download and run |
22 | faster. It is a true compiler for JavaScript. Instead of compiling | |
23 | from a source language to machine code, it compiles from JavaScript to | |
24 | better JavaScript. It parses your JavaScript, analyzes it, removes | |
25 | dead code and rewrites and minimizes what's left. It also checks | |
26 | syntax, variable references, and types, and warns about common | |
27 | JavaScript pitfalls. | |
65a15527 ER |
28 | |
29 | %prep | |
30 | %setup -qc | |
31 | ||
65a15527 ER |
32 | %install |
33 | rm -rf $RPM_BUILD_ROOT | |
34 | install -d $RPM_BUILD_ROOT{%{_bindir},%{_javadir}} | |
8055adf6 | 35 | install -p %{SOURCE1} $RPM_BUILD_ROOT%{_bindir}/%{name} |
65a15527 ER |
36 | |
37 | # jars | |
abb53a63 | 38 | cp -p compiler.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar |
65a15527 ER |
39 | ln -s %{name}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}.jar |
40 | ||
41 | %clean | |
42 | rm -rf $RPM_BUILD_ROOT | |
43 | ||
44 | %files | |
45 | %defattr(644,root,root,755) | |
46 | %doc README | |
47 | %attr(755,root,root) %{_bindir}/%{name} | |
48 | %{_javadir}/*.jar |