]>
Commit | Line | Data |
---|---|---|
7aec4558 | 1 | # TODO |
65520ec5 | 2 | # - how to (where to?) package web and xml and index.html |
7aec4558 | 3 | Summary: ADT Plugin for Eclipse |
fae5a1b5 | 4 | Name: eclipse-adt |
1c13eb17 | 5 | Version: 22.0.5 |
bc84e1e4 | 6 | Release: 1 |
7aec4558 | 7 | License: EPL v1.0 |
94179b13 | 8 | Group: Libraries/Java |
fae5a1b5 | 9 | Obsoletes: eclipse-plugin-adt |
7aec4558 | 10 | Source0: http://dl.google.com/android/ADT-%{version}.zip |
1c13eb17 | 11 | # Source0-md5: 1097fccf32063e3638a9d27aa0f295ca |
7aec4558 | 12 | URL: http://developer.android.com/sdk/eclipse-adt.html |
65520ec5 ER |
13 | BuildRequires: jpackage-utils |
14 | BuildRequires: rpm-javaprov | |
15 | BuildRequires: rpmbuild(macros) >= 1.300 | |
7aec4558 | 16 | BuildRequires: unzip |
1c13eb17 | 17 | Requires: eclipse >= 3.6.2 |
94179b13 ER |
18 | Requires: eclipse-gef |
19 | Requires: eclipse-jdt | |
20 | Requires: eclipse-plugin-webtools | |
7aec4558 ER |
21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
22 | ||
9ca2be50 | 23 | %define eclipsedir %{_libdir}/eclipse/dropins/adt |
7aec4558 ER |
24 | |
25 | %description | |
26 | Android Development Tools (ADT) is a plugin for the Eclipse IDE that | |
27 | is designed to give you a powerful, integrated environment in which to | |
28 | build Android applications. | |
29 | ||
30 | %prep | |
94179b13 | 31 | %setup -qc |
65520ec5 ER |
32 | find -name '*.jar' | while read jar; do |
33 | dir=${jar%.jar} | |
34 | install -d $dir | |
35 | %{__unzip} -qq $jar -d $dir | |
36 | rm $jar | |
37 | done | |
7aec4558 ER |
38 | |
39 | %install | |
40 | rm -rf $RPM_BUILD_ROOT | |
41 | install -d $RPM_BUILD_ROOT%{eclipsedir}/{features,plugins} | |
9ca2be50 | 42 | |
7aec4558 ER |
43 | cp -a features/* $RPM_BUILD_ROOT%{eclipsedir}/features |
44 | cp -a plugins/* $RPM_BUILD_ROOT%{eclipsedir}/plugins | |
45 | ||
46 | %clean | |
47 | rm -rf $RPM_BUILD_ROOT | |
48 | ||
49 | %files | |
50 | %defattr(644,root,root,755) | |
02648697 JR |
51 | %dir %{eclipsedir} |
52 | %dir %{eclipsedir}/features | |
53 | %dir %{eclipsedir}/plugins | |
65520ec5 ER |
54 | %{eclipsedir}/features/com.android.ide.eclipse.* |
55 | %{eclipsedir}/plugins/com.android.ide.eclipse.* | |
c42b34a4 | 56 | %{eclipsedir}/plugins/overlay.com.android.ide.eclipse.adt.* |