|
| 1 | +%bcond_with output_unirec |
| 2 | + |
| 3 | +%global _unitdir %{_prefix}/lib/systemd/system |
| 4 | + |
| 5 | +Name: ipfixprobe-nemea |
| 6 | +Version: @VERSION@ |
| 7 | +Release: @RELEASE@%{?dist} |
| 8 | +Summary: IPFIX flow exporter with various extending IPFIX elements exported by plugins. |
| 9 | +URL: https://github.com/CESNET/ipfixprobe |
| 10 | +Group: Liberouter |
| 11 | +License: BSD |
| 12 | +Vendor: CESNET, z.s.p.o. |
| 13 | +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release} |
| 14 | +Provides: ipfixprobe-nemea |
| 15 | +Source0: %{name}-%{version}.tar.gz |
| 16 | + |
| 17 | +%if %{with output_unirec} |
| 18 | +%package output-unirec |
| 19 | +Summary: Output plugin to export records in unirec format. |
| 20 | + |
| 21 | +%description output-unirec |
| 22 | +Output plugin for unirec. |
| 23 | + |
| 24 | +BuildRequires: unirec |
| 25 | +Requires: unirec |
| 26 | +Requires: ipfixprobe-nemea |
| 27 | +%endif |
| 28 | + |
| 29 | +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release} |
| 30 | +BuildRequires: (gcc >= 10 or gcc-toolset-13-gcc) |
| 31 | +BuildRequires: (gcc-c++ >= 10 or gcc-toolset-13-gcc-c++) |
| 32 | +BuildRequires: make |
| 33 | +BuildRequires: cmake >= 3.12 |
| 34 | +BuildRequires: libunwind-devel |
| 35 | +BuildRequires: gcc-toolset-14-libatomic-devel |
| 36 | +BuildRequires: doxygen |
| 37 | +BuildRequires: pkgconfig |
| 38 | +BuildRequires: lz4-devel |
| 39 | +BuildRequires: openssl-devel |
| 40 | +BuildRequires: nemea-framework-devel |
| 41 | + |
| 42 | +Requires: libatomic |
| 43 | +Requires: fuse3 |
| 44 | +Requires: telemetry |
| 45 | +Requires: lz4 |
| 46 | +Requires: openssl |
| 47 | + |
| 48 | +# Make sure that build is always performed out-of-source |
| 49 | +%undefine __cmake_in_source_build |
| 50 | + |
| 51 | +%description |
| 52 | +The package contains tools, configuration files and traffic samples |
| 53 | +that make up the main components of the test environment. |
| 54 | + |
| 55 | +%prep |
| 56 | +%autosetup |
| 57 | + |
| 58 | +%build |
| 59 | +%cmake -DCMAKE_BUILD_TYPE=Release -DENABLE_NEMEA=ON %{?with_output_unirec: -DENABLE_OUTPUT_UNIREC=ON} |
| 60 | +%cmake_build |
| 61 | + |
| 62 | +%install |
| 63 | +%cmake_install |
| 64 | + |
| 65 | +%files |
| 66 | +%license LICENSE |
| 67 | +%{_bindir}/ipfixprobe |
| 68 | +%{_bindir}/ipfixprobed |
| 69 | + |
| 70 | +%{_libdir}/ipfixprobe/input/libipfixprobe-input-raw.so |
| 71 | + |
| 72 | +%{_libdir}/ipfixprobe/output/libipfixprobe-output-ipfix.so |
| 73 | +%{_libdir}/ipfixprobe/output/libipfixprobe-output-text.so |
| 74 | + |
| 75 | +%{_libdir}/ipfixprobe/process/libipfixprobe-process-basicplus.so |
| 76 | +%{_libdir}/ipfixprobe/process/libipfixprobe-process-bstats.so |
| 77 | +%{_libdir}/ipfixprobe/process/libipfixprobe-process-dns.so |
| 78 | +%{_libdir}/ipfixprobe/process/libipfixprobe-process-dnssd.so |
| 79 | +%{_libdir}/ipfixprobe/process/libipfixprobe-process-flowhash.so |
| 80 | +%{_libdir}/ipfixprobe/process/libipfixprobe-process-http.so |
| 81 | +%{_libdir}/ipfixprobe/process/libipfixprobe-process-icmp.so |
| 82 | +%{_libdir}/ipfixprobe/process/libipfixprobe-process-pstats.so |
| 83 | +%{_libdir}/ipfixprobe/process/libipfixprobe-process-phists.so |
| 84 | +%{_libdir}/ipfixprobe/process/libipfixprobe-process-ovpn.so |
| 85 | +%{_libdir}/ipfixprobe/process/libipfixprobe-process-vlan.so |
| 86 | +%{_libdir}/ipfixprobe/process/libipfixprobe-process-osquery.so |
| 87 | +%{_libdir}/ipfixprobe/process/libipfixprobe-process-netbios.so |
| 88 | +%{_libdir}/ipfixprobe/process/libipfixprobe-process-tls.so |
| 89 | +%{_libdir}/ipfixprobe/process/libipfixprobe-process-wg.so |
| 90 | +%{_libdir}/ipfixprobe/process/libipfixprobe-process-smtp.so |
| 91 | +%{_libdir}/ipfixprobe/process/libipfixprobe-process-quic.so |
| 92 | +%{_libdir}/ipfixprobe/process/libipfixprobe-process-idpcontent.so |
| 93 | +%{_libdir}/ipfixprobe/process/libipfixprobe-process-mqtt.so |
| 94 | +%{_libdir}/ipfixprobe/process/libipfixprobe-process-passivedns.so |
| 95 | +%{_libdir}/ipfixprobe/process/libipfixprobe-process-ssadetector.so |
| 96 | +%{_libdir}/ipfixprobe/process/libipfixprobe-process-ssdp.so |
| 97 | + |
| 98 | +%{_libdir}/ipfixprobe/storage/libipfixprobe-storage-cache.so |
| 99 | + |
| 100 | +%{_sysconfdir}/ipfixprobe/link0.conf.example |
| 101 | +%{_sysconfdir}/ipfixprobe/dpdk_direct.conf.example |
| 102 | +%{_sysconfdir}/ipfixprobe/dpdk_mring.conf.example |
| 103 | + |
| 104 | +%{_unitdir}/ipfixprobe-monitoring.target |
| 105 | + |
| 106 | + |
| 107 | +%if %{with output_unirec} |
| 108 | +%files output-unirec |
| 109 | +%{_libdir}/ipfixprobe/output/libipfixprobe-output-unirec.so |
| 110 | +%endif |
| 111 | + |
| 112 | + |
| 113 | +%changelog |
0 commit comments