This commit is contained in:
Sergey Zhemoytel 2023-09-23 21:58:07 +00:00
parent 81fe7d9194
commit f624dea411

View file

@ -7,7 +7,7 @@ Release: 1
Summary: Find credentials Summary: Find credentials
URL: https://trufflesecurity.com URL: https://trufflesecurity.com
Source0: https://github.com/trufflesecurity/trufflehog/archive/v%{version}/%{name}-%{version}.tar.gz Source0: https://github.com/trufflesecurity/trufflehog/archive/v%{version}/%{name}-%{version}.tar.gz
License: AGPL-3.0 License: AGPLv3
Group: Development/Other Group: Development/Other
BuildRequires: go >= 1.21 BuildRequires: go >= 1.21
BuildRequires: git-core BuildRequires: git-core
@ -29,8 +29,9 @@ and billions of TLS certificates using our Driftwood technology.
%setup -q %setup -q
%build %build
go mod download export GOPROXY=direct
CGO_ENABLED=0 go build -a -o bin/trufflehog main.go
CGO_ENABLED=0 go build --ldflags="-s -w" -a -o bin/trufflehog main.go
upx bin/%{name} upx bin/%{name}
%install %install