mirror of
https://abf.rosa.ru/djam/pulumi.git
synced 2025-02-23 03:32:46 +00:00
3.69.0
This commit is contained in:
parent
6b59d5699f
commit
745979752d
2 changed files with 50 additions and 5 deletions
1
pulumi.rpmlintrc
Normal file
1
pulumi.rpmlintrc
Normal file
|
@ -0,0 +1 @@
|
||||||
|
addFilter("E: shared-lib-without-dependency-information")
|
54
pulumi.spec
54
pulumi.spec
|
@ -8,6 +8,7 @@ Release: 1
|
||||||
Summary: Modern Infrastructure as Code
|
Summary: Modern Infrastructure as Code
|
||||||
URL: https://www.pulumi.com
|
URL: https://www.pulumi.com
|
||||||
Source0: https://github.com/pulumi/pulumi/archive/v%{version}/%{name}-%{version}.tar.gz
|
Source0: https://github.com/pulumi/pulumi/archive/v%{version}/%{name}-%{version}.tar.gz
|
||||||
|
Source1000: %{name}.rpmlintrc
|
||||||
License: ASL 2.0
|
License: ASL 2.0
|
||||||
Group: Development/Other
|
Group: Development/Other
|
||||||
BuildRequires: go >= 1.16
|
BuildRequires: go >= 1.16
|
||||||
|
@ -38,6 +39,32 @@ Pulumi language go
|
||||||
|
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
%package -n %{name}-language-python
|
||||||
|
Summary: Pulumi laguage python
|
||||||
|
Requires: %{name} %{EVRD}
|
||||||
|
|
||||||
|
%description -n %{name}-language-python
|
||||||
|
Pulumi language python
|
||||||
|
|
||||||
|
%files -n %{name}-language-python
|
||||||
|
%doc README.md LICENSE
|
||||||
|
%{_bindir}/%{name}-language-python
|
||||||
|
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
%package -n %{name}-language-nodejs
|
||||||
|
Summary: Pulumi language nodejs
|
||||||
|
Requires: %{name} = %{EVRD}
|
||||||
|
|
||||||
|
%description -n %{name}-language-nodejs
|
||||||
|
Pulumi language nodejs
|
||||||
|
|
||||||
|
%files -n %{name}-language-nodejs
|
||||||
|
%doc README.md LICENSE
|
||||||
|
%{_bindir}/%{name}-language-nodejs
|
||||||
|
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
%build
|
%build
|
||||||
export GO111MODULE=on
|
export GO111MODULE=on
|
||||||
pushd pkg
|
pushd pkg
|
||||||
|
@ -45,19 +72,36 @@ go mod download
|
||||||
go build "-buildmode=pie" -ldflags "-s -w -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
|
popd
|
||||||
|
|
||||||
# build pulumi-language-go
|
# build pulumi-language
|
||||||
pushd sdk
|
pushd sdk
|
||||||
go mod download
|
go mod download
|
||||||
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
|
# golang
|
||||||
#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
|
pushd go/pulumi-language-go
|
||||||
|
go build -ldflags "-s -w -X github.com/pulumi/pulumi/sdk/v3/go/common/version.Version=%{version}" -o ../../../bin/%{name}-language-go .
|
||||||
popd
|
popd
|
||||||
|
|
||||||
|
# python3
|
||||||
|
pushd python/cmd/pulumi-language-python
|
||||||
|
go build -ldflags "-X github.com/pulumi/pulumi/sdk/v3/go/common/version.Version=%{version}" -o ../../../../bin/%{name}-language-python .
|
||||||
|
popd
|
||||||
|
|
||||||
|
# nodejs
|
||||||
|
pushd nodejs/cmd/pulumi-language-nodejs
|
||||||
|
#make
|
||||||
|
go build -ldflags "-X github.com/pulumi/pulumi/sdk/v3/go/common/version.Version=%{version}" -o ../../../../bin/%{name}-language-nodejs .
|
||||||
|
popd
|
||||||
|
|
||||||
|
popd
|
||||||
|
|
||||||
|
|
||||||
upx bin/*
|
upx bin/*
|
||||||
|
|
||||||
%install
|
%install
|
||||||
install -Dm0755 bin/%{name} %{buildroot}%{_bindir}/%{name}
|
install -Dm0755 bin/%{name} %{buildroot}%{_bindir}/%{name}
|
||||||
install -Dm0755 bin/pulumi-language-go %{buildroot}%{_bindir}/%{name}-language-go
|
install -Dm0755 bin/%{name}-language-go %{buildroot}%{_bindir}/%{name}-language-go
|
||||||
|
install -Dm0755 bin/%{name}-language-python %{buildroot}%{_bindir}/%{name}-language-python
|
||||||
|
install -Dm0755 bin/%{name}-language-nodejs %{buildroot}%{_bindir}/%{name}-language-nodejs
|
||||||
|
|
||||||
# install bash completion
|
# install bash completion
|
||||||
install -d %{buildroot}%{_sysconfdir}/bash_completion.d/
|
install -d %{buildroot}%{_sysconfdir}/bash_completion.d/
|
||||||
|
|
Loading…
Add table
Reference in a new issue