Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 19 additions & 8 deletions pkg/rpm/ipfixprobe-msec.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -9,40 +9,51 @@ Group: Liberouter
License: BSD
Vendor: CESNET, z.s.p.o.
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}
Provides: ipfixprobe-msec
Provides: ipfixprobe
Obsoletes: ipfixprobe-ndp < 5.0.0
Obsoletes: ipfixprobe-dpdk < 5.0.0
Conflicts: ipfixprobe-nemea, ipfixprobe
Source0: %{name}-%{version}.tar.gz

BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}
BuildRequires: (gcc >= 10 or gcc-toolset-13-gcc)
BuildRequires: (gcc-c++ >= 10 or gcc-toolset-13-gcc-c++)
%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: git

Requires: libatomic
Requires: fuse3
Requires: telemetry
Requires: lz4
Requires: openssl

%description
ipfixprobe is a network traffic analysis tool that exports IPFIX flows with extended elements via plugins.
Export timestamp in milliseconds.

# Make sure that build is always performed out-of-source
%undefine __cmake_in_source_build

%description
The package contains tools, configuration files and traffic samples
that make up the main components of the test environment.

%prep
%autosetup

%build
%if 0%{?rhel} == 8
source /opt/rh/gcc-toolset-14/enable
%endif
%cmake -DCMAKE_BUILD_TYPE=Release -DENABLE_MILISECONDS_TIMESTAMP=ON
%cmake_build

Expand Down
48 changes: 30 additions & 18 deletions pkg/rpm/ipfixprobe-nemea.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -11,27 +11,24 @@ Group: Liberouter
License: BSD
Vendor: CESNET, z.s.p.o.
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}
Provides: ipfixprobe-nemea
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

%if %{with output_unirec}
%package output-unirec
Summary: Output plugin to export records in unirec format.

%description output-unirec
Output plugin for unirec.
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

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

BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}
BuildRequires: (gcc >= 10 or gcc-toolset-13-gcc)
BuildRequires: (gcc-c++ >= 10 or gcc-toolset-13-gcc-c++)
BuildRequires: make
BuildRequires: cmake >= 3.12
BuildRequires: libunwind-devel
Expand All @@ -40,24 +37,39 @@ BuildRequires: pkgconfig
BuildRequires: lz4-devel
BuildRequires: openssl-devel
BuildRequires: nemea-framework-devel
BuildRequires: git

Requires: libatomic
Requires: fuse3
Requires: telemetry
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

%description
The package contains tools, configuration files and traffic samples
that make up the main components of the test environment.

%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

Expand Down
71 changes: 40 additions & 31 deletions pkg/rpm/ipfixprobe.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -20,37 +20,65 @@ Obsoletes: ipfixprobe-dpdk < 5.0.0
Conflicts: ipfixprobe-nemea, ipfixprobe-msec
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: 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.

%if %{with input_pcap}
%package input-pcap
Summary: Input plugin to read packets from files and interfaces using libpcap.
Requires: libpcap
BuildRequires: libpcap-devel

%description input-pcap
Input plugin for libpcap.

BuildRequires: libpcap-devel
Requires: libpcap
%endif

%if %{with input_dpdk}
%package input-dpdk
Summary: Input plugin to read packets from interfaces using dpdk.
BuildRequires: dpdk-devel
Requires: dpdk

%description input-dpdk
Input plugin for dpdk.

BuildRequires: dpdk-devel
Requires: dpdk
%endif

%if %{with input_nfb}
%package input-nfb
Summary: Input plugin to read packets from nfb cards.
BuildRequires: nfb-framework
BuildRequires: numactl-devel
Requires: nfb-framework
Requires: numactl

%description input-nfb
Input plugin for nfb cards.

BuildRequires: nfb-framework
Requires: nfb-framework
%endif

%if %{with process_experimental}
Expand All @@ -59,37 +87,18 @@ Summary: Experimental process plugins.

%description process-experimental
Experimental process plugins.

%endif

BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}
BuildRequires: (gcc >= 10 or gcc-toolset-13-gcc)
BuildRequires: (gcc-c++ >= 10 or gcc-toolset-13-gcc-c++)
BuildRequires: make
BuildRequires: cmake >= 3.12
BuildRequires: libunwind-devel
BuildRequires: gcc-toolset-14-libatomic-devel
BuildRequires: pkgconfig
BuildRequires: lz4-devel
BuildRequires: openssl-devel

Requires: libatomic
Requires: fuse3
Requires: telemetry
Requires: lz4
Requires: openssl

# Make sure that build is always performed out-of-source
%undefine __cmake_in_source_build

%description
The package contains tools, configuration files and traffic samples
that make up the main components of the test environment.

%prep
%autosetup

%build
%if 0%{?rhel} == 8
source /opt/rh/gcc-toolset-14/enable
%endif
%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_process_experimental: -DENABLE_PROCESS_EXPERIMENTAL=ON}
%cmake_build

Expand Down