Browse files

bug 719660 r=jhford create new sdk rpm that includes android sdk 14 a…

…nd 15
  • Loading branch information...
1 parent 04b3f66 commit de61c4e9465b332f84fd524a648b70b1a790d8c5 Mike Taylor committed Jan 30, 2012
Showing with 54 additions and 0 deletions.
  1. +54 −0 android-sdk/centos5-i686/android-sdk15.spec
View
54 android-sdk/centos5-i686/android-sdk15.spec
@@ -0,0 +1,54 @@
+%define debug_package %{nil}
+%define upstream_name android-sdk
+%define upstream_ver r15
+%define install_dir_name %{upstream_name}-%{upstream_ver}
+Name: android-sdk15
+Summary: An interpreted, interactive, object-oriented programming language.
+Version: %{upstream_ver}
+Release: 0moz1
+License: ???
+Group: Java
+# This isn't the original source package but rather a Mozilla built tarball.
+#
+# The original source package comes from Google and has to be un-tar'd and
+# a GUI tool run to then install the proper SDK platforms:
+# mkdir android-sdk-linux_x86
+# cd android-sdk-linux_x86
+# cp /path/to/android-sdk_previous/* .
+# tools/android update sdk --no-ui
+# rm -rf docs samples
+# cd platforms
+# rm -rf android-3 android-4 android-7 android-10 android-11
+# cd ../..
+# tar czf android-sdk-linux_x86.tar.bz2 android-sdk-linux_x86
+#
+# Currently that is 8, 12, 13 as trying to install all of them yields a
+# 1.7G tarball
+#
+Source0: %{upstream_name}_%{upstream_ver}-linux_x86.tar.bz2
+BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
+AutoReqProv: no
+
+%define __os_install_post %{nil}
+%define __strip /bin/true
+
+%description
+%{name}
+
+%prep
+%setup -q -n %{upstream_name}-linux_x86
+
+%build
+chmod -R a+rX *
+
+%install
+rm -fr $RPM_BUILD_ROOT
+mkdir -p $RPM_BUILD_ROOT/tools/%{install_dir_name}
+cp -a * $RPM_BUILD_ROOT/tools/%{install_dir_name}
+
+%clean
+rm -fr $RPM_BUILD_ROOT
+
+%files
+%defattr(-, root, root)
+/tools/%{install_dir_name}

0 comments on commit de61c4e

Please sign in to comment.