mirror of
https://abf.rosa.ru/djam/terraform-provider-gitlab.git
synced 2025-02-22 15:12:53 +00:00
Imported from SRPM
This commit is contained in:
commit
7382e5a090
2 changed files with 47 additions and 0 deletions
2
.abf.yml
Normal file
2
.abf.yml
Normal file
|
@ -0,0 +1,2 @@
|
|||
sources:
|
||||
terraform-provider-gitlab-v17.1.0.tar.gz: 6cb1b6823191f8747eb540cdf8284f52fd9ff759
|
45
terraform-provider-gitlab.spec
Normal file
45
terraform-provider-gitlab.spec
Normal file
|
@ -0,0 +1,45 @@
|
|||
%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}
|
||||
Version: 17.1.0
|
||||
Release: 1
|
||||
Summary: Terraform gitlab provider
|
||||
URL: https://gitlab.com/gitlab-org/%{name}
|
||||
#Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
|
||||
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}
|
||||
|
||||
|
||||
|
||||
|
||||
|
Loading…
Add table
Reference in a new issue