mirror of
https://abf.rosa.ru/djam/tfsec.git
synced 2025-02-23 16:12:52 +00:00
Imported from SRPM
This commit is contained in:
commit
d27b7db6ef
2 changed files with 38 additions and 0 deletions
2
.abf.yml
Normal file
2
.abf.yml
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
sources:
|
||||||
|
tfsec-0.58.4.tar.gz: d235da85e01ab999b33904817a79b61f55a3cd8b
|
36
tfsec.spec
Normal file
36
tfsec.spec
Normal file
|
@ -0,0 +1,36 @@
|
||||||
|
%define debug %nil
|
||||||
|
%define debug_package %nil
|
||||||
|
|
||||||
|
Name: tfsec
|
||||||
|
Version: 0.58.4
|
||||||
|
Release: 1
|
||||||
|
Summary: Security scanner for your Terraform code
|
||||||
|
URL: https://tfsec.dev
|
||||||
|
Source0: https://github.com/aquasecurity/tfsec/archive/v%{version}/%{name}-%{version}.tar.gz
|
||||||
|
License: MIT
|
||||||
|
Group: Development/Other
|
||||||
|
BuildRequires: go >= 1.11
|
||||||
|
BuildRequires: git-core
|
||||||
|
BuildRequires: upx
|
||||||
|
|
||||||
|
%description
|
||||||
|
tfsec uses static analysis of your terraform templates
|
||||||
|
to spot potential security issues. Now with terraform CDK support.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q
|
||||||
|
|
||||||
|
%build
|
||||||
|
#GO111MODULE=on CGO_ENABLED=0 go build -ldflags "-X github.com/aquasecurity/tfsec/version.Version=%{version}" ./cmd/tfsec
|
||||||
|
|
||||||
|
GO111MODULE=on CGO_ENABLED=0 go build -ldflags "-X github.com/aquasecurity/tfsec/version.Version=%{version} -s -w -extldflags \"-fno-PIC -static\"" -o bin/%{name} ./cmd/%{name}/
|
||||||
|
|
||||||
|
upx bin/*
|
||||||
|
|
||||||
|
%install
|
||||||
|
install -Dm0755 bin/%{name} %{buildroot}%{_bindir}/%{name}
|
||||||
|
|
||||||
|
%files
|
||||||
|
%doc README.md LICENSE
|
||||||
|
%{_bindir}/%{name}
|
||||||
|
|
Loading…
Add table
Reference in a new issue