File libtcptools.spec of Package libtcptools
#
# spec file for package libtcptools
#
# 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: libtcptools
Version: 1.0.1
Release: 0
Summary: A library that that perform several useful TCP analysis tasks
License: GPL-2.0
Group: System/Libraries
Url: http://research.wand.net.nz/software/libtcptools.php
Source: http://research.wand.net.nz/software/%{name}/%{name}-%{version}.tar.gz
BuildRequires: gcc-c++
BuildRequires: libtrace-devel
BuildRequires: make
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Libtcptools is a library that leverages libtrace to perform several useful
TCP analysis tasks, including RTT estimation, classification of reordering
events and bandwidth estimation.
Libtcptools is developed by the WAND Network Research Group at Waikato
University in New Zealand.
%package -n libtcptools1
Summary: A library that that perform several useful TCP analysis tasks
Group: System/Libraries
Provides: libtcptools1 = %{version}-%{release}
%description -n libtcptools1
Libtcptools is a library that leverages libtrace to perform several useful
TCP analysis tasks, including RTT estimation, classification of reordering
events and bandwidth estimation.
Libtcptools is developed by the WAND Network Research Group at Waikato
University in New Zealand.
%package devel
Summary: Development headers for the libtcptools network processing library
Group: Development/Libraries/Other
Requires: libtcptools1 = %{version}-%{release}
%description devel
This package contains development headers and other ancillary files for
the libtcptools library.
Libtcptools is a library that leverages libtrace to perform several useful
TCP analysis tasks, including RTT estimation, classification of reordering
events and bandwidth estimation.
Libtcptools 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
%post -n libtcptools1 -p /sbin/ldconfig
%postun -n libtcptools1 -p /sbin/ldconfig
%files -n libtcptools1
%defattr(-,root,root)
%doc ChangeLog COPYING README
%{_libdir}/libtcptools.so.*
%files -n libtcptools-devel
%defattr(-,root,root)
%{_libdir}/libtcptools.so
%{_includedir}/*.h
%changelog