Skip to content

Commit ead73c2

Browse files
committed
...
1 parent 1d01cfc commit ead73c2

File tree

3 files changed

+55
-0
lines changed

3 files changed

+55
-0
lines changed

extra_plugins/output/clickhouse/CMakeModules/clickhouse-cpp.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ include(FetchContent)
88
set(FETCHCONTENT_QUIET OFF)
99

1010
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
11+
set(BUILD_SHARED_LIBS OFF)
1112
FetchContent_Declare(
1213
clickhouse
1314
GIT_REPOSITORY "https://github.com/ClickHouse/clickhouse-cpp.git"
@@ -17,3 +18,4 @@ FetchContent_Declare(
1718

1819
FetchContent_MakeAvailable(clickhouse)
1920
add_library(clickhouse::client ALIAS clickhouse-cpp-lib)
21+
set(BUILD_SHARED_LIBS ON)

extra_plugins/output/clickhouse/CMakeModules/fmt.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ include(FetchContent)
88
set(FETCHCONTENT_QUIET OFF)
99

1010
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
11+
set(BUILD_SHARED_LIBS OFF)
1112
FetchContent_Declare(
1213
fmt
1314
GIT_REPOSITORY "https://github.com/fmtlib/fmt"
@@ -16,3 +17,4 @@ FetchContent_Declare(
1617
)
1718

1819
FetchContent_MakeAvailable(fmt)
20+
set(BUILD_SHARED_LIBS ON)
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
Name: ipfixcol2-clickhouse-output
2+
Version: 1.0.0
3+
Release: 1%{?dist}
4+
Summary: Plugin for converting IPFIX data to Clickhouse format.
5+
6+
License: BSD
7+
URL: http://www.liberouter.org/
8+
Source0: %{name}-%{version}.tar.gz
9+
Group: Liberouter
10+
Vendor: CESNET, z.s.p.o.
11+
Packager:
12+
13+
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}
14+
BuildRequires: gcc >= 7.0, gcc-c++ >= 7.0, cmake >= 2.8.8, make
15+
BuildRequires: ipfixcol2-devel, libfds-devel, /usr/bin/rst2man
16+
Requires: ipfixcol2 >= 2.0.0, libfds >= 0.1.0
17+
18+
%description
19+
Plugin for converting IPFIX data to UniRec format.
20+
21+
%prep
22+
%autosetup
23+
24+
#%post
25+
#/sbin/ldconfig
26+
27+
#%postun
28+
#/sbin/ldconfig
29+
30+
# Build source code
31+
%build
32+
%global _vpath_builddir .
33+
%cmake .
34+
make %{?_smp_mflags}
35+
36+
# Perform installation into build directory
37+
%install
38+
mkdir -p %{buildroot}/install
39+
make install DESTDIR=%{buildroot}/install
40+
mkdir -p %{buildroot}/%{_libdir}/ipfixcol2/ %{buildroot}/%{_mandir}/man7/
41+
mv %{buildroot}/install/%{_libdir}/ipfixcol2/*.so* %{buildroot}/%{_libdir}/ipfixcol2/
42+
mv %{buildroot}/install/%{_mandir}/man7/*.7* %{buildroot}/%{_mandir}/man7/
43+
rm -rf %{buildroot}/install
44+
45+
%files
46+
%{_libdir}/ipfixcol2/*.so*
47+
%{_mandir}/man7/*.7*
48+
49+
%changelog
50+
* Thu Jan 23 2025 Michal Sedlak <[email protected]> 1.0.0-1
51+
- Initial RPM release

0 commit comments

Comments
 (0)