# Spec file for Velociraptor - Endpoint Visibility and Forensic Collection Tool # Created following Fedora Go Packaging Guidelines # https://docs.fedoraproject.org/en-US/packaging-guidelines/Golang/ %global goipath github.com/Velocidex/velociraptor Version: 0.75 %gometa %global debug_package %{nil} %global common_description %{expand: Velociraptor is an advanced open-source endpoint monitoring, digital forensic and cyber response platform. It provides you with the ability to more effectively respond to a wide range of digital forensic and cyber incident response investigations and data breaches. This package provides a minimal build without the web GUI, suitable for headless server deployments, automation, and API-driven workflows.} Name: velociraptor-minimal Release: %autorelease Summary: Endpoint visibility and forensic collection tool (minimal build) License: AGPL-3.0-only AND Apache-2.0 AND BSD-2-Clause AND BSD-2-Clause-Views AND BSD-3-Clause AND GPL-2.0-only AND ISC AND LGPL-3.0-only AND LGPL-3.0-or-later WITH LGPL-3.0-linking-exception AND MIT AND MPL-2.0 URL: %{gourl} Source0: %{gosource} Source1: velociraptor-%{version}-vendor.tar.gz # Build only on architectures where Go is supported ExclusiveArch: %{go_arches} BuildRequires: golang >= 1.25 BuildRequires: go-rpm-macros BuildRequires: gcc BuildRequires: yara-devel BuildRequires: pkgconfig %description %{common_description} %prep %goprep # Extract vendor dependencies tar xf %{SOURCE1} %build # Set CGO flags for GCC 15 compatibility export CGO_CFLAGS="-std=gnu99 -Wno-error=implicit-function-declaration -Wno-error=incompatible-pointer-types" export CGO_ENABLED=1 # Building directly with Go using same tags as LinuxBare # LinuxBare uses: release, yara, disable_gui # use -mod=vendor to use vendored dependencies (required for Fedora builds) go build -mod=vendor -tags "release yara disable_gui" -o output/velociraptor-v%{version}-linux-amd64 ./bin %install # Install the binary install -D -m 0755 output/velociraptor-v*-linux-amd64 %{buildroot}%{_bindir}/velociraptor %files %license LICENSE %doc README.md %{_bindir}/velociraptor %changelog %autochangelog