Skip to content

Commit fcc1cc8

Browse files
committed
Clickhouse - add spec file
1 parent 9c6c5c6 commit fcc1cc8

File tree

1 file changed

+51
-0
lines changed

1 file changed

+51
-0
lines changed
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 export of IPFIX flow records into a ClickHouse database.
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)