Skip to content

Commit fad8953

Browse files
author
Pavel Siska
committed
RPM spec: Update ipfixprobe-nemea.spec.in
1 parent 65243ce commit fad8953

File tree

1 file changed

+30
-18
lines changed

1 file changed

+30
-18
lines changed

pkg/rpm/ipfixprobe-nemea.spec.in

Lines changed: 30 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -11,27 +11,24 @@ Group: Liberouter
1111
License: BSD
1212
Vendor: CESNET, z.s.p.o.
1313
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}
14-
Provides: ipfixprobe-nemea
14+
Provides: ipfixprobe
1515
Obsoletes: ipfixprobe-ndp < 5.0.0
1616
Obsoletes: ipfixprobe-dpdk < 5.0.0
1717
Conflicts: ipfixprobe, ipfixprobe-msec, ipfixprobe-process-experimental
1818
Source0: %{name}-%{version}.tar.gz
1919

20-
%if %{with output_unirec}
21-
%package output-unirec
22-
Summary: Output plugin to export records in unirec format.
23-
24-
%description output-unirec
25-
Output plugin for unirec.
20+
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}
21+
%if 0%{?rhel} == 8
22+
BuildRequires: gcc-toolset-14
23+
BuildRequires: gcc-toolset-14-gcc
24+
BuildRequires: gcc-toolset-14-gcc-c++
25+
%endif
2626

27-
BuildRequires: unirec
28-
Requires: unirec
29-
Requires: ipfixprobe-nemea
27+
%if 0%{?rhel} == 9
28+
BuildRequires: gcc >= 10
29+
BuildRequires: gcc-c++ >= 10
3030
%endif
3131

32-
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}
33-
BuildRequires: (gcc >= 10 or gcc-toolset-13-gcc)
34-
BuildRequires: (gcc-c++ >= 10 or gcc-toolset-13-gcc-c++)
3532
BuildRequires: make
3633
BuildRequires: cmake >= 3.12
3734
BuildRequires: libunwind-devel
@@ -40,24 +37,39 @@ BuildRequires: pkgconfig
4037
BuildRequires: lz4-devel
4138
BuildRequires: openssl-devel
4239
BuildRequires: nemea-framework-devel
40+
BuildRequires: git
4341

4442
Requires: libatomic
4543
Requires: fuse3
46-
Requires: telemetry
4744
Requires: lz4
4845
Requires: openssl
4946

47+
%description
48+
ipfixprobe is a network traffic analysis tool that exports IPFIX flows with extended elements via plugins.
49+
Builded with NEMEA support.
50+
51+
%if %{with output_unirec}
52+
%package output-unirec
53+
Summary: Output plugin to export records in unirec format.
54+
BuildRequires: unirec
55+
Requires: unirec
56+
Requires: ipfixprobe-nemea
57+
58+
%description output-unirec
59+
Output plugin for unirec.
60+
%endif
61+
62+
5063
# Make sure that build is always performed out-of-source
5164
%undefine __cmake_in_source_build
5265

53-
%description
54-
The package contains tools, configuration files and traffic samples
55-
that make up the main components of the test environment.
56-
5766
%prep
5867
%autosetup
5968

6069
%build
70+
%if 0%{?rhel} == 8
71+
source /opt/rh/gcc-toolset-14/enable
72+
%endif
6173
%cmake -DCMAKE_BUILD_TYPE=Release -DENABLE_NEMEA=ON %{?with_output_unirec: -DENABLE_OUTPUT_UNIREC=ON}
6274
%cmake_build
6375

0 commit comments

Comments
 (0)