Advertisement
david_david

android-tools.spec

Mar 28th, 2014
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.23 KB | None | 0 0
  1. Name: android-tools
  2. Version: 4.4.2_r2
  3. Release: %mkrel 1
  4. Summary: Android platform tools (adb, fastboot, mkbootimg)
  5. # The entire source code is ASL 2.0 except fastboot/ which is BSD
  6. License: ASL 2.0 and (ASL 2.0 and BSD)
  7. Group: Development/Tools
  8. Url: http://developer.android.com/guide/developing/tools/
  9. # git clone https://android.googlesource.com/platform/system/core.git && cd core
  10. # git archive android-%%{version} --prefix=core-%%{version}/ adb fastboot libzipfile libcutils libmincrypt libsparse mkbootimg include/cutils include/zipfile include/mincrypt | bzip2 > ../core-%%{version}.tar.bz2
  11. #
  12. # git clone https://android.googlesource.com/platform/system/extras.git && cd extras
  13. # git archive android-%%{version} --prefix=extras/ ext4_utils | bzip2 > ../extras-%%{version}.tar.bz2
  14. Source0: core-%{version}.tar.bz2
  15. Source1: extras-%{version}.tar.bz2
  16. Source2: core-Makefile
  17. Source3: adb-Makefile
  18. Source4: fastboot-Makefile
  19. Source5: mkbootimg-Makefile
  20. Source6: 51-android.rules
  21. Patch0: android-tools-4.4.2-ignore-selinux-android.h.patch
  22. Patch1: android-tools-4.4.2-ignore-android_filesystem_capability.h.patch
  23. BuildRequires: pkgconfig(libselinux)
  24. BuildRequires: pkgconfig(openssl)
  25. BuildRequires: pkgconfig(zlib)
  26. BuildRequires: udev
  27.  
  28. Provides: adb = %{version}-%{release}
  29. Provides: fastboot = %{version}-%{release}
  30. Provides: mkbootimg = %{version}-%{release}
  31.  
  32. Requires: udev
  33.  
  34. %description
  35. Android Debug Bridge (adb) is a command-line tool used to communicate
  36. with and control Android device over a USB link from a computer.
  37. Fastboot is a command line tool used to directly flash the filesystem
  38. in Android devices from a host via USB.
  39.  
  40. %prep
  41. %setup -q -b 1 -n extras
  42. %apply_patches
  43.  
  44. %setup -q -b 0 -n core-%{version}
  45. cp -pr %{SOURCE2} Makefile
  46. cp -pr %{SOURCE3} adb/Makefile
  47. cp -pr %{SOURCE4} fastboot/Makefile
  48. cp -pr %{SOURCE5} mkbootimg/Makefile
  49.  
  50. %build
  51. %make
  52.  
  53. %install
  54. %makeinstall_std
  55.  
  56. # for 51-android.rules
  57. mkdir -p %{buildroot}%{_udevrulesdir}
  58. install -m 0644 %{SOURCE6} %{buildroot}%{_udevrulesdir}/51-android.rules
  59.  
  60. %files
  61. %doc adb/OVERVIEW.TXT adb/SERVICES.TXT adb/NOTICE adb/protocol.txt
  62. %{_udevrulesdir}/51-android.rules
  63. #ASL2.0
  64. %{_bindir}/adb
  65. %{_bindir}/mkbootimg
  66. #ASL2.0 and BSD.
  67. %{_bindir}/fastboot
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement