Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37712981
en ru br
ALT Linux repos
S:2.7.0-alt2

Group :: Networking/Other
RPM: netperf

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

# SPDX-License-Identifier: GPL-2.0-only
%define _unpackaged_files_terminate_build 1
%define _stripped_files_terminate_build 1
%set_verify_elf_method strict

Name: netperf
Version: 2.7.0
Release: alt2
Summary: Network benchmarking tool
License: MIT
Group: Networking/Other
Url: https://hewlettpackard.github.io/netperf/
Vcs: https://github.com/HewlettPackard/netperf
# Ref: https://cloud.google.com/blog/products/networking/using-netperf-and-ping-to-measure-network-latency

Source: %name-%version.tar

BuildRequires: makeinfo

%description
Netperf is a benchmark that can be used to measure the performance of many
different types of networking. It provides tests for both unidirectional
throughput, and end-to-end latency.

%prep
%setup

%build
./autogen.sh
%add_optflags %(getconf LFS_CFLAGS) -fno-strict-aliasing -fcommon
%configure \
--enable-burst \
--enable-dccp \
--enable-demo \
--enable-dirty \
--enable-histogram \
--enable-intervals \
--enable-omni \
--enable-unixdomain
%make_build
pushd doc
makeinfo netperf.texi
popd

%install
%makeinstall_std
install -Dpm644 .gear/netserver.service -t %buildroot%_unitdir
install -Dpm755 .gear/netserver.init       %buildroot%_initdir/netserver

%post
%post_service netserver

%preun
%preun_service netserver

%check
src/netperf -V
src/netperf -t help
src/netserver -D &
sleep 1
src/netperf -t TCP_RR -v 2 -- -o min_latency,mean_latency,max_latency,stddev_latency,transaction_rate
kill %%1

%files
%doc COPYING AUTHORS ChangeLog README doc/examples
%_bindir/netperf
%_bindir/netserver
%_initdir/netserver
%_unitdir/netserver.service
%_infodir/netperf.*
%_man1dir/*.1*

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin