diff --git a/terraform-provider-yandex.spec b/terraform-provider-yandex.spec index 63e82a9..23db325 100644 --- a/terraform-provider-yandex.spec +++ b/terraform-provider-yandex.spec @@ -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