commit 82a372e3252babb6bcfa1f1759ab68fcaf2c43c6 Author: Sergey Zhemoytel Date: Thu Jun 30 01:00:01 2022 +0300 Imported from SRPM diff --git a/.abf.yml b/.abf.yml new file mode 100644 index 0000000..b6579dd --- /dev/null +++ b/.abf.yml @@ -0,0 +1,2 @@ +sources: + terraform-provider-yandex-0.75.0.tar.gz: ef54597c4cb28f1997ef8cf035bf77e4d0c51d92 diff --git a/terraform-provider-yandex.spec b/terraform-provider-yandex.spec new file mode 100644 index 0000000..383a016 --- /dev/null +++ b/terraform-provider-yandex.spec @@ -0,0 +1,43 @@ +%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} +Version: 0.75.0 +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 +go build + +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} + + + + +