Skip to content

Commit 77c15cf

Browse files
authored
Merge pull request #274 from CESNET/nemea-process-experimental-rpm
RPM spec: add conditional build of ipfixprobe-nemea-process-experimental package
2 parents c1b1a88 + ccf646a commit 77c15cf

File tree

4 files changed

+23
-3
lines changed

4 files changed

+23
-3
lines changed

.github/workflows/rpm-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
- name: make rpm-nemea
3939
run: |
4040
cd build
41-
cmake3 .. -DCMAKE_BUILD_TYPE=Release -DENABLE_OUTPUT_UNIREC=ON
41+
cmake3 .. -DCMAKE_BUILD_TYPE=Release -DENABLE_OUTPUT_UNIREC=ON -DENABLE_PROCESS_EXPERIMENTAL=ON
4242
make rpm-nemea
4343
- name: extract artifact name
4444
run: |

.github/workflows/rpm-install.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@ jobs:
3030
run: |
3131
dnf install -y $(ls *.rpm | grep -Ev 'ipfixprobe-msec|ipfixprobe-nemea|ipfixprobe-output-unirec|debuginfo|debugsource')
3232
dnf install -y $(ls ipfixprobe-msec-*.rpm | grep -Ev 'debuginfo|debugsource') --allowerasing
33-
dnf install -y $(ls ipfixprobe-nemea-*.rpm ipfixprobe-output-unirec*.rpm | grep -Ev 'debuginfo|debugsource') --allowerasing
33+
dnf install -y $(ls ipfixprobe-nemea-*.rpm | grep -Ev 'debuginfo|debugsource') --allowerasing

pkg/rpm/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,10 @@ if (ENABLE_OUTPUT_UNIREC)
7474
list(APPEND RPMBUILD_ARGS_NEMEA "--with" "output_unirec")
7575
endif()
7676

77+
if (ENABLE_PROCESS_EXPERIMENTAL)
78+
list(APPEND RPMBUILD_ARGS_NEMEA "--with" "process_experimental")
79+
endif()
80+
7781
configure_file("${SPEC_FILE_IN_NEMEA}" "${SPEC_FILE_NEMEA}" @ONLY)
7882

7983
add_custom_target(rpm-nemea

pkg/rpm/ipfixprobe-nemea.spec.in

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
%bcond_with output_unirec
2+
%bcond_with process_experimental
23

34
%global _unitdir %{_prefix}/lib/systemd/system
45

@@ -59,6 +60,13 @@ Requires: ipfixprobe-nemea
5960
Output plugin for unirec.
6061
%endif
6162

63+
%if %{with process_experimental}
64+
%package process-experimental
65+
Summary: Experimental process plugins.
66+
67+
%description process-experimental
68+
Experimental process plugins.
69+
%endif
6270

6371
# Make sure that build is always performed out-of-source
6472
%undefine __cmake_in_source_build
@@ -70,7 +78,7 @@ Output plugin for unirec.
7078
%if 0%{?rhel} == 8
7179
source /opt/rh/gcc-toolset-14/enable
7280
%endif
73-
%cmake -DCMAKE_BUILD_TYPE=Release -DENABLE_NEMEA=ON %{?with_output_unirec: -DENABLE_OUTPUT_UNIREC=ON}
81+
%cmake -DCMAKE_BUILD_TYPE=Release -DENABLE_NEMEA=ON %{?with_output_unirec: -DENABLE_OUTPUT_UNIREC=ON} %{?with_process_experimental: -DENABLE_PROCESS_EXPERIMENTAL=ON}
7482
%cmake_build
7583

7684
%install
@@ -123,5 +131,13 @@ source /opt/rh/gcc-toolset-14/enable
123131
%{_libdir}/ipfixprobe/output/libipfixprobe-output-unirec.so
124132
%endif
125133

134+
%if %{with process_experimental}
135+
%files process-experimental
136+
%{_libdir}/ipfixprobe/process/libipfixprobe-process-nettisa.so
137+
%{_libdir}/ipfixprobe/process/libipfixprobe-process-sip.so
138+
%{_libdir}/ipfixprobe/process/libipfixprobe-process-rtsp.so
139+
%{_libdir}/ipfixprobe/process/libipfixprobe-process-mpls.so
140+
%{_libdir}/ipfixprobe/process/libipfixprobe-process-ntp.so
141+
%endif
126142

127143
%changelog

0 commit comments

Comments
 (0)