2021-09-20 23:45:06 +03:00
|
|
|
%define debug %nil
|
|
|
|
%define debug_package %nil
|
2021-10-04 22:32:51 +03:00
|
|
|
%define commit 8da3f8d3480ffbcd8d9da1ae094fda0122e64de9
|
2021-09-20 23:45:06 +03:00
|
|
|
%define shortcommit %(c=%{commit}; echo ${c:0:7})
|
2021-10-04 22:32:51 +03:00
|
|
|
%define date 20211004
|
2021-09-20 23:45:06 +03:00
|
|
|
%define tfprovider decort
|
|
|
|
%ifarch x86_64 amd64
|
|
|
|
%global goarch amd64
|
|
|
|
%else
|
|
|
|
%global goarch 386
|
2021-10-03 20:39:30 +03:00
|
|
|
%endif
|
2021-09-20 23:45:06 +03:00
|
|
|
|
|
|
|
Name: terraform-provider-%{tfprovider}
|
2022-06-10 14:06:08 +03:00
|
|
|
Version: 2.3.0
|
2021-12-29 18:33:33 +03:00
|
|
|
Release: 1
|
2021-09-20 23:45:06 +03:00
|
|
|
Summary: Terraform provider for DECORT platform (API 3.6.x or later)
|
|
|
|
URL: https://github.com/rudecs/terraform-provider-decort
|
2021-12-29 18:10:21 +03:00
|
|
|
Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
|
2021-09-20 23:45:06 +03:00
|
|
|
License: ASL 2.0
|
|
|
|
Group: Development/Other
|
2021-10-03 23:58:11 +03:00
|
|
|
Epoch: 1
|
2021-12-29 18:10:21 +03:00
|
|
|
BuildRequires: go >= 1.16
|
2021-09-20 23:45:06 +03:00
|
|
|
BuildRequires: git-core
|
|
|
|
BuildRequires: upx
|
|
|
|
|
|
|
|
%description
|
|
|
|
Terraform provider for DECORT platform (API 3.6.x or later)
|
|
|
|
|
|
|
|
%prep
|
2021-12-29 18:17:00 +03:00
|
|
|
%setup -q
|
2021-09-20 23:45:06 +03:00
|
|
|
|
|
|
|
%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}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|