Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[el10] Add: arduino-fwuploader (#2763) #2770

Merged
merged 1 commit into from
Dec 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions anda/tools/arduino-fwuploader/anda.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
project pkg {
rpm {
spec = "arduino-fwuploader.spec"
}
}
34 changes: 34 additions & 0 deletions anda/tools/arduino-fwuploader/arduino-fwuploader.spec
Original file line number Diff line number Diff line change
@@ -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 <owen@fyralabs.com>
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 <owen@fyralabs.com>
- Package arduino-fwuploader
1 change: 1 addition & 0 deletions anda/tools/arduino-fwuploader/update.rhai
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
rpm.version(gh("arduino/arduino-fwuploader"));
Loading