# # spec file for package nDPI # # Copyright (c) 2017, Martin Hauke # # 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/ # %ifarch %{ix86} x86_64 %bcond_without hyperscan %endif %define sover 2 Name: ndpi Version: 2.6 Release: 0 Summary: Extensible deep packet inspection library License: LGPL-3.0-only Group: Development/Libraries/C and C++ URL: https://github.com/ntop/nDPI Source: https://github.com/ntop/nDPI/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz # FIXME: Upstream makefile is broken Patch0: ndpi-fix-build.patch BuildRequires: autoconf BuildRequires: automake BuildRequires: gcc-c++ BuildRequires: libnuma-devel BuildRequires: libpcap-devel BuildRequires: libtool BuildRequires: pkgconfig BuildRequires: pkgconfig(json-c) BuildRequires: libnuma-devel %if 0%{with hyperscan} BuildRequires: pkgconfig(libhs) %endif %description nDPI is a ntop-maintained superset of the popular OpenDPI library. Released under the LGPL license, its goal is to extend the original library by adding new protocols that are otherwise available only on the paid version of OpenDPI. In addition to Unix platforms, we also support Windows, in order to provide you a cross-platform DPI experience. Furthermore, we have modified nDPI do be more suitable for traffic monitoring applications, by disabling specific features that slow down the DPI engine while being them un-necessary for network traffic monitoring. %package -n libndpi%{sover} Summary: Extensible deep packet inspection library Group: Development/Libraries/C and C++ %description -n libndpi%{sover} nDPI is a ntop-maintained superset of the popular OpenDPI library. Released under the LGPL license, its goal is to extend the original library by adding new protocols that are otherwise available only on the paid version of OpenDPI. In addition to Unix platforms, we also support Windows, in order to provide you a cross-platform DPI experience. Furthermore, we have modified nDPI do be more suitable for traffic monitoring applications, by disabling specific features that slow down the DPI engine while being them un-necessary for network traffic monitoring. %package -n libndpi-devel Summary: Development headers for nNDPI Group: Development/Libraries/C and C++ Requires: libndpi%{sover} = %{version} %description -n libndpi-devel nDPI is a ntop-maintained superset of the popular OpenDPI library. Released under the LGPL license, its goal is to extend the original library by adding new protocols that are otherwise available only on the paid version of OpenDPI. In addition to Unix platforms, we also support Windows, in order to provide you a cross-platform DPI experience. Furthermore, we have modified nDPI do be more suitable for traffic monitoring applications, by disabling specific features that slow down the DPI engine while being them un-necessary for network traffic monitoring. This package contains the Development headers for libndpi. %package -n ndpi-tools Summary: Tools for nNDPI Group: Development/Libraries/C and C++ %description -n ndpi-tools nDPI is a ntop-maintained superset of the popular OpenDPI library. Released under the LGPL license, its goal is to extend the original library by adding new protocols that are otherwise available only on the paid version of OpenDPI. In addition to Unix platforms, we also support Windows, in order to provide you a cross-platform DPI experience. Furthermore, we have modified nDPI do be more suitable for traffic monitoring applications, by disabling specific features that slow down the DPI engine while being them un-necessary for network traffic monitoring. This package contains the ndpiReader binary. %prep %setup -q -n nDPI-%{version} %patch0 -p1 sh autogen.sh # FIXME: Upstream makefile is broken %ifarch %{ix86} sed -i 's/lib64/lib/g' src/lib/Makefile.in %endif %build %configure \ %if 0%{with hyperscan} --with-hyperscan \ %endif --prefix=/usr make %{?_smp_mflags} %install %make_install PREFIX=%{_prefix} rm -f %{buildroot}/%{_libdir}/libndpi.a %post -n libndpi%{sover} -p /sbin/ldconfig %postun -n libndpi%{sover} -p /sbin/ldconfig %files -n libndpi%{sover} %license COPYING %doc CHANGELOG.md README.md README.nDPI README.protocols %doc doc/nDPI_QuickStartGuide.pdf %{_libdir}/libndpi.so.%{sover}* %files -n libndpi-devel %{_includedir}/ndpi %{_libdir}/libndpi.so %{_libdir}/pkgconfig/libndpi.pc %files -n ndpi-tools %{_bindir}/ndpiReader %changelog