mirror of
https://abf.rosa.ru/djam/pulumi.git
synced 2025-02-23 09:12:50 +00:00
compressed binaries
This commit is contained in:
parent
8e582037b1
commit
8868938fea
1 changed files with 6 additions and 3 deletions
|
@ -4,7 +4,7 @@
|
|||
|
||||
Name: pulumi
|
||||
Version: 3.18.0
|
||||
Release: 1
|
||||
Release: 2
|
||||
Summary: Modern Infrastructure as Code
|
||||
URL: https://www.pulumi.com
|
||||
Source0: https://github.com/pulumi/pulumi/archive/v%{version}/%{name}-%{version}.tar.gz
|
||||
|
@ -12,6 +12,7 @@ License: ASL 2.0
|
|||
Group: Development/Other
|
||||
BuildRequires: go >= 1.16
|
||||
BuildRequires: git-core
|
||||
BuildRequires: upx
|
||||
|
||||
%description
|
||||
Pulumi's Infrastructure as Code SDK is the easiest way to
|
||||
|
@ -41,17 +42,19 @@ Pulumi language go
|
|||
export GO111MODULE=on
|
||||
pushd pkg
|
||||
go mod download
|
||||
go build "-buildmode=pie" -ldflags "-X github.com/pulumi/pulumi/pkg/v3/version.Version=%{version}" -o ../bin/%{name} ./cmd/pulumi
|
||||
go build "-buildmode=pie" -ldflags "-s -w -X github.com/pulumi/pulumi/pkg/v3/version.Version=%{version}" -o ../bin/%{name} ./cmd/pulumi
|
||||
popd
|
||||
|
||||
# build pulumi-language-go
|
||||
pushd sdk
|
||||
go mod download
|
||||
go build -ldflags "-X github.com/pulumi/pulumi/sdk/v3/go/common/version.Version=%{version}" -o ../bin/%{name}-language-go ../sdk/go/%{name}-language-go
|
||||
go build -ldflags "-s -w -X github.com/pulumi/pulumi/sdk/v3/go/common/version.Version=%{version}" -o ../bin/%{name}-language-go ../sdk/go/%{name}-language-go
|
||||
#go build -ldflags "-X github.com/pulumi/pulumi/sdk/v3/go/common/version.Version=%{version}" -o ../bin/%{name}-language-python ../sdk/python/cmd/%{name}-language-python
|
||||
#go build -ldflags "-X github.com/pulumi/pulumi/sdk/v3/go/common/version.Version=%{version}" -o ../bin/%{name}-language-javascript ../sdk/nodejs/cmd/%{name}-language-nodejs
|
||||
popd
|
||||
|
||||
upx bin/*
|
||||
|
||||
%install
|
||||
install -Dm0755 bin/%{name} %{buildroot}%{_bindir}/%{name}
|
||||
install -Dm0755 bin/pulumi-language-go %{buildroot}%{_bindir}/%{name}-language-go
|
||||
|
|
Loading…
Add table
Reference in a new issue