mirror of
https://abf.rosa.ru/djam/terraform-provider-decort.git
synced 2025-02-23 15:12:45 +00:00
47 lines
1.1 KiB
RPMSpec
47 lines
1.1 KiB
RPMSpec
%define debug %nil
|
|
%define debug_package %nil
|
|
%define commit 8da3f8d3480ffbcd8d9da1ae094fda0122e64de9
|
|
%define shortcommit %(c=%{commit}; echo ${c:0:7})
|
|
%define date 20211004
|
|
%define tfprovider decort
|
|
%ifarch x86_64 amd64
|
|
%global goarch amd64
|
|
%else
|
|
%global goarch 386
|
|
%endif
|
|
|
|
Name: terraform-provider-%{tfprovider}
|
|
Version: 1.25.1
|
|
Release: 1
|
|
Summary: Terraform provider for DECORT platform (API 3.6.x or later)
|
|
URL: https://github.com/rudecs/terraform-provider-decort
|
|
Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
|
|
License: ASL 2.0
|
|
Group: Development/Other
|
|
Epoch: 1
|
|
BuildRequires: go >= 1.16
|
|
BuildRequires: git-core
|
|
BuildRequires: upx
|
|
|
|
%description
|
|
Terraform provider for DECORT platform (API 3.6.x or later)
|
|
|
|
%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}
|
|
|
|
|
|
|
|
|
|
|