Search
j0ke.net Open Build Service
>
Projects
>
stresslinux
>
iperf3
> iperf3.spec
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File iperf3.spec of Package iperf3 (Revision 12)
Currently displaying revision
12
,
show latest
# # spec file for package iperf # # Copyright (c) 2016 SUSE LINUX Products GmbH, Nuernberg, Germany. # # 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/ # %define soname 0 %define srcname iperf Name: iperf3 Version: 3.3 Release: 0 Summary: A tool to measure network performance License: BSD-3-Clause Group: Productivity/Networking/Diagnostic Url: http://software.es.net/iperf/ Source: http://downloads.es.net/pub/iperf/%{srcname}-%{version}.tar.gz Source2: %{name}.service # PATCH-FIX-OPENSUSE -- Disable profiling if %%optflags includes -fomit-frame-pointer, as option -pg conflicts with it Patch1: iperf-3.0.12_disable-profiling.patch %if 0%{?sles_version} > 8 && 0%{?sles_version} <= 11 BuildRequires: libuuid-devel %else BuildRequires: pkgconfig(uuid) %endif BuildRoot: %{_tmppath}/%{name}-%{version}-build %description Iperf is a tool for active measurements of the maximum achievable bandwidth on IP networks. It supports tuning of various parameters related to timing, protocols, and buffers. For each test it reports the bandwidth, loss, and other parameters. This version, sometimes referred to as iperf3, is a redesign of an original version developed at NLANR/DAST. iperf3 is a new implementation from scratch, with the goal of a smaller, simpler code base, and a library version of the functionality that can be used in other programs. iperf3 also a number of features found in other tools such as nuttcp and netperf, but were missing from the original iperf. These include, for example, a zero-copy mode and optional JSON output. Note that iperf3 is NOT backwards compatible with the original iperf. %package -n lib%{srcname}%{soname} Summary: A library to measure network performance Group: Development/Libraries/C and C++ %description -n lib%{srcname}%{soname} lib%{name} gives you access to all the functionality of the iperf3 network testing tool. You can build it directly into your own program, instead of having to run it as a shell command. %package devel Summary: A tool to measure network performance Group: Development/Libraries/C and C++ Requires: lib%{name}%{soname} = %{version} %if 0%{?sles_version} > 8 && 0%{?sles_version} <= 11 Requires: libuuid-devel %else Requires: pkgconfig(uuid) %endif %description devel Iperf is a tool for active measurements of the maximum achievable bandwidth on IP networks. It supports tuning of various parameters related to timing, protocols, and buffers. For each test it reports the bandwidth, loss, and other parameters. This package contains development files. %prep %setup -q -n %{srcname}-%{version} %if 0%(case "%optflags" in (*-fomit-frame-pointer*) echo 1;; esac) %patch1 -p 1 %endif %build %configure make %{?_smp_mflags} %install make DESTDIR=%{buildroot} install %{?_smp_mflags} %__install -D -m644 %{SOURCE2} %{buildroot}/usr/lib/systemd/system/iperf3.service %post -n lib%{srcname}%{soname} -p /sbin/ldconfig %postun -n lib%{srcname}%{soname} -p /sbin/ldconfig %files %defattr(-, root, root) %doc LICENSE README.md RELEASE_NOTES %{_bindir}/%{name} %doc %{_mandir}/man1/%{name}.1%{ext_man} %files -n lib%{srcname}%{soname} %defattr(-, root, root) %doc LICENSE %{_libdir}/lib%{srcname}.so.* %{_prefix}/lib/systemd/system/iperf3.service %files devel %defattr(-, root, root) %doc LICENSE %{_includedir}/%{srcname}_api.h %{_libdir}/lib%{srcname}.a %{_libdir}/lib%{srcname}.so %{_libdir}/lib%{srcname}.la %doc %{_mandir}/man3/lib%{srcname}.3%{ext_man} %changelog