2024-01-05 20:24:01 +01:00
|
|
|
Name: android-tools
|
2024-01-05 20:24:02 +01:00
|
|
|
Version: 5.1.1_r37
|
2024-01-05 20:24:01 +01:00
|
|
|
Release: 1mamba
|
2024-01-05 20:24:01 +01:00
|
|
|
Summary: Android platform tools
|
|
|
|
Group: System/Tools
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
|
|
URL: http://source.android.com
|
2024-01-05 20:24:01 +01:00
|
|
|
Source: https://android.googlesource.com/platform/system/core.git/android-%{version}/core-%{version}.tar.bz2
|
|
|
|
Source6: https://android.googlesource.com/platform/system/extras.git/android-%{version}/extras-%{version}.tar.bz2
|
|
|
|
# Following files come from: http://pkgs.fedoraproject.org/cgit/android-tools.git/plain/
|
|
|
|
Source1: %{name}-rules
|
|
|
|
Source2: %{name}-Makefile-core
|
2024-01-05 20:24:01 +01:00
|
|
|
Source3: %{name}-Makefile-adb
|
|
|
|
Source4: %{name}-Makefile-fastboot
|
2024-01-05 20:24:01 +01:00
|
|
|
Source5: android-tools-adb.service
|
|
|
|
#Source5: %{name}-autoupdate
|
|
|
|
Patch0: android-tools-5.0.2_r1-remove-selinux-header.patch
|
2024-01-05 20:24:01 +01:00
|
|
|
License: Apache License 2.0, BSD
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
BuildRequires: glibc-devel
|
2024-01-05 20:24:01 +01:00
|
|
|
BuildRequires: libopenssl-devel
|
2024-01-05 20:24:01 +01:00
|
|
|
BuildRequires: libselinux-devel
|
2024-01-05 20:24:01 +01:00
|
|
|
BuildRequires: libz-devel
|
|
|
|
## AUTOBUILDREQ-END
|
2024-01-05 20:24:01 +01:00
|
|
|
BuildRequires: libf2fs-devel
|
2024-01-05 20:24:01 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
|
|
|
|
%description
|
|
|
|
Android platform tools ported to GNU/Linux for Android based devices management.
|
|
|
|
|
|
|
|
The Android Debug Bridge (ADB) is used to:
|
|
|
|
* keep track of all Android devices and emulators instances connected to or running on a given host developer machine
|
|
|
|
* implement various control commands (e.g. "adb shell", "adb pull", etc.) for the benefit of clients (command-line users, or helper programs like DDMS). These commands are what is called a 'service' in ADB.
|
|
|
|
|
|
|
|
Fastboot is used to manipulate the flash partitions of the Android phone.
|
|
|
|
It can also boot the phone using a kernel image or root filesystem image which reside on the host machine rather than in the phone flash.
|
|
|
|
In order to use it, it is important to understand the flash partition layout for the phone.
|
|
|
|
The fastboot program works in conjunction with firmware on the phone to read and write the flash partitions.
|
|
|
|
It needs the same USB device setup between the host and the target phone as adb.
|
|
|
|
|
|
|
|
%package -n mkbootimg
|
|
|
|
Summary: A tool for creating kernel bootable images for the Android boot loader
|
|
|
|
Group: System/Kernel and Hardware
|
|
|
|
|
|
|
|
%description -n mkbootimg
|
|
|
|
mkbootims is a command line tool useful for creating kernel bootable images for the Android boot loader.
|
|
|
|
This package also includes mkbootfs.
|
|
|
|
|
|
|
|
%prep
|
2024-01-05 20:24:01 +01:00
|
|
|
%setup -q -c -a6
|
|
|
|
#-a7
|
|
|
|
mv core-%{version} core
|
|
|
|
mv extras-%{version} extras
|
|
|
|
|
|
|
|
cd extras
|
|
|
|
%patch0 -p1
|
|
|
|
|
|
|
|
cd ../core
|
|
|
|
#mv android-tools-external-libselinux-%{version} libselinux
|
2024-01-05 20:24:01 +01:00
|
|
|
cp -p %{S:2} Makefile
|
|
|
|
cp -p %{S:3} adb/Makefile
|
|
|
|
cp -p %{S:4} fastboot/Makefile
|
|
|
|
|
|
|
|
%build
|
2024-01-05 20:24:01 +01:00
|
|
|
cd core
|
2024-01-05 20:24:01 +01:00
|
|
|
%make -j1 TOOLCHAIN=%{_target_platform}-
|
2024-01-05 20:24:01 +01:00
|
|
|
|
|
|
|
(cd libmincrypt
|
|
|
|
%{_host}-gcc -c *.c -I../include
|
|
|
|
%{_host}-ar rcs libmincrypt.a *.o)
|
|
|
|
|
|
|
|
(cd mkbootimg
|
|
|
|
%{_host}-gcc mkbootimg.c -o mkbootimg -I../include ../libmincrypt/libmincrypt.a)
|
|
|
|
|
|
|
|
(cd cpio
|
|
|
|
%{_host}-gcc mkbootfs.c -o mkbootfs -I../include)
|
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
2024-01-05 20:24:01 +01:00
|
|
|
cd core
|
|
|
|
install -D -m0755 adb/adb \
|
|
|
|
%{buildroot}%{_bindir}/adb
|
|
|
|
install -D -m0755 fastboot/fastboot \
|
|
|
|
%{buildroot}%{_bindir}/fastboot
|
2024-01-05 20:24:01 +01:00
|
|
|
install -D -m0755 mkbootimg/mkbootimg \
|
|
|
|
%{buildroot}%{_bindir}/mkbootimg
|
|
|
|
install -D -m0755 cpio/mkbootfs \
|
|
|
|
%{buildroot}%{_bindir}/mkbootfs
|
|
|
|
|
2024-01-05 20:24:01 +01:00
|
|
|
install -D -m0644 %{S:1} \
|
2024-01-05 20:24:01 +01:00
|
|
|
%{buildroot}/lib/udev/rules.d/51-android.rules
|
|
|
|
|
|
|
|
install -D -m0644 %{S:5} \
|
|
|
|
%{buildroot}%{_unitdir}/adb.service
|
2024-01-05 20:24:01 +01:00
|
|
|
|
2024-01-05 20:24:01 +01:00
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
2024-01-05 20:24:01 +01:00
|
|
|
%post
|
|
|
|
%systemd_post adb.service
|
|
|
|
:
|
|
|
|
|
|
|
|
%preun
|
|
|
|
%systemd_preun adb.service
|
|
|
|
:
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%systemd_postun_with_restart adb.service
|
|
|
|
:
|
|
|
|
|
2024-01-05 20:24:01 +01:00
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_bindir}/adb
|
|
|
|
%{_bindir}/fastboot
|
2024-01-05 20:24:01 +01:00
|
|
|
/lib/udev/rules.d/51-android.rules
|
|
|
|
%{_unitdir}/adb.service
|
2024-01-05 20:24:01 +01:00
|
|
|
%doc core/adb/*.TXT core/adb/NOTICE core/adb/*.txt
|
2024-01-05 20:24:01 +01:00
|
|
|
|
|
|
|
%files -n mkbootimg
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_bindir}/mkbootimg
|
|
|
|
%{_bindir}/mkbootfs
|
|
|
|
|
|
|
|
%changelog
|
2024-01-05 20:24:02 +01:00
|
|
|
* Mon Jul 04 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 5.1.1_r37-1mamba
|
|
|
|
- update to 5.1.1_r37
|
|
|
|
- add permissions 0666 in udev rules
|
|
|
|
|
2024-01-05 20:24:02 +01:00
|
|
|
* Fri Jun 26 2015 Automatic Build System <autodist@mambasoft.it> 5.1.1_r5-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 20:24:02 +01:00
|
|
|
* Thu Jun 18 2015 Automatic Build System <autodist@mambasoft.it> 5.1.1_r4-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 20:24:01 +01:00
|
|
|
* Thu May 14 2015 Automatic Build System <autodist@mambasoft.it> 5.1.1_r2-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 20:24:01 +01:00
|
|
|
* Thu Apr 09 2015 Automatic Build System <autodist@mambasoft.it> 5.1.0_r3-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 20:24:01 +01:00
|
|
|
* Tue Jan 20 2015 Automatic Build System <autodist@mambasoft.it> 5.0.2_r1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 20:24:01 +01:00
|
|
|
* Wed Aug 27 2014 Automatic Build System <autodist@mambasoft.it> 4.4.4_r2.0.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 20:24:01 +01:00
|
|
|
* Sat Jul 12 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 4.4.4_r1-1mamba
|
|
|
|
- update to 4.4.4_r1
|
|
|
|
|
2024-01-05 20:24:01 +01:00
|
|
|
* Fri Jun 01 2012 Stefano Cotta Ramusino <stefano.cotta@openmamba.org> 4.0.3_r1-3mamba
|
|
|
|
- fixed android udev rules
|
|
|
|
|
|
|
|
* Wed May 30 2012 Stefano Cotta Ramusino <stefano.cotta@openmamba.org> 4.0.3_r1-2mamba
|
|
|
|
- added main package
|
|
|
|
- fixed license
|
|
|
|
|
|
|
|
* Tue Feb 21 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 4.0.3_r1-1mamba
|
|
|
|
- package created by autospec
|