From fe64fae6e0d3a3d5dad25553e0941031fe8b50e2 Mon Sep 17 00:00:00 2001 From: Raboneko <119771935+raboneko@users.noreply.github.com> Date: Sat, 28 Dec 2024 10:06:40 -0800 Subject: [PATCH] Add: arduino-fwuploader (#2763) (#2769) * package arduino-cli * package arduino-lint * remove old files * package rpi-update * remove old files * exclusive arch in hcl * package arduino-language-server * remove old files * package arduino-fwuploader * remove old files (cherry picked from commit 0ef73d1a56272d690a2886c99da3ff07af1aef17) Co-authored-by: Owen Zimmerman <123591347+Owen-sz@users.noreply.github.com> --- anda/tools/arduino-fwuploader/anda.hcl | 5 +++ .../arduino-fwuploader.spec | 34 +++++++++++++++++++ anda/tools/arduino-fwuploader/update.rhai | 1 + 3 files changed, 40 insertions(+) create mode 100644 anda/tools/arduino-fwuploader/anda.hcl create mode 100644 anda/tools/arduino-fwuploader/arduino-fwuploader.spec create mode 100644 anda/tools/arduino-fwuploader/update.rhai diff --git a/anda/tools/arduino-fwuploader/anda.hcl b/anda/tools/arduino-fwuploader/anda.hcl new file mode 100644 index 0000000000..242e6b72b2 --- /dev/null +++ b/anda/tools/arduino-fwuploader/anda.hcl @@ -0,0 +1,5 @@ +project pkg { + rpm { + spec = "arduino-fwuploader.spec" + } +} \ No newline at end of file diff --git a/anda/tools/arduino-fwuploader/arduino-fwuploader.spec b/anda/tools/arduino-fwuploader/arduino-fwuploader.spec new file mode 100644 index 0000000000..397dcb0e0b --- /dev/null +++ b/anda/tools/arduino-fwuploader/arduino-fwuploader.spec @@ -0,0 +1,34 @@ +%define debug_package %nil + +Name: arduino-fwuploader +Version: 2.4.1 +Release: 1%?dist +Summary: A Command Line Tool made to update the firmware and/or add SSL certificates for any Arduino board equipped with WINC or NINA Wi-Fi module. +License: AGPLv3 +Packager: Owen Zimmerman +Url: https://github.com/arduino/arduino-fwuploader +Source0: %url/archive/refs/tags/%version.tar.gz +BuildRequires: golang git go-rpm-macros anda-srpm-macros python3 go-task + +%description +%summary + +%prep +%autosetup -n arduino-fwuploader-%version + +%build +mkdir -p bin +%go_build_online + +%install +mkdir -p %{buildroot}%{_bindir} +install -Dm 755 build/bin/arduino-fwuploader %buildroot%{_bindir}/arduino-fwuploader + +%files +%license LICENSE.txt +%doc README.md +%{_bindir}/arduino-fwuploader + +%changelog +* Sat Dec 28 2024 Owen Zimmerman +- Package arduino-fwuploader \ No newline at end of file diff --git a/anda/tools/arduino-fwuploader/update.rhai b/anda/tools/arduino-fwuploader/update.rhai new file mode 100644 index 0000000000..9b5da745fb --- /dev/null +++ b/anda/tools/arduino-fwuploader/update.rhai @@ -0,0 +1 @@ +rpm.version(gh("arduino/arduino-fwuploader")); \ No newline at end of file