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

45 lines
914 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}
2024-10-18 16:16:53 +00:00
Version: 17.5.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
BuildRequires: go >= 1.16
BuildRequires: git-core
BuildRequires: upx
%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}