-
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
project pkg { | ||
rpm { | ||
spec = "arduino-cli.spec" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
%define _build_shell /bin/bash | ||
%define debug_package %nil | ||
|
||
Name: arduino-cli | ||
Version: 1.1.1 | ||
Release: 1%?dist | ||
Summary: Arduino command line tool. | ||
License: GPLv3 | ||
Packager: Owen Zimmerman <[email protected]> | ||
Url: https://github.com/arduino/arduino-cli | ||
Source0: %url/archive/refs/tags/v%version.tar.gz | ||
BuildRequires: golang git go-rpm-macros anda-srpm-macros | ||
|
||
%description | ||
%summary | ||
|
||
%prep | ||
%autosetup -n arduino-cli-%version | ||
|
||
%build | ||
mkdir -p bin | ||
%go_build_online | ||
|
||
%install | ||
mkdir -p %{buildroot}%{_bindir} | ||
install -Dm 755 build/bin/arduino-cli %buildroot%{_bindir}/arduino-cli | ||
|
||
%files | ||
%license LICENSE.txt | ||
%doc README.md | ||
%{_bindir}/arduino-cli | ||
|
||
%changelog | ||
* Thu Dec 5 2024 Owen Zimmerman <[email protected]> | ||
- Package arduino-cli |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
rpm.version(gh("arduino/arduino-cli")); |