2021-09-20 23:45:06 +03:00
|
|
|
%define debug %nil
|
|
|
|
%define debug_package %nil
|
|
|
|
%define tfprovider decort
|
2022-06-30 01:55:54 +03:00
|
|
|
%ifarch x86_64 amd64
|
2021-09-20 23:45:06 +03:00
|
|
|
%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-07-31 12:33:34 +03:00
|
|
|
Version: 3.0.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}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|