From a2dedd4c8f30715b83c4037c6f3d810add68e863 Mon Sep 17 00:00:00 2001 From: madomado Date: Fri, 17 Nov 2023 22:32:16 +0800 Subject: [PATCH] add: depthcharge-tools (#816) * add: depthcharge-tools * Update depthcharge-tools.spec Signed-off-by: madomado * Update depthcharge-tools.spec Signed-off-by: madomado --------- Signed-off-by: madomado --- anda/tools/depthcharge-tools/anda.hcl | 5 +++ .../depthcharge-tools/depthcharge-tools.spec | 34 +++++++++++++++++++ anda/tools/depthcharge-tools/update.rhai | 1 + 3 files changed, 40 insertions(+) create mode 100644 anda/tools/depthcharge-tools/anda.hcl create mode 100644 anda/tools/depthcharge-tools/depthcharge-tools.spec create mode 100644 anda/tools/depthcharge-tools/update.rhai diff --git a/anda/tools/depthcharge-tools/anda.hcl b/anda/tools/depthcharge-tools/anda.hcl new file mode 100644 index 0000000000..a65b3f99ea --- /dev/null +++ b/anda/tools/depthcharge-tools/anda.hcl @@ -0,0 +1,5 @@ +project pkg { + rpm { + spec = "depthcharge-tools.spec" + } +} diff --git a/anda/tools/depthcharge-tools/depthcharge-tools.spec b/anda/tools/depthcharge-tools/depthcharge-tools.spec new file mode 100644 index 0000000000..594504034c --- /dev/null +++ b/anda/tools/depthcharge-tools/depthcharge-tools.spec @@ -0,0 +1,34 @@ +Name: depthcharge-tools +Version: 0.6.2 +Release: 1%?dist +Summary: Tools to manage the Chrome OS bootloader +License: GPL-2.0-or-later +URL: https://github.com/alpernebbi/depthcharge-tools +Source0: %url/archive/v%version/v%version.tar.gz +Requires: vboot-utils dtc gzip lz4 python3-setuptools uboot-tools vboot-utils xz +BuildRequires: python3-setuptools python3-rpm-macros +BuildArch: noarch + +%description +depthcharge-tools is a collection of tools that ease and automate interacting +with depthcharge, the Chrome OS bootloader. + +%prep +%autosetup + +%build +python3 setup.py build + +%install +python3 setup.py install --skip-build --root=%buildroot + +%files +%doc README.rst +%license LICENSE +%_bindir/depthchargectl +%_bindir/mkdepthcharge +%_prefix/lib/python%python3_version/site-packages/depthcharge_tools-%version-py%python3_version.egg-info/ +%_prefix/lib/python%python3_version/site-packages/depthcharge_tools/ + +%changelog +%autochangelog diff --git a/anda/tools/depthcharge-tools/update.rhai b/anda/tools/depthcharge-tools/update.rhai new file mode 100644 index 0000000000..9994806760 --- /dev/null +++ b/anda/tools/depthcharge-tools/update.rhai @@ -0,0 +1 @@ +rpm.version(gh("alpernebbi/depthcharge-tools"));