mirror of
https://abf.rosa.ru/djam/terraform-provider-decort.git
synced 2025-02-23 15:12:45 +00:00
46 lines
1.1 KiB
RPMSpec
46 lines
1.1 KiB
RPMSpec
%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}
|
|
|
|
|
|
|
|
|
|
|