Name: mkbootimg Version: 31.0.3 Release: 1%{?dist} Summary: mkbootimg from the Android SDK Platform Tools. License: ASL 2.0 URL: https://android.googlesource.com/platform/system/tools/mkbootimg Source0: %{name}-%{version}.tar.xz BuildRequires: python3-devel Requires: python3 %description Android SDK Platform Tool to manipulate Android boot images. See https://source.android.com/devices/bootloader/images and https://source.android.com/devices/bootloader/boot-image-header for more information on the boot image content and format. %global debug_package %{nil} %prep %autosetup %build %install mkdir -p %{buildroot}%{_bindir} %{__install} -m755 mkbootimg.py %{buildroot}%{_bindir}/mkbootimg %{__install} -m755 repack_bootimg.py %{buildroot}%{_bindir}/repack_bootimg %{__install} -m755 unpack_bootimg.py %{buildroot}%{_bindir}/unpack_bootimg %check %files %license %doc %{_bindir}/mkbootimg %{_bindir}/repack_bootimg %{_bindir}/unpack_bootimg %changelog * Thu Mar 24 2022 Eric Chanudet 31.0.3-1 - Initial packaging.