terraform-provider-yandex/terraform-provider-yandex.spec

45 lines
957 B
RPMSpec
Raw Normal View History

2022-06-30 01:00:01 +03:00
%define debug %nil
%define debug_package %nil
%define tfprovider yandex
%ifarch x86_64 amd64
%global goarch amd64
%else
%global goarch 386
%endif
Name: terraform-provider-%{tfprovider}
2024-04-25 15:48:06 +00:00
Version: 0.117.0
2022-06-30 01:00:01 +03:00
Release: 1
Summary: Terraform provider for VK cloud (Mail.ru Cloud Solutions)
URL: https://github.com/yandex-cloud/%{name}
Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
License: MPL-2.0
Group: Development/Other
BuildRequires: go >= 1.16
BuildRequires: git-core
BuildRequires: upx
%description
%{summary}
%prep
%setup -q
%build
2024-04-05 10:41:24 +00:00
export GOPROXY=https://proxy.golang.org/cached-only
2024-03-31 20:20:21 +00:00
go build --ldflags="-s -w" .
2022-06-30 01:00:01 +03:00
upx %{name}
%install
install -Dm0755 %{name} %{buildroot}/%{_datadir}/terraform/plugins/tf.%{tfprovider}.online/mylocal/%{tfprovider}/%{version}/linux_%{goarch}/%{name}
%files
%doc README.md LICENSE
%{_datadir}/terraform/plugins/tf.%{tfprovider}.online/mylocal/%{tfprovider}/%{version}/linux_%{goarch}/%{name}