Name:       fastboot
Summary:    Flasher for Android and Tizen devices
Version:    0.7
Release:    1
Group:      Development/Tools/Other
License:    BSD
URL:        http://developer.android.com/guide/developing/tools/
Source0:    %{name}_%{version}.tar.gz

BuildRequires: zlib-devel

%description
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.

%prep
%setup -q -n %{name}-%{version}

%build
make %{?_smp_mflags} HOST_OS=linux

%install
rm -rf %{buildroot}
install -d -m 0755 %{buildroot}%{_bindir}
install -m 0755 usbtest %{buildroot}%{_bindir}
install -m 0755 %{name} %{buildroot}%{_bindir}

%files
%defattr(-,root,root,-)
%doc README
%{_bindir}/%{name}
%{_bindir}/usbtest

%changelog

