terraform-provider-gitlab/terraform-provider-gitlab.spec

46 lines
954 B
RPMSpec
Raw Normal View History

2024-07-18 17:54:38 +03:00
%define debug %nil
%define debug_package %nil
%define tfprovider gitlab
%ifarch x86_64 amd64
%global goarch amd64
%else
%global goarch 386
%endif
Name: terraform-provider-%{tfprovider}
2025-02-21 07:23:43 +00:00
Version: 17.9.0
2024-07-18 17:54:38 +03:00
Release: 1
Summary: Terraform gitlab provider
URL: https://gitlab.com/gitlab-org/%{name}
Source0: %{url}/-/archive/v%{version}/%{name}-v%{version}.tar.gz
License: MPL 2.0
Group: Development/Other
2024-10-19 06:56:16 +00:00
BuildRequires: go >= 1.23.2
2024-07-18 17:54:38 +03:00
BuildRequires: git-core
BuildRequires: upx
2024-11-23 08:53:29 +00:00
BuildRequires: pkgconfig(openssl3.3)
2024-07-18 17:54:38 +03:00
%description
%{summary}
%prep
%setup -qn %{name}-v%{version}
%build
export GOPROXY=direct
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}