+# NOTE:
+# - check release notes from here https://code.google.com/p/closure-compiler/wiki/Releases
# TODO
# - build from source (get-source.sh fetches it)
%include /usr/lib/rpm/macros.java
Summary: Closure Compiler - JavaScript compressor
Name: closure-compiler
-Version: 20111114
+Version: 20130722
Release: 1
License: Apache v2.0
Group: Applications/WWW
# Source0Download: https://code.google.com/p/closure-compiler/downloads/list
Source0: http://closure-compiler.googlecode.com/files/compiler-%{version}.tar.gz
-# Source0-md5: fb176781e26b0de088777db9f88dcc05
+# Source0-md5: 8d8f3f3d429742ca7fd7bfa9e164d8b5
Source1: %{name}.sh
Source2: get-source.sh
+Source4: Changes
URL: http://closure-compiler.appspot.com/
BuildRequires: rpm-javaprov
BuildRequires: rpmbuild(macros) >= 1.300
%prep
%setup -qc
+cp -p %{SOURCE4} .
%install
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%doc README
+%doc README Changes
%attr(755,root,root) %{_bindir}/%{name}
%{_javadir}/*.jar