Files
packages/anda/tools/arduino-cli/arduino-cli.spec
T
Raboneko 3ae7e078fe fix: arduino (#3562) (#3569)
* fix(arduino-cli): follow terra and fedora go packaging guidelines

* fix(arduino-create-agent): follow terra and fedora go packaging guidelines

* oops

* time for me to nap

* uhh what

* fix(arduino-{fwuploader,language-server,lint}): follow terra and fedora go packaging guidelines

* fix: sources path

* install source dir

(cherry picked from commit 5b25d489ca)

Co-authored-by: sadlerm4 <sad_lerm@hotmail.com>
2025-02-27 13:50:21 +08:00

48 lines
1.1 KiB
RPMSpec

# https://github.com/arduino/arduino-cli
%global goipath github.com/arduino/arduino-cli
Version: 1.2.0
%gometa -f
%global common_description %{expand:
Arduino CLI is an all-in-one solution that provides Boards/Library Managers, sketch builder, board detection, uploader, and many other tools needed to use any Arduino compatible board and platform from command line or machine interfaces.}
%global golicenses LICENSE.txt
%global godocs README.md
Name: arduino-cli
Release: 2%?dist
Summary: Arduino command line tool
License: GPL-3.0
Packager: Owen Zimmerman <owen@fyralabs.com>
URL: %{gourl}
Source: %{gosource}
BuildRequires: anda-srpm-macros
%description %{common_description}
%gopkg
%prep
%goprep
%go_prep_online
%build
%define gomodulesmode GO111MODULE=on
%gobuild -o %{gobuilddir}/bin/arduino-cli %{goipath}
%install
install -Dm755 %{gobuilddir}/bin/arduino-cli -t %buildroot%{_bindir}
%files
%license LICENSE.txt
%doc README.md
%{_bindir}/arduino-cli
%changelog
* Thu Dec 5 2024 Owen Zimmerman <owen@fyralabs.com>
- Package arduino-cli