# velociraptor.spec for Fedora upstream package velociraptor-0.73 %global debug_package %{nil} Name: velociraptor Version: 0.73 Release: 1%{?dist} Summary: Velociraptor - Endpoint visibility and collection tool. License: AGPL-3.0 URL: https://github.com/Velocidex/velociraptor Source0: %{url}/archive/refs/tags/v%{version}.tar.gz BuildRequires: git-core BuildRequires: golang-bin >= 1.23 %description Velociraptor is a tool for collecting host based state information using The Velociraptor Query Language (VQL) queries. %prep %setup -q %build # ensure fileb0x is in the PATH export PATH="$PATH:$(go env GOPATH)/bin" # modify make command per architecture %ifarch %{ix86} x86_64 make linux %elifarch aarch64 make linux_arm64 %else echo "Unsupported architecture: %{_arch}" >&2 exit 1 %endif %install install -m 0755 -vd %{buildroot}%{_bindir} install -m 0755 -vd %{buildroot}%{_defaultdocdir}/velociraptor/third-party install -m 0755 -vd %{buildroot}%{_defaultlicensedir}/velociraptor/third-party install -m 0644 -vp %{_builddir}/velociraptor-%{version}/README.md %{buildroot}%{_defaultdocdir}/velociraptor/README install -m 0644 -vp %{_builddir}/velociraptor-%{version}/third_party/zip/README.md %{buildroot}%{_defaultdocdir}/velociraptor/third-party/README-zip install -m 0644 -vp %{_builddir}/velociraptor-%{version}/LICENSE %{buildroot}%{_defaultlicensedir}/velociraptor/LICENSE install -m 0644 -vp %{_builddir}/velociraptor-%{version}/third_party/zip/LICENSE %{buildroot}%{_defaultlicensedir}/velociraptor/third-party/LICENSE-zip install -m 0755 -vp %{_builddir}/velociraptor-%{version}/output/velociraptor-v%{version}* %{buildroot}%{_bindir}/velociraptor %files %license %{_defaultlicensedir}/velociraptor/LICENSE %license %{_defaultlicensedir}/velociraptor/third-party/LICENSE-zip %doc docs %doc %{_defaultdocdir}/velociraptor/README %doc %{_defaultdocdir}/velociraptor/third-party/README-zip %doc debian/changelog %doc vql/windows/wmi/parse/fixtures/sample.txt %{_bindir}/* %changelog * Wed Feb 19 2025 IxÆoN HyperVoxeL - 0.73-1 - Initial package