mirror of
https://abf.rosa.ru/djam/terraform-provider-yandex.git
synced 2025-02-23 03:02:46 +00:00
0.121.0
This commit is contained in:
parent
ae597a9cb4
commit
c417c8c8d2
1 changed files with 3 additions and 2 deletions
|
@ -18,6 +18,7 @@ Group: Development/Other
|
|||
BuildRequires: go >= 1.16
|
||||
BuildRequires: git-core
|
||||
BuildRequires: upx
|
||||
BuildRequires: terraform
|
||||
|
||||
%description
|
||||
%{summary}
|
||||
|
@ -30,10 +31,10 @@ export GOPROXY=https://proxy.golang.org/cached-only
|
|||
#go mod tidy
|
||||
go build --ldflags="-s -w" -o bin/%{name} .
|
||||
|
||||
upx %{name}
|
||||
upx bin/%{name}
|
||||
|
||||
%install
|
||||
install -Dm0755 %{name} %{buildroot}/%{_datadir}/terraform/plugins/tf.%{tfprovider}.online/mylocal/%{tfprovider}/%{version}/linux_%{goarch}/%{name}
|
||||
install -Dm0755 bin/%{name} %{buildroot}/%{_datadir}/terraform/plugins/tf.%{tfprovider}.online/mylocal/%{tfprovider}/%{version}/linux_%{goarch}/%{name}
|
||||
|
||||
%files
|
||||
%doc README.md LICENSE
|
||||
|
|
Loading…
Add table
Reference in a new issue