mirror of
https://abf.rosa.ru/djam/terraform-provider-decort.git
synced 2025-02-23 15:12:45 +00:00
51 lines
1.3 KiB
RPMSpec
51 lines
1.3 KiB
RPMSpec
%define debug %nil
|
|
%define debug_package %nil
|
|
%define tfprovider decort
|
|
%ifarch x86_64 amd64
|
|
%global goarch amd64
|
|
%else
|
|
%global goarch 386
|
|
%endif
|
|
|
|
Name: terraform-provider-%{tfprovider}
|
|
Version: 4.8.1
|
|
Release: 1
|
|
Summary: Terraform provider for DECORT platform (API 3.6.x or later)
|
|
URL: https://repository.basistech.ru/BASIS/terraform-provider-decort
|
|
Source0: %{url}/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
|
|
#URL: https://github.com/rudecs/terraform-provider-decort
|
|
#Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz
|
|
License: ASL 2.0
|
|
Group: Development/Other
|
|
Epoch: 1
|
|
BuildRequires: go >= 1.16
|
|
BuildRequires: git-core
|
|
BuildRequires: upx
|
|
BuildRequires: pkgconfig(openssl3.3)
|
|
Requires: terraform
|
|
|
|
%description
|
|
Terraform provider for DECORT platform (API 3.6.x or later)
|
|
|
|
%prep
|
|
%setup -qn %{name}
|
|
|
|
%build
|
|
export GOSUMDB=off
|
|
export GOPROXY=https://proxy.golang.org/cached-only
|
|
go mod tidy
|
|
go build -o %{name} ./cmd/decort/
|
|
|
|
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}
|
|
|
|
|
|
|
|
|
|
|