# # spec file for package abootimg # # Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via https://bugs.opensuse.org/ # Name: abootimg Version: 0.6 Release: 0 Summary: Android boot image manipulator License: Apache-2.0 AND GPL-2.0-or-later Group: System/Boot URL: https://github.com/ggrandou/abootimg Source: %{name}.tar.bz2 BuildRequires: pkgconfig BuildRequires: pkgconfig(blkid) %description Android boot image manipulator. It can create/update/unpack boot.img - boot file used by Android OS. %prep %setup -q -n %{name} %build # First make clean as a binary already exists in the tarball %make_build clean %make_build CFLAGS="%{optflags}" %install install -D -m 0755 abootimg %{buildroot}/%{_bindir}/abootimg install -D -m 0755 abootimg-unpack-initrd %{buildroot}/%{_bindir}/abootimg-unpack-initrd install -D -m 0755 abootimg-pack-initrd %{buildroot}/%{_bindir}/abootimg-pack-initrd install -D -m 0644 debian/abootimg.1 %{buildroot}/%{_mandir}/man1/abootimg.1 %files %{_bindir}/abootimg %{_bindir}/abootimg-pack-initrd %{_bindir}/abootimg-unpack-initrd %{_mandir}/man1/abootimg.1%{?ext_man} %changelog