Package nuttcp: Specfile

Name: nuttcp
Version: 6.1.2
Release: alt3
Summary: TCP/UDP network testing tool 
Group: Monitoring
License: GPLv2
Packager: Andrew Clark <>
Patch0: xinetd.patch

nuttcp is a network performance measurement tool intended for
use by network and system managers. Its most basic usage is
to determine the raw TCP (or UDP) network layer throughput by
transferring memory buffers from a source system across an
interconnecting network to a destination system, either
transferring data for a specified time interval, or alternatively
transferring a specified number of bytes. In addition to reporting
the achieved network throughput in Mbps, nuttcp also provides
additional useful information related to the data transfer
such as user, system, and wall-clock time, transmitter and
receiver CPU utilization, and loss percentage (for UDP transfers).

%setup -q
%patch0 -p2


mkdir -p %buildroot%_bindir
install -pD -m 755 %_builddir/%name-%version/%name-%version %buildroot%_bindir/%name
mkdir -p %buildroot%_man8dir
install -pD -m 644 %_builddir/%name-%version/%name.8 %buildroot%_man8dir/
mkdir -p %buildroot%_sysconfdir/xinetd.d/
install -pD -m 640 %_builddir/%name-%version/xinetd.d/%name %buildroot%_sysconfdir/xinetd.d/

%doc examples.txt LICENSE nuttcp.html README
%config(noreplace) %_sysconfdir/xinetd.d/%name

* Wed Apr 17 2013 Andrew Clark <> 6.1.2-alt3
- rebuilt for debuginfo

* Sat Dec 25 2010 Andrew Clark <> 6.1.2-alt2
- xinet.d path fixes (#24755)

* Fri Dec 11 2009 Andrew Clark <> 6.1.2-alt1
- initial build for ALT.