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