File silk.spec of Package silk
#
# spec file for package silk
#
# Copyright (c) 2017-2025, Martin Hauke <mardnh@gmx.de>
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
#%%define primary_python python313
#%%define python_version 3.13
%define silk_datadir "/srv/silk"
Name: silk
Version: 3.23.2
Release: 0
Summary: A network flow collection and analysis package
License: GPL-2.0-only
Group: Productivity/Networking/Diagnostic
URL: https://tools.netsa.cert.org/silk/
Source: https://tools.netsa.cert.org/releases/%{name}-%{version}.tar.gz
#BuildRequires: %{primary_python}
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: fdupes
BuildRequires: glib2-devel
BuildRequires: libmaxminddb-devel
BuildRequires: libpcap-devel
BuildRequires: libtool
BuildRequires: lzo-devel
BuildRequires: pkgconfig
#BuildRequires: python-rpm-macros
#BuildRequires: python3-devel
BuildRequires: snappy-devel
BuildRequires: pkgconfig(gnutls)
BuildRequires: pkgconfig(libcares)
BuildRequires: pkgconfig(libfixbuf)
BuildRequires: pkgconfig(libipa)
%description
SiLK, the System for Internet-Level Knowledge, is a collection of
traffic analysis tools developed by the CERT Network Situational
Awareness Team (CERT NetSA) to facilitate security analysis of large
networks. The SiLK tool suite supports the efficient collection,
storage and analysis of network flow data, enabling network security
analysts to rapidly query large historical traffic data sets. SiLK is
ideally suited for analyzing traffic on the backbone or border of a
large, distributed enterprise or mid-sized ISP.
SiLK consists of two sets of tools: a packing system and analysis
suite. The packing system receives network flow information from
Netflow v5 or any IPFIX-based flowmeter and converts them into a more
space efficient format, recording the packed records into
service-specific, binary flat files. The analysis suite consists of
tools which can read these flat files and then perform various query
operations, ranging from per-record filtering to statistical analysis
of groups of records. The analysis tools interoperate using pipes,
allowing a user to develop a relatively sophisticated query from a
simple beginning.
%package devel
Summary: Development files for SiLK
Group: Development/Libraries/C and C++
Requires: %{name} = %{version}
%description devel
SiLK, the System for Internet-Level Knowledge, is a collection of
traffic analysis tools developed by the CERT Network Situational
Awareness Team (CERT NetSA) to facilitate security analysis of large
networks. The SiLK tool suite supports the efficient collection,
storage and analysis of network flow data, enabling network security
analysts to rapidly query large historical traffic data sets. SiLK is
ideally suited for analyzing traffic on the backbone or border of a
large, distributed enterprise or mid-sized ISP.
This subpackage contains libraries and header files for developing
applications that want to make use of SiLK.
%package -n python-silk
Summary: Python interface to SiLK
Group: Development/Languages/Python
Requires: %{name} = %{version}
%description -n python-silk
Python interface to SiLK (System for Internet-Level Knowledge)
%prep
%autosetup -p1
%build
autoreconf -fiv
%configure --enable-data-rootdir=%{silk_datadir}
%make_build
%install
%make_install
%fdupes %{buildroot}/%{py_sitedir}
mkdir -p %{buildroot}/%{_sysconfdir}/silk
mkdir -p %{buildroot}/%{silk_datadir}
mv %{buildroot}/%{_datadir}/silk/*.conf %{buildroot}/%{_sysconfdir}/silk/
rm -Rv %{buildroot}/%{_datadir}/silk%{_sysconfdir}
%ldconfig_scriptlets
%files
%doc README.txt
%dir %{_sysconfdir}/silk
%config %{_sysconfdir}/silk/*.conf
%{_bindir}/mapsid
%{_bindir}/num2dot
%{_bindir}/rw*
%{_bindir}/silk_config
%{_sbindir}/rw*
%{_sbindir}/flowcap
%{_mandir}/man?/*
%{_libdir}/libflowsource.so.*
%{_libdir}/libsilk-thrd.so.*
%{_libdir}/libsilk.so.*
%dir %{_libdir}/silk/
%{_libdir}/silk/*.so
%dir %{_datadir}/silk/
%{_datadir}/silk/silk.magic
%{_datadir}/silk/addrtype-templ.txt
%dir %{silk_datadir}
%files devel
%dir %{_includedir}/silk/
%{_includedir}/silk/*.h
%{_libdir}/*.la
%{_libdir}/*.so
%{_libdir}/silk/*.la
#%%files -n python-silk
#%%{py_sitedir}/*
%changelog