terraform-provider-helm/terraform-provider-helm.spec

45 lines
890 B
RPMSpec
Raw Normal View History

2023-02-09 17:24:10 +03:00
%define debug %nil
%define debug_package %nil
%define tfprovider helm
%ifarch x86_64 amd64
%global goarch amd64
%else
%global goarch 386
%endif
Name: terraform-provider-%{tfprovider}
2024-06-13 18:51:16 +00:00
Version: 2.14.0
2023-02-09 17:24:10 +03:00
Release: 1
Summary: Terraform provider for Helm
URL: https://github.com/hashicorp/%{name}
Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
License: MPL-2.0
Group: Development/Other
BuildRequires: go >= 1.16
BuildRequires: git-core
BuildRequires: upx
Requires: terraform
%description
%{summary}
%prep
%setup -q
%build
2023-11-29 08:56:56 +00:00
export GOPROXY=direct
2023-02-09 17:24:10 +03:00
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}