mirror of
https://abf.rosa.ru/djam/terraform-provider-selectel.git
synced 2025-02-22 15:53:04 +00:00
47 lines
1,004 B
RPMSpec
47 lines
1,004 B
RPMSpec
%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}
|
|
Version: 6.2.0
|
|
Release: 1
|
|
Summary: Terraform provider for Selectel
|
|
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
|
|
BuildRequires: pkgconfig(openssl3.3)
|
|
Requires: terraform
|
|
|
|
%description
|
|
%{summary}
|
|
|
|
%prep
|
|
%setup -q
|
|
|
|
%build
|
|
export GOPROXY=https://proxy.golang.org/
|
|
GOSUMDB=off go mod tidy
|
|
go build --ldflags="-s -w" .
|
|
|
|
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}
|
|
|
|
|
|
|
|
|
|
|