]>
Commit | Line | Data |
---|---|---|
5d76763e ER |
1 | # TODO |
2 | # - cleanups, system pkgs, system libs, what to package afterall? | |
3 | %include /usr/lib/rpm/macros.java | |
4 | Summary: The Android SDK has all you need to create great apps to Android | |
5 | Name: android-sdk | |
4a44787e JR |
6 | Version: r10 |
7 | Release: 0.1 | |
5d76763e ER |
8 | License: Apache v2.0 |
9 | Group: Development/Languages/Java | |
10 | URL: http://developer.android.com/sdk/ | |
11 | Source0: http://dl.google.com/android/%{name}_%{version}-linux_x86.tgz | |
4a44787e | 12 | # NoSource0-md5: |
1d43432c | 13 | NoSource: 0 |
5d76763e ER |
14 | BuildRequires: jpackage-utils |
15 | BuildRequires: rpm-javaprov | |
16 | BuildRequires: rpmbuild(macros) >= 1.300 | |
17 | BuildRequires: unzip | |
18 | ExclusiveArch: %{ix86} %{x8664} | |
19 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
20 | ||
21 | %define _appdir %{_libdir}/%{name} | |
22 | ||
23 | %description | |
24 | The Android SDK has the tools, sample code, and docs you need to | |
25 | create great apps in Android Platform. | |
26 | ||
27 | %prep | |
28 | %setup -q -n %{name}-linux_x86 | |
29 | ||
30 | %ifnarch %{ix86} | |
31 | rm -rf tools/lib/x86 | |
32 | %endif | |
33 | %ifnarch %{x8664} | |
34 | rm -rf tools/lib/x86_64 | |
35 | %endif | |
36 | ||
1d43432c | 37 | |
5d76763e ER |
38 | %install |
39 | rm -rf $RPM_BUILD_ROOT | |
40 | install -d $RPM_BUILD_ROOT{%{_bindir},%{_appdir}} | |
41 | ||
42 | cp -a add-ons platforms tools $RPM_BUILD_ROOT%{_appdir} | |
43 | ||
1d43432c ER |
44 | # installer downloads files there |
45 | install -d $RPM_BUILD_ROOT%{_appdir}/temp | |
46 | ||
5d76763e ER |
47 | ln -s %{_appdir}/tools/ddms $RPM_BUILD_ROOT%{_bindir}/ddms |
48 | ln -s %{_appdir}/tools/android $RPM_BUILD_ROOT%{_bindir}/android | |
49 | ||
50 | %clean | |
51 | rm -rf $RPM_BUILD_ROOT | |
52 | ||
53 | %files | |
54 | %defattr(644,root,root,755) | |
55 | %doc SDK\ Readme.txt | |
5d76763e ER |
56 | %attr(755,root,root) %{_bindir}/ddms |
57 | %attr(755,root,root) %{_bindir}/android | |
58 | %dir %{_appdir} | |
59 | %dir %{_appdir}/add-ons | |
5d76763e ER |
60 | %dir %{_appdir}/tools |
61 | %dir %{_appdir}/tools/lib | |
62 | ||
1d43432c ER |
63 | # attrs like /tmp so user could add new files there which aren't system pkgs (yet) |
64 | %dir %attr(1777,root,root) %{_appdir}/platforms | |
65 | %dir %attr(1777,root,root) %{_appdir}/temp | |
66 | ||
5d76763e ER |
67 | %{_appdir}/tools/ant |
68 | %{_appdir}/tools/lib/*.jar | |
69 | %ifarch %{ix86} | |
70 | %dir %{_appdir}/tools/lib/x86 | |
71 | %{_appdir}/tools/lib/x86/swt.jar | |
72 | %endif | |
73 | %ifarch %{x8664} | |
74 | %dir %{_appdir}/tools/lib/x86_64 | |
75 | %{_appdir}/tools/lib/x86_64/swt.jar | |
76 | %endif | |
77 | %{_appdir}/tools/lib/android.el | |
78 | %{_appdir}/tools/lib/build.export.template | |
79 | %{_appdir}/tools/lib/build.template | |
80 | %{_appdir}/tools/lib/devices.xml | |
81 | %{_appdir}/tools/lib/hardware-properties.ini | |
82 | %{_appdir}/tools/lib/plugin.prop | |
83 | ||
84 | %{_appdir}/tools/NOTICE.txt | |
85 | %{_appdir}/tools/source.properties | |
86 | ||
5d76763e ER |
87 | %attr(755,root,root) %{_appdir}/tools/android |
88 | %attr(755,root,root) %{_appdir}/tools/apkbuilder | |
89 | %attr(755,root,root) %{_appdir}/tools/ddms | |
90 | %attr(755,root,root) %{_appdir}/tools/dmtracedump | |
91 | %attr(755,root,root) %{_appdir}/tools/draw9patch | |
92 | %attr(755,root,root) %{_appdir}/tools/emulator | |
93 | %attr(755,root,root) %{_appdir}/tools/etc1tool | |
94 | %attr(755,root,root) %{_appdir}/tools/hierarchyviewer | |
95 | %attr(755,root,root) %{_appdir}/tools/hprof-conv | |
96 | %attr(755,root,root) %{_appdir}/tools/layoutopt | |
97 | %attr(755,root,root) %{_appdir}/tools/mksdcard | |
98 | %attr(755,root,root) %{_appdir}/tools/sqlite3 | |
99 | %attr(755,root,root) %{_appdir}/tools/traceview | |
100 | %attr(755,root,root) %{_appdir}/tools/zipalign |