File netperf.spec of Package netperf

Name:           netperf
BuildRequires:  glibc-devel
License:        GPL v2 or later
Group:          System/Benchmark
Version:        2.6.0
Release:        2
Summary:        NetPerf
Source0:        %{name}-%{version}.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Url:            http://www.netperf.org/
Requires:	ethtool


%description
Netperf is a benchmark that can be used to measure the performance of
many different types of networking. It provides tests for both unidirecitonal 
throughput, and end-to-end latency. The environments currently measureable by
netperf include:

    * TCP and UDP via BSD Sockets for both IPv4 and IPv6
    * DLPI
    * Unix Domain Sockets
    * SCTP for both IPv4 and IPv6 

Author: rick jones <netperf-feedback@netperf.org> 

%prep  
%setup -q


%build
./configure --prefix=%{_prefix} --enable-histogram \
	--enable-dirty \
	--enable-demo \
	--enable-unixdomain \
	--enable-dccp \
	--enable-sctp \
	--enable-intervals \
	--enable-spin \
	--enable-burst \
	--enable-cpuutil="procstat" \
	--enable-slotlookup="linux" \
	--enable-rtlookup="rtnetlink" \
	--enable-syslookup="linux" \
	--enable-drvlookup="ethtool" 

make 

%install
export DESTDIR=%{buildroot}
make install $DESTDIR
rm doc/examples/Makefile*

%clean
rm -rf %{buildroot}

%post
/sbin/install-info %{_infodir}/netperf.info.gz %{_infodir}/dir 2>/dev/null || :


%preun
/sbin/install-info --delete %{_infodir}/netperf.info.gz %{_infodir}/dir 2>/dev/null || :


%files
%defattr(-, root, root, 0755)
%{_bindir}/netperf
%{_bindir}/netserver
%doc AUTHORS COPYING ChangeLog INSTALL README
%doc doc/examples
%doc %{_mandir}/man1/netperf.1.*
%doc %{_mandir}/man1/netserver.1.*
%doc %{_infodir}/netperf.info.*


%changelog
* Wed Aug 8 2012 Antoine Ginies <aginies@suse.com> 2.6.0
- based on wwalery@gmail.com spec file
- version 2.6.0
openSUSE Build Service is sponsored by