Imported from SRPM

This commit is contained in:
Sergey Zhemoytel 2022-06-30 00:52:27 +03:00
commit 4e19aafb04
2 changed files with 45 additions and 0 deletions

2
.abf.yml Normal file
View file

@ -0,0 +1,2 @@
sources:
terraform-provider-selectel-3.8.4.tar.gz: a493910a6673daa2717c05a3495a32841ddab178

View file

@ -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}