|
| 1 | +%bcond_with input_pcap |
| 2 | +%bcond_with input_dpdk |
| 3 | +%bcond_with input_nfb |
| 4 | +%bcond_with output_unirec |
| 5 | +%bcond_with process_experimental |
| 6 | + |
| 7 | +Name: ipfixprobe |
| 8 | +Version: @VERSION@ |
| 9 | +Release: @RELEASE@%{?dist} |
| 10 | +Summary: IPFIX flow exporter with various extending IPFIX elements exported by plugins. |
| 11 | +URL: https://github.com/CESNET/ipfixprobe |
| 12 | +Group: Liberouter |
| 13 | +License: BSD |
| 14 | +Vendor: CESNET, z.s.p.o. |
| 15 | +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release} |
| 16 | +Provides: ipfixprobe |
| 17 | +Source0: %{name}-%{version}.tar.gz |
| 18 | + |
| 19 | +%if %{with input_pcap} |
| 20 | +%package input-pcap |
| 21 | +Summary: Input plugin to read packets from files and interfaces using libpcap. |
| 22 | + |
| 23 | +%description input-pcap |
| 24 | +Input plugin for libpcap. |
| 25 | + |
| 26 | +BuildRequires: libpcap-devel |
| 27 | +Requires: libpcap |
| 28 | +%endif |
| 29 | + |
| 30 | +%if %{with input_dpdk} |
| 31 | +%package input-dpdk |
| 32 | +Summary: Input plugin to read packets from interfaces using dpdk. |
| 33 | + |
| 34 | +%description input-dpdk |
| 35 | +Input plugin for dpdk. |
| 36 | + |
| 37 | +BuildRequires: dpdk-devel |
| 38 | +Requires: dpdk |
| 39 | +%endif |
| 40 | + |
| 41 | +%if %{with input_nfb} |
| 42 | +%package input-nfb |
| 43 | +Summary: Input plugin to read packets from nfb cards. |
| 44 | + |
| 45 | +%description input-nfb |
| 46 | +Input plugin for nfb cards. |
| 47 | + |
| 48 | +BuildRequires: nfb-framework |
| 49 | +Requires: nfb-framework |
| 50 | +%endif |
| 51 | + |
| 52 | +%if %{with output_unirec} |
| 53 | +%package output-unirec |
| 54 | +Summary: Output plugin to export records in unirec format. |
| 55 | + |
| 56 | +%description output-unirec |
| 57 | +Output plugin for unirec. |
| 58 | + |
| 59 | +BuildRequires: unirec |
| 60 | +Requires: unirec |
| 61 | +%endif |
| 62 | + |
| 63 | +%if %{with process_experimental} |
| 64 | +%package process-experimental |
| 65 | +Summary: Experimental process plugins. |
| 66 | + |
| 67 | +%description process-experimental |
| 68 | +Experimental process plugins. |
| 69 | + |
| 70 | +%endif |
| 71 | + |
| 72 | +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release} |
| 73 | +BuildRequires: gcc >= 8 |
| 74 | +BuildRequires: gcc-c++ >= 8 |
| 75 | +BuildRequires: make |
| 76 | +BuildRequires: cmake >= 3.12 |
| 77 | +BuildRequires: libunwind-devel |
| 78 | +BuildRequires: libatomic-devel |
| 79 | +BuildRequires: pthread |
| 80 | +Requires: libatomic |
| 81 | +Requires: fuse3 |
| 82 | +Requires: telemetry |
| 83 | +Requires: lz4 |
| 84 | +Requires: openssl |
| 85 | +BuildRequires: doxygen |
| 86 | +BuildRequires: pkgconfig |
| 87 | +BuildRequires: lz4-devel |
| 88 | +BuildRequires: openssl-devel |
| 89 | + |
| 90 | +# Make sure that build is always performed out-of-source |
| 91 | +%undefine __cmake_in_source_build |
| 92 | + |
| 93 | +%description |
| 94 | +The package contains tools, configuration files and traffic samples |
| 95 | +that make up the main components of the test environment. |
| 96 | + |
| 97 | +%prep |
| 98 | +%autosetup |
| 99 | + |
| 100 | +%build |
| 101 | +%cmake -DCMAKE_BUILD_TYPE=Release %{?with_input_pcap:-DENABLE_INPUT_PCAP=ON} %{?with_input_dpdk:-DENABLE_INPUT_DPDK=ON} %{?with_input_nfb:-DENABLE_INPUT_NFB=ON} %{?with_output_unirec: -DENABLE_OUTPUT_UNIREC=ON} %{?with_process_experimental: -DENABLE_PROCESS_EXPERIMENTAL=ON} |
| 102 | +%cmake_build |
| 103 | + |
| 104 | +%install |
| 105 | +%cmake_install |
| 106 | + |
| 107 | +%files |
| 108 | +%license LICENSE |
| 109 | +%{_bindir}/ipfixprobe |
| 110 | +%{_libdir}/ipfixprobe/input/libipfixprobe-input-raw.so |
| 111 | + |
| 112 | +%{_libdir}/ipfixprobe/output/libipfixprobe-output-ipfix.so |
| 113 | +%{_libdir}/ipfixprobe/output/libipfixprobe-output-text.so |
| 114 | + |
| 115 | +%{_libdir}/ipfixprobe/process/libipfixprobe-process-basicplus.so |
| 116 | +%{_libdir}/ipfixprobe/process/libipfixprobe-process-bstats.so |
| 117 | +%{_libdir}/ipfixprobe/process/libipfixprobe-process-dns.so |
| 118 | +%{_libdir}/ipfixprobe/process/libipfixprobe-process-dnssd.so |
| 119 | +%{_libdir}/ipfixprobe/process/libipfixprobe-process-flowhash.so |
| 120 | +%{_libdir}/ipfixprobe/process/libipfixprobe-process-http.so |
| 121 | +%{_libdir}/ipfixprobe/process/libipfixprobe-process-icmp.so |
| 122 | +%{_libdir}/ipfixprobe/process/libipfixprobe-process-pstats.so |
| 123 | +%{_libdir}/ipfixprobe/process/libipfixprobe-process-phists.so |
| 124 | +%{_libdir}/ipfixprobe/process/libipfixprobe-process-ovpn.so |
| 125 | +%{_libdir}/ipfixprobe/process/libipfixprobe-process-vlan.so |
| 126 | +%{_libdir}/ipfixprobe/process/libipfixprobe-process-osquery.so |
| 127 | +%{_libdir}/ipfixprobe/process/libipfixprobe-process-netbios.so |
| 128 | +%{_libdir}/ipfixprobe/process/libipfixprobe-process-tls.so |
| 129 | +%{_libdir}/ipfixprobe/process/libipfixprobe-process-wg.so |
| 130 | +%{_libdir}/ipfixprobe/process/libipfixprobe-process-smtp.so |
| 131 | +%{_libdir}/ipfixprobe/process/libipfixprobe-process-quic.so |
| 132 | +%{_libdir}/ipfixprobe/process/libipfixprobe-process-idpcontent.so |
| 133 | +%{_libdir}/ipfixprobe/process/libipfixprobe-process-mqtt.so |
| 134 | +%{_libdir}/ipfixprobe/process/libipfixprobe-process-passivedns.so |
| 135 | +%{_libdir}/ipfixprobe/process/libipfixprobe-process-ssadetector.so |
| 136 | +%{_libdir}/ipfixprobe/process/libipfixprobe-process-ssdp.so |
| 137 | + |
| 138 | +%{_libdir}/ipfixprobe/storage/libipfixprobe-storage-cache.so |
| 139 | + |
| 140 | +%if %{with input_pcap} |
| 141 | +%files input-pcap |
| 142 | +%{_libdir}/ipfixprobe/input/libipfixprobe-input-pcap.so |
| 143 | +%endif |
| 144 | + |
| 145 | +%if %{with input_dpdk} |
| 146 | +%files input-dpdk |
| 147 | +%{_libdir}/ipfixprobe/input/libipfixprobe-input-dpdk.so |
| 148 | +%endif |
| 149 | + |
| 150 | +%if %{with output_unirec} |
| 151 | +%files output-unirec |
| 152 | +%{_libdir}/ipfixprobe/output/libipfixprobe-output-unirec.so |
| 153 | +%endif |
| 154 | + |
| 155 | +%if %{with process_experimental} |
| 156 | +%files process-experimental |
| 157 | +%{_libdir}/ipfixprobe/process/libipfixprobe-process-nettisa.so |
| 158 | +%{_libdir}/ipfixprobe/process/libipfixprobe-process-sip.so |
| 159 | +%{_libdir}/ipfixprobe/process/libipfixprobe-process-rtsp.so |
| 160 | +%{_libdir}/ipfixprobe/process/libipfixprobe-process-mpls.so |
| 161 | +%{_libdir}/ipfixprobe/process/libipfixprobe-process-ntp.so |
| 162 | +%endif |
| 163 | + |
| 164 | +%changelog |
0 commit comments