commit f67db88f9e3deb188f255f6b7bea8ff293b857d6 Author: Sergey Zhemoitel Date: Mon Sep 20 23:45:06 2021 +0300 Imported from SRPM diff --git a/.abf.yml b/.abf.yml new file mode 100644 index 0000000..c47a028 --- /dev/null +++ b/.abf.yml @@ -0,0 +1,2 @@ +sources: + terraform-provider-decort-1.20.tar.gz: a36486872da8b76645035463a1b0e00109fbb9c6 diff --git a/terraform-provider-decort.spec b/terraform-provider-decort.spec new file mode 100644 index 0000000..72a1a1b --- /dev/null +++ b/terraform-provider-decort.spec @@ -0,0 +1,46 @@ +%define debug %nil +%define debug_package %nil +%define commit 7480160dc59686290bc1ca18622628266d9846af +%define shortcommit %(c=%{commit}; echo ${c:0:7}) +%define date 20210917 +%define tfprovider decort +%ifarch x86_64 amd64 +%global goarch amd64 +%else +%global goarch 386 +%endif + +Name: terraform-provider-%{tfprovider} +Version: 1.20 +Release: 1.rc.%{shortcommit} +Summary: Terraform provider for DECORT platform (API 3.6.x or later) +URL: https://github.com/rudecs/terraform-provider-decort +Source0: %{url}/archive/rc-%{version}/%{name}-%{version}.tar.gz +License: ASL 2.0 +Group: Development/Other +BuildRequires: go >= 1.11 +BuildRequires: git-core +BuildRequires: upx + +%description +Terraform provider for DECORT platform (API 3.6.x or later) + +%prep +%setup -qn %{name}-rc-%{version} + +%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} + + + + +