terraform-provider-selectel/terraform-provider-selectel.spec

48 lines
1,004 B
RPMSpec
Raw Normal View History

2022-06-30 00:52:27 +03:00
%define debug %nil
%define debug_package %nil
%define tfprovider selectel
%ifarch x86_64 amd64
%global goarch amd64
%else
%global goarch 386
%endif
Name: terraform-provider-%{tfprovider}
2024-09-10 15:29:06 +00:00
Version: 5.4.0
2024-11-19 09:52:04 +00:00
Release: 2
Summary: Terraform provider for Selectel
2022-06-30 00:52:27 +03:00
URL: https://github.com/selectel/%{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
2024-11-19 09:52:04 +00:00
BuildRequires: pkgconfig(openssl3.3)
2023-02-09 22:28:01 +00:00
Requires: terraform
2022-06-30 00:52:27 +03:00
%description
%{summary}
%prep
%setup -q
%build
2024-02-07 19:24:54 +00:00
export GOPROXY=https://proxy.golang.org/
2024-02-07 20:28:04 +00:00
GOSUMDB=off go mod tidy
2023-10-05 21:17:22 +00:00
go build --ldflags="-s -w" .
2022-06-30 00:52:27 +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}