Files
packages/anda/tools/arduino-create-agent/arduino-create-agent.spec
T
Raboneko 163f1f13e0 feat: remove %go_prep_online from all specs (#6194) (#6195)
* feat: remove %go_prep_online from all specs

* packager



* fix: GO111MODULE=on

* a

* aa

* aaa

* hah?

* feat: walker got rusted real?

* fedora moment

* /etc/xdg/walker/



---------


(cherry picked from commit aacc02e713)

Signed-off-by: madomado <madonuko@outlook.com>
Co-authored-by: madomado <madonuko@outlook.com>
2025-08-29 03:08:28 +08:00

50 lines
1.3 KiB
RPMSpec

# https://github.com/arduino/arduino-create-agent
%global goipath github.com/arduino/arduino-create-agent
Version: 1.7.0
%gometa -f
%global common_description %{expand:
The Arduino Cloud Agent is a single binary that will sit on the traybar and work in the background.
It allows you to use the Arduino Cloud to seamlessly upload code to any USB connected Arduino board (or Yún in LAN) directly from the browser.}
%global golicenses LICENSE.txt
%global godocs README.md
Name: arduino-create-agent
Release: 2%?dist
Summary: Arduino Cloud Agent
License: AGPL-3.0
Packager: Owen Zimmerman <owen@fyralabs.com>
URL: %{gourl}
Source: %{url}/archive/%{version}.tar.gz
BuildRequires: anda-srpm-macros
%description %{common_description}
%gopkg
%prep
%goprep -A
%build
sed -E '/^func Start\(/,/^\}$/s@return start\(src\)@return ""@' -i updater/updater.go
sed -E '\?r.POST\("/update", updateHandler\)?d' -i main.go
%define gomodulesmode GO111MODULE=on
%gobuild -o %{gobuilddir}/bin/arduino-create-agent %{goipath}
%install
install -Dm755 %{gobuilddir}/bin/arduino-create-agent -t %buildroot%{_bindir}
%files
%license LICENSE.txt
%doc README.md
%{_bindir}/arduino-create-agent
%changelog
* Sat Jan 25 2025 Owen Zimmerman <owen@fyralabs.com>
- Package arduino-create-agent