From ba093b57bfdc35caa153de751b421815fb2b1818 Mon Sep 17 00:00:00 2001 From: Owen Zimmerman <123591347+Owen-sz@users.noreply.github.com> Date: Mon, 9 Dec 2024 08:16:41 +0000 Subject: [PATCH] Add: arduino-lint (#2580) * package arduino-cli * package arduino-lint * remove old files (cherry picked from commit 3ea06252f58e4eb81119d572328a55467a662e0d) --- anda/tools/arduino-lint/anda.hcl | 5 ++++ anda/tools/arduino-lint/arduino-lint.spec | 33 +++++++++++++++++++++++ anda/tools/arduino-lint/update.rhai | 1 + 3 files changed, 39 insertions(+) create mode 100644 anda/tools/arduino-lint/anda.hcl create mode 100644 anda/tools/arduino-lint/arduino-lint.spec create mode 100644 anda/tools/arduino-lint/update.rhai diff --git a/anda/tools/arduino-lint/anda.hcl b/anda/tools/arduino-lint/anda.hcl new file mode 100644 index 0000000000..64be7b8dc9 --- /dev/null +++ b/anda/tools/arduino-lint/anda.hcl @@ -0,0 +1,5 @@ +project pkg { + rpm { + spec = "arduino-lint.spec" + } +} \ No newline at end of file diff --git a/anda/tools/arduino-lint/arduino-lint.spec b/anda/tools/arduino-lint/arduino-lint.spec new file mode 100644 index 0000000000..74155e3b98 --- /dev/null +++ b/anda/tools/arduino-lint/arduino-lint.spec @@ -0,0 +1,33 @@ +%define debug_package %nil + +Name: arduino-lint +Version: 1.2.1 +Release: 1%?dist +Summary: Tool to check for problems with Arduino projects. +License: GPLv3 +Packager: Owen Zimmerman +Url: https://github.com/arduino/arduino-lint +Source0: %url/archive/refs/tags/%version.tar.gz +BuildRequires: golang git go-rpm-macros anda-srpm-macros + +%description +%summary + +%prep +%autosetup -n arduino-lint-%version + +%build +go build + +%install +mkdir -p %{buildroot}%{_bindir} +install -Dm 755 arduino-lint %buildroot%{_bindir}/arduino-lint + +%files +%license LICENSE.txt +%doc README.md +%{_bindir}/arduino-lint + +%changelog +* Thu Dec 5 2024 Owen Zimmerman +- Package arduino-lint \ No newline at end of file diff --git a/anda/tools/arduino-lint/update.rhai b/anda/tools/arduino-lint/update.rhai new file mode 100644 index 0000000000..b01799fdef --- /dev/null +++ b/anda/tools/arduino-lint/update.rhai @@ -0,0 +1 @@ +rpm.version(gh("arduino/arduino-lint")); \ No newline at end of file