File libprotoident.spec of Package libprotoident
#
# spec file for package libprotoident
#
# Copyright (c) 2016, 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/
#
Name: libprotoident
Version: 2.0.9
Release: 0
Summary: Network traffic classification library
License: LGPL-3.0
Group: System/Libraries
Url: http://research.wand.net.nz/software/libprotoident.php
Source: http://research.wand.net.nz/software/%{name}/%{name}-%{version}.tar.gz
BuildRequires: gcc-c++
BuildRequires: libflowmanager-devel
BuildRequires: libtrace-devel
BuildRequires: make
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Libprotoident is a library that performs application layer protocol
identification for flows. Unlike many techniques that require capturing
the entire packet payload, only the first four bytes of payload sent in each
direction, the size of the first payload-bearing packet in each direction and
the TCP or UDP port numbers for the flow are used by libprotoident.
Libprotoident features a very simple API that is easy to use, enabling
developers to quickly write code that can make use of the protocol
identification rules present in the library without needing to know anything
about the applications they are trying to identify.
Libprotoident supports over 300 different application protocols and this
number will continue to grow over the course of future releases!
Libprotoident is developed by the WAND Network Research Group at Waikato
University in New Zealand.
%package -n libprotoident2
Summary: Network traffic classification library
Group: System/Libraries
Provides: libprotoident2 = %{version}-%{release}
%description -n libprotoident2
Libprotoident is a library that performs application layer protocol
identification for flows. Unlike many techniques that require capturing
the entire packet payload, only the first four bytes of payload sent in each
direction, the size of the first payload-bearing packet in each direction and
the TCP or UDP port numbers for the flow are used by libprotoident.
Libprotoident features a very simple API that is easy to use, enabling
developers to quickly write code that can make use of the protocol
identification rules present in the library without needing to know anything
about the applications they are trying to identify.
Libprotoident supports over 300 different application protocols and this
number will continue to grow over the course of future releases!
Libprotoident is developed by the WAND Network Research Group at Waikato
University in New Zealand.
%package devel
Summary: Development headers for the libprotoident network processing library
Group: Development/Libraries/Other
Requires: libprotoident2 = %{version}-%{release}
%description devel
This package contains development headers and other ancillary files for
the libprotoident library.
Libprotoident is a library that performs application layer protocol
identification for flows. Unlike many techniques that require capturing
the entire packet payload, only the first four bytes of payload sent in each
direction, the size of the first payload-bearing packet in each direction and
the TCP or UDP port numbers for the flow are used by libprotoident.
Libprotoident features a very simple API that is easy to use, enabling
developers to quickly write code that can make use of the protocol
identification rules present in the library without needing to know anything
about the applications they are trying to identify.
Libprotoident is developed by the WAND Network Research Group at Waikato
University in New Zealand.
%package -n libprotoident-tools
Summary: Helper utilities for use with the libprotoident network library
Group: System/Libraries
%description -n libprotoident-tools
Libprotoident is a library that performs application layer protocol
identification for flows. The library also comes with some basic tools that
demonstrate the capabilities of the library without the need for the user to
develop code.
The lpi_protoident tool reports the protocol for every flow observed on the
provided libtrace input, for instance. required when analysing and
manipulating network traces.
Libprotoident is developed by the WAND Network Research Group at Waikato
University in New Zealand.
%prep
%setup -q
%build
%configure --disable-static --with-tools
make %{?_smp_mflags}
%install
make %{?_smp_mflags} DESTDIR=%{buildroot} install
find %{buildroot} -type f -name "*.la" -delete -print
%post -n libprotoident2 -p /sbin/ldconfig
%postun -n libprotoident2 -p /sbin/ldconfig
%files -n libprotoident2
%defattr(-,root,root)
%doc ChangeLog COPYING README
%{_libdir}/libprotoident.so.*
%files -n libprotoident-devel
%defattr(-,root,root)
%{_includedir}/libprotoident.h
%{_libdir}/libprotoident.so
%files -n libprotoident-tools
%{_bindir}/lpi_*
%changelog