forked from bottlerocket-os/bottlerocket
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaws-iam-authenticator.spec
44 lines (33 loc) · 1 KB
/
aws-iam-authenticator.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
%global goproject github.com/kubernetes-sigs
%global gorepo aws-iam-authenticator
%global goimport %{goproject}/%{gorepo}
%global gover 0.5.5
%global rpmver %{gover}
%global _dwz_low_mem_die_limit 0
Name: %{_cross_os}%{gorepo}
Version: %{rpmver}
Release: 1%{?dist}
Summary: AWS IAM authenticator
License: Apache-2.0
URL: https://%{goimport}
Source0: https://%{goimport}/archive/v%{gover}/%{gorepo}-%{gover}.tar.gz
Source1000: clarify.toml
BuildRequires: git
BuildRequires: %{_cross_os}glibc-devel
%description
%{summary}.
%prep
%autosetup -Sgit -n %{gorepo}-%{gover} -p1
%build
%set_cross_go_flags
go build -buildmode=pie -ldflags="${GOLDFLAGS}" -o aws-iam-authenticator ./cmd/aws-iam-authenticator
%install
install -d %{buildroot}%{_cross_bindir}
install -p -m 0755 aws-iam-authenticator %{buildroot}%{_cross_bindir}
%cross_scan_attribution --clarify %{S:1000} go-vendor vendor
%files
%license LICENSE
%{_cross_attribution_file}
%{_cross_attribution_vendor_dir}
%{_cross_bindir}/aws-iam-authenticator
%changelog