File libtrace.spec of Package libtrace
#
# spec file for package libtrace
#
# 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: libtrace
Version: 4.0.0
Release: 0
Summary: Network trace processing library supporting many input formats
License: LGPL-3.0
Group: System/Libraries
Url: http://research.wand.net.nz/software/libtrace.php
Source: http://research.wand.net.nz/software/%{name}/%{name}-%{version}.tar.bz2
BuildRequires: bison
#BuildRequires: libdaq-devel
#BuildRequires: libnuma-devel
BuildRequires: doxygen
BuildRequires: fdupes
BuildRequires: flex
BuildRequires: gcc-c++
BuildRequires: libpcap-devel
BuildRequires: libopenssl-devel
BuildRequires: make
BuildRequires: ncurses-devel
BuildRequires: libwandio-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Libtrace is a library for trace processing. It supports multiple input
methods, including device capture, raw and gz-compressed trace, and sockets;
and multiple input formats.
Libtrace is developed by the WAND Network Research Group at Waikato
University in New Zealand.
%package -n libtrace4
Summary: Network trace processing library supporting many input formats
Group: System/Libraries
Provides: libtrace4 = %{version}-%{release}
%description -n libtrace4
Libtrace is a library for trace processing. It supports multiple input
methods, including device capture, raw and gz-compressed trace, and sockets;
and multiple input formats.
Libtrace is developed by the WAND Network Research Group at Waikato
University in New Zealand.
%package devel
Summary: Development headers for the libtrace network processing library
Group: Development/Libraries/Other
Requires: libtrace4 = %{version}-%{release}
%description devel
This package contains development headers and other ancillary files for
the libtrace library.
Libtrace is a library for trace processing. It supports multiple input
methods, including device capture, raw and gz-compressed trace, and sockets;
and multiple input formats, including pcap and DAG.
Libtrace is developed by the WAND Network Research Group at Waikato
University in New Zealand.
###
%package -n libpacketdump4
Summary: Network packet parsing and human-readable display library
Group: System/Libraries
Provides: libpacketdump4 = %{version}-%{release}
%description -n libpacketdump4
Libpacketdump provides a library which can parse packets and display the
packet contents in a nice human-readable form. The output is similar to that
produced by tcpdump, although the formatting is somewhat more verbose.
Libpacketdump is developed by the WAND Network Research Group at Waikato
University in New Zealand.
%package -n libpacketdump-devel
Summary: Development headers for the libpacketdump library
Group: Development/Libraries/Other
Requires: libpacketdump4 = %{version}-%{release}
%description -n libpacketdump-devel
This package contains development headers and other ancillary files for
the libpacketdump library.
Libpacketdump provides a library which can parse packets and display the
packet contents in a nice human-readable form. The output is similar to that
produced by tcpdump, although the formatting is somewhat more verbose.
Libpacketdump is developed by the WAND Network Research Group at Waikato
University in New Zealand.
%package -n libtrace-tools
Summary: Helper utilities for use with the libtrace process library
Group: System/Libraries
%description -n libtrace-tools
libtrace is a library for trace processing. These tools perform many common
tasks that are required when analysing and manipulating network traces.
Multiple input methods and formats are supported including device capture,
raw and gz-compressed traces, and sockets.
Libtrace is developed by the WAND Network Research Group at Waikato
University in New Zealand.
%prep
%setup -q
%build
%configure --disable-static
make %{?_smp_mflags}
%install
make %{?_smp_mflags} DESTDIR=%{buildroot} install
find %{buildroot} -type f -name "*.la" -delete -print
%fdupes -s %{buildroot}/%{_mandir}
%post -n libtrace4 -p /sbin/ldconfig
%postun -n libtrace4 -p /sbin/ldconfig
%post -n libpacketdump4 -p /sbin/ldconfig
%postun -n libpacketdump4 -p /sbin/ldconfig
%files devel
%defattr(-,root,root)
%{_libdir}/libtrace.so
%{_includedir}/libtrace*
%{_includedir}/dagformat.h
%{_includedir}/daglegacy.h
%{_includedir}/erftypes.h
%{_includedir}/lt_inttypes.h
%{_includedir}/rt_protocol.h
%{_includedir}/buckets.h
%{_includedir}/deque.h
%{_includedir}/hash_toeplitz.h
%{_includedir}/linked_list.h
%{_includedir}/message_queue.h
%{_includedir}/object_cache.h
%{_includedir}/ring_buffer.h
%{_includedir}/sliding_window.h
%{_includedir}/vector.h
%{_mandir}/man3/trace*
%{_mandir}/man3/libtrace*
%files -n libtrace4
%defattr(-,root,root)
%doc AUTHORS COPYING COPYING.LESSER README
%{_libdir}/libtrace.so.*
%files -n libpacketdump4
%defattr(-,root,root)
%{_libdir}/libpacketdump.so.*
%dir %{_libdir}/libpacketdump
%{_libdir}/libpacketdump/*.protocol
%files -n libpacketdump-devel
%defattr(-,root,root)
%{_libdir}/libpacketdump.so
%{_libdir}/libpacketdump/*.so
%{_includedir}/libpacketdump*
%files -n libtrace-tools
%defattr(-,root,root)
%{_bindir}/trace*
%{_mandir}/man1/*
%changelog