vboot-utils/vboot-utils.spec

67 lines
1.9 KiB
RPMSpec
Raw Permalink Normal View History

2020-01-10 15:13:45 +08:00
%define _default_patch_fuzz 2
2020-10-29 19:48:20 +08:00
Name: vboot-utils
Version: 20230127
2024-02-27 16:45:59 +08:00
Release: 2
2020-10-29 19:48:20 +08:00
Summary: Chromium OS verified boot utility
License: BSD
URL: https://chromium.googlesource.com/chromiumos/platform/vboot_reference
2024-02-27 16:45:59 +08:00
ExclusiveArch: aarch64 x86_64 loongarch64
Source0: %{name}-9b08a3c4.tar.xz
Patch0: vboot-utils-9b08a3c4.patch
Patch1: flashrom-ensure-flashrom-symbols-are-not-loaded-if-U.patch
2020-10-29 19:48:20 +08:00
BuildRequires: gcc-c++ openssl-devel trousers-devel libyaml-devel xz-devel libuuid-devel python3
2020-01-10 15:13:45 +08:00
%description
Verify boot is a collection of utilities for chromebook computers. Package and sign the kernel and
manage gpt partitions.
%prep
%autosetup -n vboot-utils-9b08a3c4 -p1
2020-01-10 15:13:45 +08:00
%build
%ifarch aarch64
%global ARCH arm
%endif
%ifarch x86_64
%global ARCH x86_64
%endif
2024-02-27 16:45:59 +08:00
%ifarch loongarch64
%global ARCH loongarch64
%endif
%make_build V=1 ARCH=%{ARCH} COMMON_FLAGS="$RPM_OPT_FLAGS" USE_FLASHROM=0
2020-01-10 15:13:45 +08:00
%install
%make_install V=1 DESTDIR=%{buildroot} ARCH=%{ARCH} COMMON_FLAGS="$RPM_OPT_FLAGS" USE_FLASHROM=0
mkdir -p %{buildroot}%{_datadir}/vboot/
cp -rf tests/devkeys %{buildroot}%{_datadir}/vboot/
2021-07-30 19:01:37 +08:00
rm -rf %{buildroot}/usr/lib/pkgconfig/
rm -rf %{buildroot}/usr/default/
rm -rf %{buildroot}/etc/default/
rm -rf %{buildroot}/usr/share/vboot/bin/
rm -f %{buildroot}/usr/lib/libvboot_host.a
2020-01-10 15:13:45 +08:00
%files
%doc README LICENSE
%{_bindir}/*
%{_datadir}/vboot/devkeys/
2020-01-10 15:13:45 +08:00
%changelog
2024-02-27 16:45:59 +08:00
* Tue Feb 27 2024 doupengda <doupengda@loongson.cn> - 20230127-2
- add support for loongarch64
* Wed Jul 19 2023 xu_ping <707078654@qq.com> - 20230127-1
- upgrade to 20230127
2022-06-09 02:40:29 +00:00
* Fri Jul 30 2021 sunguoshuai <sunguoshuai@huawei.com> - 20190823-6
2021-07-30 19:01:37 +08:00
- upgrade to 20190823
2020-10-29 19:48:20 +08:00
* Tue Oct 27 2020 Anan Fu <fuanan3@huawei.com> - 20180531-5
- disable python2
2020-06-03 10:09:48 +08:00
* Wed Jan 8 2020 leiju <leiju4@huawei.com> - 20180531-4
- fix unaligned point value with GCC9
2020-01-10 15:13:45 +08:00
* Wed Jan 8 2020 fengbing <fengbing7@huawei.com> - 20180531-3
- Package init