Update to 3.0.3 and added devel rpm support

This commit is contained in:
Susant Sahani 2014-03-31 21:50:31 +05:30
parent 4e569c4433
commit 0ab38aa4fd
3 changed files with 20 additions and 5 deletions

1
.gitignore vendored
View File

@ -3,3 +3,4 @@
/iperf-3.0.tar.gz
/iperf-3.0.1.tar.gz
/iperf-3.0.2.tar.gz
/iperf-3.0.3.tar.gz

View File

@ -1,5 +1,5 @@
Name: iperf3
Version: 3.0.2
Version: 3.0.3
Release: 1%{?dist}
Summary: Measurement tool for TCP/UDP bandwidth performance
@ -15,6 +15,15 @@ Iperf is a tool to measure maximum TCP bandwidth, allowing the tuning of
various parameters and UDP characteristics. Iperf reports bandwidth, delay
jitter, data-gram loss.
%package devel
Summary: Development files for %{name}
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
%description devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.
%prep
%setup -q -n iperf-%{version}
@ -26,16 +35,14 @@ make %{?_smp_mflags}
rm -rf $RPM_BUILD_ROOT
%makeinstall -C src INSTALL_DIR="%{buildroot}%{_bindir}"
mkdir -p %{buildroot}%{_mandir}/man1
rm %{buildroot}/usr/include/iperf_*.h
rm %{buildroot}%{_libdir}/libiperf.a
%clean
rm -rf $RPM_BUILD_ROOT
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%doc AUTHORS README.md LICENSE INSTALL RELEASE_NOTES TODO
%doc AUTHORS README.md LICENSE INSTALL RELEASE_NOTES
%{_mandir}/man1/iperf3.1.gz
%{_mandir}/man3/libiperf.3.gz
%{_bindir}/iperf3
@ -44,8 +51,15 @@ rm -rf %{buildroot}
%{_libdir}/libiperf.so.0
%{_libdir}/libiperf.so.0.0.0
%files devel
%defattr(-,root,root,-)
%{_includedir}/*
%{_libdir}/*.so
%changelog
* Sun Mar 30 2014 Susant Sahani <ssahani@redhat.com> 3.0.3-1
- Update to 3.0.3 and added devel rpm support
* Tue Mar 11 2014 Susant Sahani <ssahani@redhat.com> 3.0.2-1
- Update to 3.0.2

View File

@ -1 +1 @@
2b6ec1d5370fcc91349894c389d68fc3 iperf-3.0.2.tar.gz
dc5f0a7e2b3007ee3203055f000637bb iperf-3.0.3.tar.gz