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