1Name:	iperf3
2Version: @VERSION@
3Release:	1%{?dist}
4Summary: Measurement tool for TCP/UDP bandwidth performance
5
6Group:	 Applications/Internet
7License: BSD
8URL:	 https://github.com/esnet/iperf
9Source0: https://downloads.es.net/pub/iperf/iperf-%{version}.tar.gz
10BuildRoot:	%(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
11
12%if 0%{?el5}
13BuildRequires: e2fsprogs-devel, openssl-devel
14%else
15BuildRequires: openssl-devel
16%endif
17
18%description
19iperf3 is a tool for active measurements of the maximum achievable
20bandwidth between two IP hosts.  It supports tuning of various
21parameters related to timing, protocols, and buffers.  For each test,
22it reports the throughput, loss, and other parameters.
23
24%package        devel
25Summary:        Development files for %{name}
26Group:          Development/Libraries
27
28%description    devel
29The %{name}-devel package contains libraries and header files for
30developing applications that use %{name}.
31
32%prep
33%setup -q -n iperf-%{version}
34
35%build
36%configure
37make %{?_smp_mflags}
38
39%install
40rm -rf $RPM_BUILD_ROOT
41%makeinstall -C src INSTALL_DIR="%{buildroot}%{_bindir}"
42mkdir -p %{buildroot}%{_mandir}/man1
43
44%clean
45rm -rf $RPM_BUILD_ROOT
46
47%files
48%defattr(-,root,root,-)
49%%doc README.md INSTALL LICENSE RELEASE_NOTES
50%{_mandir}/man1/iperf3.1.gz
51%{_mandir}/man3/libiperf.3.gz
52%{_bindir}/iperf3
53%{_libdir}/*.so.*
54
55%files devel
56%defattr(-,root,root,-)
57%{_includedir}/iperf_api.h
58%{_libdir}/libiperf.a
59%{_libdir}/libiperf.la
60%{_libdir}/*.so
61%{_libdir}/*.so.*
62
63%changelog
64* Fri Aug 29 2014 Aaron Brown <aaron@internet2.edu> 3.0.7-1
65- Update to 3.0.7
66
67* Tue Jul 29 2014 Aaron Brown <aaron@internet2.edu> 3.0.6-1
68- Update to 3.0.6
69
70* Mon Jun 16 2014 Aaron Brown <aaron@internet2.edu> 3.0.5-1
71- Update to 3.0.5
72
73* Wed Apr 2 2014 Susant Sahani <ssahani@redhat.com> 3.0.3-2
74- Moved static library to devel section only .
75
76* Sun Mar 30 2014 Susant Sahani <ssahani@redhat.com> 3.0.3-1
77- Update to 3.0.3 and added devel rpm support
78
79* Tue Mar 11 2014 Susant Sahani <ssahani@redhat.com> 3.0.2-1
80- Update to 3.0.2
81
82* Tue Jan 14 2014 Susant Sahani <ssahani@redhat.com> 3.0.1-1
83- Update to 3.0.1
84
85* Fri Oct 25 2013 Steven Roberts <strobert@strobe.net> 3.0-1
86- Update to 3.0
87
88* Sat May 04 2013 Kevin Fenzi <kevin@scrye.com> 3.0-0.4.b5
89- Update to 3.0b5
90
91* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0-0.3.b4
92- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
93
94* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0-0.2.b4
95- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
96
97* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0-0.1.b4
98- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
99
100* Wed Apr 06 2011 G.Balaji <balajig81@gmail.com> 3.0b4-2
101- Changed the Spec name, removed static libs generation and devel
102- package.
103
104* Sat Mar 26 2011 G.Balaji <balajig81@gmail.com> 3.0b4-1
105- Initial Version
106
107