mirror of
https://abf.rosa.ru/djam/cilium-cli.git
synced 2025-02-23 23:12:50 +00:00
35 lines
716 B
RPMSpec
35 lines
716 B
RPMSpec
|
%define debug %nil
|
||
|
%define debug_package %nil
|
||
|
|
||
|
Name: cilium-cli
|
||
|
Version: 0.16.10
|
||
|
Release: 1
|
||
|
Summary: CLI to install, manage & troubleshoot Kubernetes clusters running Cilium
|
||
|
URL: https://cilium.io
|
||
|
Source0: https://github.com/cilium/cilium-cli/archive/v%{version}/%{name}-%{version}.tar.gz
|
||
|
License: ASL 2.0
|
||
|
Group: Development/Other
|
||
|
BuildRequires: go
|
||
|
BuildRequires: git-core
|
||
|
BuildRequires: upx
|
||
|
|
||
|
%description
|
||
|
%{summary}
|
||
|
|
||
|
%prep
|
||
|
%setup -q
|
||
|
|
||
|
%build
|
||
|
CGO_ENABLED=0 go build -ldflags '-w -s -X github.com/cilium/cilium-cli/defaults.CLIVersion=%{version}' -o bin/%{name} ./cmd/cilium
|
||
|
|
||
|
upx bin/%{name}
|
||
|
|
||
|
%install
|
||
|
install -Dm0755 bin/%{name} %{buildroot}%{_bindir}/%{name}
|
||
|
|
||
|
%files
|
||
|
%doc README.md LICENSE
|
||
|
%{_bindir}/%{name}
|
||
|
|
||
|
|