@@ -9,40 +9,51 @@ Group: Liberouter
99License: BSD
1010Vendor: CESNET, z.s.p.o.
1111BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}
12- Provides: ipfixprobe-msec
12+ Provides: ipfixprobe
1313Obsoletes: ipfixprobe-ndp < 5.0.0
1414Obsoletes: ipfixprobe-dpdk < 5.0.0
1515Conflicts: ipfixprobe-nemea, ipfixprobe
1616Source0: %{name}-%{version}.tar.gz
1717
1818BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}
19- BuildRequires: (gcc >= 10 or gcc-toolset-13-gcc)
20- BuildRequires: (gcc-c++ >= 10 or gcc-toolset-13-gcc-c++)
19+ %if 0%{?rhel} == 8
20+ BuildRequires: gcc-toolset-14
21+ BuildRequires: gcc-toolset-14-gcc
22+ BuildRequires: gcc-toolset-14-gcc-c++
23+ %endif
24+
25+ %if 0%{?rhel} == 9
26+ BuildRequires: gcc >= 10
27+ BuildRequires: gcc-c++ >= 10
28+ %endif
2129BuildRequires: make
2230BuildRequires: cmake >= 3.12
2331BuildRequires: libunwind-devel
2432BuildRequires: gcc-toolset-14-libatomic-devel
2533BuildRequires: pkgconfig
2634BuildRequires: lz4-devel
2735BuildRequires: openssl-devel
36+ BuildRequires: git
2837
2938Requires: libatomic
3039Requires: fuse3
31- Requires: telemetry
3240Requires: lz4
3341Requires: openssl
3442
43+ %description
44+ IPFIXprobe is a network traffic analysis tool that exports IPFIX flows with extended elements via plugins.
45+ Export timestamp in milliseconds.
46+
3547# Make sure that build is always performed out-of-source
3648%undefine __cmake_in_source_build
3749
38- %description
39- The package contains tools, configuration files and traffic samples
40- that make up the main components of the test environment.
41-
4250%prep
4351%autosetup
4452
4553%build
54+ %if 0%{?rhel} == 8
55+ source /opt/rh/gcc-toolset-14/enable
56+ %endif
4657%cmake -DCMAKE_BUILD_TYPE=Release -DENABLE_MILISECONDS_TIMESTAMP=ON
4758%cmake_build
4859
0 commit comments