File tracee.spec of Package tracee

#
# spec file for package tracee
#
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via https://bugs.opensuse.org/
#


Name:           tracee
Version:        1741873839~gf0ab6a11
Release:        0
Summary:	eBPF tracer written in Go
# FIXME: Select a correct license from https://github.com/openSUSE/spec-cleaner#spdx-licenses
License:        Apache-2.0
URL:            https://github.com/aquasecurity/tracee
Source:         %{name}-%{version}.tar.gz
Source1:	%{name}-go_modules.tar.gz
Source2:	%{name}-api-go_modules.tar.gz
Source3:	%{name}-types-go_modules.tar.gz
Source4:	%{name}-helpers-go_modules.tar.gz
BuildRequires:  golang(API) >= 1.24
BuildRequires:	make
BuildRequires:	pkgconfig(libelf)
BuildRequires:	pkgconfig(libbpf)
BuildRequires:	llvm >= 18
BuildRequires:	clang >= 18

%description

%prep
%autosetup -p1
%setup -T -D -a 2
mv vendor api/

%setup -T -D -a 3
mv vendor types/

%setup -T -D -a 4
mv vendor signatures/helpers/

%setup -T -D -a 1

%build
make tracee CMD_GIT=true
#make bpf CMD_GIT=true
#make tracee-ebpf CMD_GIT=true
#make tracee CMD_GIT=true

%install
%{__install} -D -m 755 dist/tracee %{buildroot}%{_bindir}/tracee


%files
%license LICENSE
%doc NOTICE Readme.md
%{_bindir}/tracee

%changelog

openSUSE Build Service is sponsored by