2 %include /usr/lib/rpm/macros.java
3 Summary: Google Core Libraries for Java
9 Source0: http://search.maven.org/remotecontent?filepath=com/google/guava/guava/%{version}/%{srcname}-%{version}.jar
10 # Source0-md5: 2c10bb2ca3ac8b55b0e77e54a7eb3744
11 URL: http://code.google.com/p/guava-libraries
13 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16 Guava is a suite of core and expanded libraries that include utility
17 classes, Google's collections, io classes, and much much more. This
18 project is a complete packaging of all the Guava libraries into a
19 single jar. Individual portions of Guava can be used by downloading
20 the appropriate module and its dependencies.
23 Summary: Javadoc for %{name}
27 API documentation for %{name}.
33 rm -rf $RPM_BUILD_ROOT
34 install -d $RPM_BUILD_ROOT%{_javadir}
35 cp -p %{SOURCE0} $RPM_BUILD_ROOT%{_javadir}/%{srcname}-%{version}.jar
36 ln -s %{srcname}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{srcname}.jar
39 rm -rf $RPM_BUILD_ROOT
42 %defattr(644,root,root,755)
43 %{_javadir}/guava-%{version}.jar