%bcond_with output_unirec %global _unitdir %{_prefix}/lib/systemd/system Name: ipfixprobe-nemea Version: 5.0.0 Release: 20250328142516%{?dist} Summary: IPFIX flow exporter with various extending IPFIX elements exported by plugins. URL: https://github.com/CESNET/ipfixprobe Group: Liberouter License: BSD Vendor: CESNET, z.s.p.o. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release} Provides: ipfixprobe Obsoletes: ipfixprobe-ndp < 5.0.0 Obsoletes: ipfixprobe-dpdk < 5.0.0 Conflicts: ipfixprobe, ipfixprobe-msec, ipfixprobe-process-experimental Source0: %{name}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release} %if 0%{?rhel} == 8 BuildRequires: gcc-toolset-14 BuildRequires: gcc-toolset-14-gcc BuildRequires: gcc-toolset-14-gcc-c++ %endif %if 0%{?rhel} == 9 BuildRequires: gcc >= 10 BuildRequires: gcc-c++ >= 10 %endif BuildRequires: make BuildRequires: cmake >= 3.12 BuildRequires: libunwind-devel BuildRequires: gcc-toolset-14-libatomic-devel BuildRequires: pkgconfig BuildRequires: lz4-devel BuildRequires: openssl-devel BuildRequires: nemea-framework-devel BuildRequires: git Requires: libatomic Requires: fuse3 Requires: lz4 Requires: openssl %description ipfixprobe is a network traffic analysis tool that exports IPFIX flows with extended elements via plugins. Builded with NEMEA support. %if %{with output_unirec} %package output-unirec Summary: Output plugin to export records in unirec format. BuildRequires: unirec Requires: unirec Requires: ipfixprobe-nemea %description output-unirec Output plugin for unirec. %endif # Make sure that build is always performed out-of-source %undefine __cmake_in_source_build %prep %autosetup %build %if 0%{?rhel} == 8 source /opt/rh/gcc-toolset-14/enable %endif %cmake -DCMAKE_BUILD_TYPE=Release -DENABLE_NEMEA=ON %{?with_output_unirec: -DENABLE_OUTPUT_UNIREC=ON} %cmake_build %install %cmake_install %files %license LICENSE %{_bindir}/ipfixprobe %{_bindir}/ipfixprobed %{_libdir}/ipfixprobe/input/libipfixprobe-input-raw.so %{_libdir}/ipfixprobe/output/libipfixprobe-output-ipfix.so %{_libdir}/ipfixprobe/output/libipfixprobe-output-text.so %{_libdir}/ipfixprobe/process/libipfixprobe-process-basicplus.so %{_libdir}/ipfixprobe/process/libipfixprobe-process-bstats.so %{_libdir}/ipfixprobe/process/libipfixprobe-process-dns.so %{_libdir}/ipfixprobe/process/libipfixprobe-process-dnssd.so %{_libdir}/ipfixprobe/process/libipfixprobe-process-flowhash.so %{_libdir}/ipfixprobe/process/libipfixprobe-process-http.so %{_libdir}/ipfixprobe/process/libipfixprobe-process-icmp.so %{_libdir}/ipfixprobe/process/libipfixprobe-process-pstats.so %{_libdir}/ipfixprobe/process/libipfixprobe-process-phists.so %{_libdir}/ipfixprobe/process/libipfixprobe-process-ovpn.so %{_libdir}/ipfixprobe/process/libipfixprobe-process-vlan.so %{_libdir}/ipfixprobe/process/libipfixprobe-process-osquery.so %{_libdir}/ipfixprobe/process/libipfixprobe-process-netbios.so %{_libdir}/ipfixprobe/process/libipfixprobe-process-tls.so %{_libdir}/ipfixprobe/process/libipfixprobe-process-wg.so %{_libdir}/ipfixprobe/process/libipfixprobe-process-smtp.so %{_libdir}/ipfixprobe/process/libipfixprobe-process-quic.so %{_libdir}/ipfixprobe/process/libipfixprobe-process-idpcontent.so %{_libdir}/ipfixprobe/process/libipfixprobe-process-mqtt.so %{_libdir}/ipfixprobe/process/libipfixprobe-process-passivedns.so %{_libdir}/ipfixprobe/process/libipfixprobe-process-ssadetector.so %{_libdir}/ipfixprobe/process/libipfixprobe-process-ssdp.so %{_libdir}/ipfixprobe/storage/libipfixprobe-storage-cache.so %{_sysconfdir}/ipfixprobe/link0.conf.example %{_sysconfdir}/ipfixprobe/dpdk_direct.conf.example %{_sysconfdir}/ipfixprobe/dpdk_mring.conf.example %{_unitdir}/ipfixprobe-monitoring.target %{_unitdir}/ipfixprobe@.service %if %{with output_unirec} %files output-unirec %{_libdir}/ipfixprobe/output/libipfixprobe-output-unirec.so %endif %changelog