packages: eclipse-plugin-adt/eclipse-plugin-adt.spec - unpack jars, java de...
glen
glen at pld-linux.org
Sun Nov 14 21:12:41 CET 2010
Author: glen Date: Sun Nov 14 20:12:41 2010 GMT
Module: packages Tag: HEAD
---- Log message:
- unpack jars, java deps, update todo
---- Files affected:
packages/eclipse-plugin-adt:
eclipse-plugin-adt.spec (1.2 -> 1.3)
---- Diffs:
================================================================
Index: packages/eclipse-plugin-adt/eclipse-plugin-adt.spec
diff -u packages/eclipse-plugin-adt/eclipse-plugin-adt.spec:1.2 packages/eclipse-plugin-adt/eclipse-plugin-adt.spec:1.3
--- packages/eclipse-plugin-adt/eclipse-plugin-adt.spec:1.2 Sun Nov 14 21:07:26 2010
+++ packages/eclipse-plugin-adt/eclipse-plugin-adt.spec Sun Nov 14 21:12:36 2010
@@ -1,16 +1,19 @@
# $Revision$, $Date$
# TODO
-# - deps: requires plug-in "org.eclipse.wst.sse.core".
-# - test package, how to (where to?) package web and xml and index.html
+# - how to (where to?) package web and xml and index.html
+%include /usr/lib/rpm/macros.java
Summary: ADT Plugin for Eclipse
Name: eclipse-plugin-adt
Version: 0.9.9
-Release: 0.1
+Release: 0.4
License: EPL v1.0
Group: Libraries/Java
Source0: http://dl.google.com/android/ADT-%{version}.zip
# Source0-md5: 7deff0c9b25940a74cea7a0815a3bc36
URL: http://developer.android.com/sdk/eclipse-adt.html
+BuildRequires: jpackage-utils
+BuildRequires: rpm-javaprov
+BuildRequires: rpmbuild(macros) >= 1.300
BuildRequires: unzip
Requires: eclipse >= 3.3
Requires: eclipse-gef
@@ -28,6 +31,12 @@
%prep
%setup -qc
+find -name '*.jar' | while read jar; do
+ dir=${jar%.jar}
+ install -d $dir
+ %{__unzip} -qq $jar -d $dir
+ rm $jar
+done
%install
rm -rf $RPM_BUILD_ROOT
@@ -40,8 +49,8 @@
%files
%defattr(644,root,root,755)
-%{eclipsedir}/features/com.android.ide.eclipse.*.jar
-%{eclipsedir}/plugins/com.android.ide.eclipse.*.jar
+%{eclipsedir}/features/com.android.ide.eclipse.*
+%{eclipsedir}/plugins/com.android.ide.eclipse.*
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
@@ -49,6 +58,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.3 2010/11/14 20:12:36 glen
+- unpack jars, java deps, update todo
+
Revision 1.2 2010/11/14 20:07:26 glen
- some deps
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/eclipse-plugin-adt/eclipse-plugin-adt.spec?r1=1.2&r2=1.3&f=u
More information about the pld-cvs-commit
mailing list