tfsec/tfsec.spec

38 lines
1,005 B
RPMSpec
Raw Permalink Normal View History

2021-08-23 12:15:52 +03:00
%define debug %nil
%define debug_package %nil
Name: tfsec
2025-02-17 15:31:01 +00:00
Version: 1.28.13
2021-08-23 12:15:52 +03:00
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
2025-02-17 15:29:11 +00:00
export GOPROXY=https://proxy.golang.org,direct
2021-08-23 12:15:52 +03:00
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}