Changes of Revision 3
[-] | Added | iperf.spec |
x 1
2 +Name: iperf 3 +Version: 2.0.2 4 +Release: 1 5 +Summary: A tool for measuring Internet bandwidth performance 6 +License: Other License(s), see package 7 +Group: Productivity/Networking/Diagnostic 8 +URL: http://dast.nlanr.net/Projects/Iperf/ 9 +Source: %{name}-%{version}.tar.bz2 10 +Source1: iperf.init 11 +Source2: sysconfig.iperf 12 +Buildroot: %{_tmppath}/%{name}-root 13 +BuildRequires: gcc-c++ 14 + 15 +%description 16 +Iperf is a tool to measure maximum TCP bandwidth, allowing the tuning of 17 +various parameters and UDP characteristics. Iperf reports bandwidth, delay 18 +jitter, datagram loss. 19 + 20 +Authors: 21 +------- 22 + Mark Gates 23 + Ajay Tirumala 24 + Jim Ferguson 25 + Jon Dugan 26 + Feng Qin 27 + Kevin Gibbs 28 + John Estabrook 29 + 30 +%debug_package 31 +%prep 32 +%setup -q 33 + 34 +%build 35 +export CFLAGS="$RPM_OPT_FLAGS" 36 +%configure 37 +make 38 + 39 +%install 40 +rm -rf %{buildroot} 41 +%makeinstall 42 +install -D -m 0755 %{SOURCE1} %{buildroot}/etc/init.d/iperf 43 +install -D -m 0644 %{SOURCE2} %{buildroot}/var/adm/fillup-templates/sysconfig.iperf 44 +install -d %{buildroot}/usr/sbin 45 +ln -sf ../../etc/init.d/iperf %{buildroot}/usr/sbin/rciperf 46 + 47 +%preun 48 +%{stop_on_removal} 49 + 50 +%post 51 +%{fillup_and_insserv} 52 + 53 +%postun 54 +%{restart_on_update} 55 +%{insserv_cleanup} 56 + 57 +%clean 58 +rm -rf %{buildroot} 59 + 60 +%files 61 +%defattr (-, root, root) 62 +%doc doc/dast.gif doc/*.html 63 +/usr/bin/iperf 64 +%config /etc/init.d/iperf 65 +/usr/sbin/rciperf 66 +/var/adm/fillup-templates/sysconfig.iperf 67 + 68 +%changelog 69 + 70 +* Fri Jun 29 2007 - James Oakley <jfunk@funktronics.ca> - 2.0.2-2 71 +- Add init script 72 + 73 +* Tue Feb 13 2007 - James Oakley <jfunk@funktronics.ca> - 2.0.2-1 74 +- Initial release 75 |