Sophie

Sophie

distrib > Mageia > 6 > armv7hl > media > core-updates-src > by-pkgid > 2182328b3cd2fa2cb43b5f3df98c1f57 > files > 2

libndpi-1.8.0-1.mga6.src.rpm

%define bdir 1.8
%define major 2
%define libname %mklibname ndpi %{major}
%define develname %mklibname ndpi -d

Summary:	Open source deep packet inspection
Name:		libndpi
Version:	1.8.0
Release:	%mkrel 1
License:	LGPLv3
Group:		System/Libraries
URL:		http://www.ntop.org/products/ndpi/
Source0:	https://github.com/ntop/nDPI/archive/%{bdir}/%{name}-%{version}.tar.gz
Patch0:		ndpi-1.8-bump-soname.patch
Patch1:		ndpi-1.8-example-link-dynamic.patch
BuildRequires:	autoconf
BuildRequires:	automake
BuildRequires:	libtool
BuildRequires:	json-c-devel
BuildRequires:	pcap-devel

%description
nDPI is a ntop-maintained superset of the popular OpenDPI library. Released
under the GPL 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.

nDPI is used by both ntop and nProbe for adding application-layer detection of
protocols, regardless of the port being used. This means that it is possible
to both detect known protocols on non-standard ports (e.g. detect http non
ports other than 80), and also the opposite (e.g. detect Skype traffic on port
80). This is because nowadays the concept of port=application no longer holds.

%package -n	%{libname}
Summary:	Open source deep packet inspection library
Group:          System/Libraries
Obsoletes:	%{mklibname ndpi 1} < 1.6.0

%description -n	%{libname}
nDPI is a ntop-maintained superset of the popular OpenDPI library. Released
under the GPL 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.

nDPI is used by both ntop and nProbe for adding application-layer detection of
protocols, regardless of the port being used. This means that it is possible
to both detect known protocols on non-standard ports (e.g. detect http non
ports other than 80), and also the opposite (e.g. detect Skype traffic on port
80). This is because nowadays the concept of port=application no longer holds.

This package provides the shared %{name} library.

%package -n	%{develname}
Summary:	Header files and libraries for developing applications for nDPI
Group:		Development/C
Requires:	%{libname} >= %{version}
Provides:	%{name}-devel = %{version}

%description -n	%{develname}
nDPI is a ntop-maintained superset of the popular OpenDPI library. Released
under the GPL 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.

nDPI is used by both ntop and nProbe for adding application-layer detection of
protocols, regardless of the port being used. This means that it is possible
to both detect known protocols on non-standard ports (e.g. detect http non
ports other than 80), and also the opposite (e.g. detect Skype traffic on port
80). This is because nowadays the concept of port=application no longer holds.


These are the header files and libraries for developing applications for %{name}.

%prep
%setup -q -n nDPI-%{bdir}
%autopatch -p1

%build
export LIBS="-lpthread"
autoreconf -fi
%configure2_5x \
    --enable-examples-dynamic-linking \
    --with-system-json-c \
    --disable-static

%make_build

%install
%make_install

rm -f %{buildroot}%{_libdir}/*.la

pushd example
    rm -rf ndpiReader .libs .deps *.*o
popd

rm -f %{buildroot}%{_bindir}/ndpiReader

%files -n %{libname}
%doc README* COPYING
%{_libdir}/*.so.%{major}{,.*}

%files -n %{develname}
%doc ChangeLog example
%{_includedir}/libndpi-%{version}/
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc


%changelog
* Wed Jan 31 2018 kekepower <kekepower> 1.8.0-1.mga6
+ Revision: 1198233
- Update to version 1.8.0
- Rediffed 2 patches for the new version
- Removed json-c-use-system.patch since it has been included upstream
- General fixes in the spec file

* Fri Feb 12 2016 luigiwalser <luigiwalser> 1.6.0-2.mga6
+ Revision: 956293
- obsolete lib package from duplicate ndpi srpm

* Wed Nov 11 2015 oden <oden> 1.6.0-1.mga6
+ Revision: 902527
- 1.6.0
- sync patches with debian
- imported package libndpi