File nDPI.spec of Package nDPI

#
# spec file for package nDPI
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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/
#

Name:           libndpi1
Version:        2.0
Release:        1
License:        GPL+ or Artistic
Summary:        Identify hundreds of L7 protocols
Url:            http://www.ntop.org/
Group:          Network
Source:         nDPI-%{version}.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  libpcap-devel
BuildRequires:  libtool
BuildRequires:  pkg-config

%description -n libndpi1
Identify hundreds of L7 protocols
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        devel
Summary:        Identify hundreds of L7 protocols devel libs
Group:          Development/Libraries/Other
requires:       libndpi1 = %{version}

%description devel
Identify hundreds of L7 protocols devel libs and headers.

%prep
%setup -q -n nDPI-%{version}

%build
./autogen.sh
%configure
make %{?_smp_mflags}

%check

%install
%make_install

%clean
%{__rm} -rf %{buildroot}

%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig

%files
%defattr(644,root,root,755)
%doc COPYING CHANGELOG.md README.md README.protocols README.nDPI
%attr(0755, root, root) %{_bindir}/ndpiReader
%{_libdir}/*.so.*

%files devel
%defattr(-,root,root)
%{_libdir}/*.so
%{_libdir}/*.la
%{_libdir}/*.a
%{_includedir}/*
%{_libdir}/pkgconfig/*


%changelog
* Fri Aug 26 2016 aginies@suse.com
- first release
openSUSE Build Service is sponsored by