File nuttcp.spec of Package nuttcp
#
# spec file for package nuttcp
#
# Copyright (c) 2021 SUSE LLC
# Copyright (c) 2016-2021, 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 https://bugs.opensuse.org/
#
Name: nuttcp
Version: 8.2.4
Release: 0
Summary: Network performance measurement tool
License: GPL-2.0-only
Group: Productivity/Networking/Diagnostic
URL: http://nuttcp.net/
Source: http://nuttcp.net/nuttcp/beta/%{name}-%{version}.c
Source1: http://nuttcp.net/nuttcp/beta/LICENSE
Source2: http://nuttcp.net/nuttcp/latest/examples.txt
Source3: http://nuttcp.net/nuttcp/latest/nuttcp.8
%description
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.
%prep
cp %{SOURCE0} %{SOURCE1} %{SOURCE2} %{SOURCE3} .
%build
gcc %{optflags} -Wall nuttcp-%{version}.c -o nuttcp
%install
install -Dpm0755 nuttcp %{buildroot}/%{_bindir}/nuttcp
install -Dpm0644 nuttcp.8 %{buildroot}/%{_mandir}/man8/nuttcp.8
%files
%license LICENSE
%doc examples.txt
%{_bindir}/nuttcp
%{_mandir}/man8/nuttcp.8%{?ext_man}
%changelog