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