From 5f1c8873ee245a6bd41d9636e7e1c2db884debae Mon Sep 17 00:00:00 2001 From: Owen Zimmerman <123591347+Owen-sz@users.noreply.github.com> Date: Wed, 2 Jul 2025 08:22:44 -0500 Subject: [PATCH] Add: bmpblk_utility (#5733) --- anda/tools/bmpblk_utility/anda.hcl | 5 ++ anda/tools/bmpblk_utility/bmpblk_utility.spec | 50 +++++++++++++++++++ 2 files changed, 55 insertions(+) create mode 100644 anda/tools/bmpblk_utility/anda.hcl create mode 100644 anda/tools/bmpblk_utility/bmpblk_utility.spec diff --git a/anda/tools/bmpblk_utility/anda.hcl b/anda/tools/bmpblk_utility/anda.hcl new file mode 100644 index 0000000000..490732d808 --- /dev/null +++ b/anda/tools/bmpblk_utility/anda.hcl @@ -0,0 +1,5 @@ +project pkg { + rpm { + spec = "bmpblk_utility.spec" + } +} diff --git a/anda/tools/bmpblk_utility/bmpblk_utility.spec b/anda/tools/bmpblk_utility/bmpblk_utility.spec new file mode 100644 index 0000000000..d9793c05db --- /dev/null +++ b/anda/tools/bmpblk_utility/bmpblk_utility.spec @@ -0,0 +1,50 @@ +%define _debugsource_template %{nil} + +%define commit cd7d8fac1be33c2bdf06494f174b2ecb0e2f4f8e +%global shortcommit %{sub %{commit} 1 12} +%global commit_date 250419 + +Name: bmpblk_utility +Version: 0~%{commit_date}git.%{shortcommit} +Release: 1%{?dist} +Summary: A utility to create/modify the bmpfv in the GBB of chromebooks running old stock firmware + +License: BSD-3-Clause +URL: https://git.tree123.org/WeirdTreeThing/bmpblk_utility +Source0: https://git.tree123.org/WeirdTreeThing/bmpblk_utility/archive/main.tar.gz +Source1: https://chromium.googlesource.com/chromium/src/+/HEAD/LICENSE + +BuildRequires: make +BuildRequires: gcc +BuildRequires: gcc-g++ +BuildRequires: xz-libs +BuildRequires: xz-devel +BuildRequires: libyaml +BuildRequires: libyaml-devel + +packager: Owen Zimmerman + +%description +%summary. + +%prep +%autosetup -n bmpblk_utility + +%build +./build.sh + +%install +install -Dm 644 %{SOURCE1} %{buildroot}%{_licensedir}/%{name}/LICENSE + +install -Dm 755 build/bmpblk_utility %{buildroot}%{_bindir}/bmpblk_utility +install -Dm 755 build/bmpblk_font %{buildroot}%{_bindir}/bmpblk_font + +%files +%license %{_licensedir}/%{name}/LICENSE +%doc README.md +%{_bindir}/bmpblk_utility +%{_bindir}/bmpblk_font + +%changelog +* Tue Jul 01 2025 Owen Zimmerman +- initial package