Blame abootimg.spec

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