Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Name: android-tools
- Version: 4.4.2_r2
- Release: %mkrel 1
- Summary: Android platform tools (adb, fastboot, mkbootimg)
- # The entire source code is ASL 2.0 except fastboot/ which is BSD
- License: ASL 2.0 and (ASL 2.0 and BSD)
- Group: Development/Tools
- Url: http://developer.android.com/guide/developing/tools/
- # git clone https://android.googlesource.com/platform/system/core.git && cd core
- # 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
- #
- # git clone https://android.googlesource.com/platform/system/extras.git && cd extras
- # git archive android-%%{version} --prefix=extras/ ext4_utils | bzip2 > ../extras-%%{version}.tar.bz2
- Source0: core-%{version}.tar.bz2
- Source1: extras-%{version}.tar.bz2
- Source2: core-Makefile
- Source3: adb-Makefile
- Source4: fastboot-Makefile
- Source5: mkbootimg-Makefile
- Source6: 51-android.rules
- Patch0: android-tools-4.4.2-ignore-selinux-android.h.patch
- Patch1: android-tools-4.4.2-ignore-android_filesystem_capability.h.patch
- BuildRequires: pkgconfig(libselinux)
- BuildRequires: pkgconfig(openssl)
- BuildRequires: pkgconfig(zlib)
- BuildRequires: udev
- Provides: adb = %{version}-%{release}
- Provides: fastboot = %{version}-%{release}
- Provides: mkbootimg = %{version}-%{release}
- Requires: udev
- %description
- Android Debug Bridge (adb) is a command-line tool used to communicate
- with and control Android device over a USB link from a computer.
- Fastboot is a command line tool used to directly flash the filesystem
- in Android devices from a host via USB.
- %prep
- %setup -q -b 1 -n extras
- %apply_patches
- %setup -q -b 0 -n core-%{version}
- cp -pr %{SOURCE2} Makefile
- cp -pr %{SOURCE3} adb/Makefile
- cp -pr %{SOURCE4} fastboot/Makefile
- cp -pr %{SOURCE5} mkbootimg/Makefile
- %build
- %make
- %install
- %makeinstall_std
- # for 51-android.rules
- mkdir -p %{buildroot}%{_udevrulesdir}
- install -m 0644 %{SOURCE6} %{buildroot}%{_udevrulesdir}/51-android.rules
- %files
- %doc adb/OVERVIEW.TXT adb/SERVICES.TXT adb/NOTICE adb/protocol.txt
- %{_udevrulesdir}/51-android.rules
- #ASL2.0
- %{_bindir}/adb
- %{_bindir}/mkbootimg
- #ASL2.0 and BSD.
- %{_bindir}/fastboot
Advertisement
Add Comment
Please, Sign In to add comment