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}
|
2025-02-10 21:05:04 +00:00
|
|
|
Version: 4.8.1
|
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)
|
2023-06-30 07:41:58 +00:00
|
|
|
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
|
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
|
2024-10-30 11:44:43 +00:00
|
|
|
BuildRequires: pkgconfig(openssl3.3)
|
2022-09-01 19:16:11 +03:00
|
|
|
Requires: terraform
|
2021-09-20 23:45:06 +03:00
|
|
|
|
|
|
|
%description
|
|
|
|
Terraform provider for DECORT platform (API 3.6.x or later)
|
|
|
|
|
|
|
|
%prep
|
2023-06-30 07:41:58 +00:00
|
|
|
%setup -qn %{name}
|
2021-09-20 23:45:06 +03:00
|
|
|
|
|
|
|
%build
|
2025-02-10 16:12:07 +00:00
|
|
|
export GOSUMDB=off
|
2024-10-31 12:43:32 +00:00
|
|
|
export GOPROXY=https://proxy.golang.org/cached-only
|
2024-10-31 13:25:32 +00:00
|
|
|
go mod tidy
|
2022-07-31 13:46:21 +03:00
|
|
|
go build -o %{name} ./cmd/decort/
|
2021-09-20 23:45:06 +03:00
|
|
|
|
|
|
|
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}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|