File goflow2.spec of Package goflow2
#
# spec file for package goflow2
#
# Copyright (c) 2021-2026, Martin Hauke <mardnh@gmx.de>
#
# 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: goflow2
Version: 2.2.6
Release: 0
Summary: NetFlow/IPFIX/sFlow collector
License: BSD-3-Clause
Group: System/Monitoring
URL: https://github.com/netsampler/goflow2
Source: https://github.com/netsampler/goflow2/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
Source1: vendor.tar.gz
BuildRequires: go
BuildRequires: golang-packaging
%{go_provides}
%description
This application is a NetFlow/IPFIX/sFlow collector in Go.
It gathers network information (IP, interfaces, routers) from different
flow protocols, serializes it in a common format.
This software provides the entry point of a pipeline. The storage,
transport, enrichment, graphing, alerting are not provided.
%prep
%autosetup -a 1
%build
go build -mod=vendor -buildmode=pie -o bin/enricher cmd/enricher/main.go
go build -mod=vendor -buildmode=pie -o bin/goflow2 cmd/goflow2/main.go
%install
for f in enricher goflow2; do
install -D -m0755 "bin/$f" "%{buildroot}%{_bindir}/$f"
done
%check
%files
%license LICENSE
%doc README.md
%{_bindir}/enricher
%{_bindir}/goflow2
%changelog