commit 4e19aafb04420a01951cb5acf220375634cb7f3e Author: Sergey Zhemoytel Date: Thu Jun 30 00:52:27 2022 +0300 Imported from SRPM diff --git a/.abf.yml b/.abf.yml new file mode 100644 index 0000000..7787174 --- /dev/null +++ b/.abf.yml @@ -0,0 +1,2 @@ +sources: + terraform-provider-selectel-3.8.4.tar.gz: a493910a6673daa2717c05a3495a32841ddab178 diff --git a/terraform-provider-selectel.spec b/terraform-provider-selectel.spec new file mode 100644 index 0000000..6a9ec0a --- /dev/null +++ b/terraform-provider-selectel.spec @@ -0,0 +1,43 @@ +%define debug %nil +%define debug_package %nil +%define tfprovider selectel +%ifarch x86_64 amd64 +%global goarch amd64 +%else +%global goarch 386 +%endif + +Name: terraform-provider-%{tfprovider} +Version: 3.8.4 +Release: 1 +Summary: Terraform provider for VK cloud (Mail.ru Cloud Solutions) +URL: https://github.com/selectel/%{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} + + + + +