Name: iperf Version: 2.0.5 Release: 1 Summary: Measurement tool for TCP/UDP bandwidth performance License: BSD Group: Applications/Internet URL: http://sourceforge.net/projects/iperf/ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root Source0: http://dast.nlanr.net/Projects/Iperf2.0/%{name}-%{version}.tar.gz Source1: %{name}-%{version}-iperf-int.h Source2: %{name}-%{version}-config.h Patch0: %{name}-%{version}-aix.patch %description Iperf is a tool to measure maximum TCP bandwidth, allowing the tuning of various parameters and UDP characteristics. Iperf reports bandwidth, delay jitter, datagram loss. %prep %setup -q %patch0 -p0 %build export CC=xlc_r export CXX=xlC_r export CFLAGS="-O" export CXXFLAGS="-O" ./configure \ --prefix=%{_prefix} cp %{SOURCE1} include/iperf-int.h cp %{SOURCE2} config.h make %{?_smp_mflags} %install [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} cd src make DESTDIR=${RPM_BUILD_ROOT} install /usr/bin/strip ${RPM_BUILD_ROOT}%{_bindir}/* || : cd ${RPM_BUILD_ROOT} mkdir -p usr/bin cd usr/bin ln -sf ../..%{_bindir}/* . %clean [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} %files %defattr(-,root,system) %doc README doc/*.gif doc/*.html %{_bindir}/iperf /usr/bin/iperf %changelog * Thu Oct 07 2010 Michael Perzl - 2.0.5-1 - Updated to version 2.0.5 * Mon Aug 18 2008 Michael Perzl - 2.0.4-1 - Updated to version 2.0.4 * Mon Aug 20 2007 Michael Perzl - 2.0.2-1 - First version for AIX5L V5.1 and higher