1Summary: Network Performance Testing Tool 2Name: netperf 3Version: @VERSION@ 4Release: 1 5 6Group: System Environment/Base 7License: Unknown 8URL: http://www.netperf.org/ 9Packager: Martin A. Brown 10Source: ftp://ftp.netperf.org/netperf/%{name}-%{version}.tar.bz2 11BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root 12 13BuildRequires: texinfo, texinfo-tex 14 15# we are not quite ready to make this a requirement but leave 16# the line here as a heads up for the attentive :) 17# BuildRequires: libsmbios-devel 18 19# if you want to enable the SCTP tests, append --enable-sctp to the 20# configure line, and uncomment the next line 21# BuildRequires: lksctp-tools-devel 22 23%description 24Many different network benchmarking tools are collected in this package, 25maintained by Rick Jones of HP. 26 27 28%prep 29%setup -q 30 31%build 32# gcc 4.4 users may want to disable the strict aliasing warnings 33# CFLAGS="$RPM_OPT_FLAGS -Wno-strict-aliasing" 34%configure 35make %{_smp_mflags} 36 37%install 38rm -rf $RPM_BUILD_ROOT 39make install DESTDIR=${RPM_BUILD_ROOT} 40 41# Convert the main netperf document to other formats 42cd doc 43make %{name}.txt %{name}.html %{name}.xml pdf 44cd .. 45 46# We don't want to package the Makefile files in the examples directory 47rm -f doc/examples/Makefile* 48 49# Info 50rm -f $RPM_BUILD_ROOT/%{_infodir}/dir 51 52%clean 53rm -rf $RPM_BUILD_ROOT 54 55# %post 56 57%files 58%defattr(-,root,root,-) 59%doc README AUTHORS COPYING Release_Notes 60%doc doc/netperf.{html,pdf,txt,xml} 61%doc doc/examples 62%{_mandir}/man1/* 63%{_infodir}/* 64%{_bindir}/netperf 65%{_bindir}/netserver 66 67 68%changelog 69* Mon Sep 7 2009 Jose Pedro Oliveira <jpo at di.uminho.pt> - 2.4.5-1 70- Specfile cleanup. 71 72* Sat Jun 17 2006 Martin A. Brown <martin@linux-ip.net> - 2.4.2-1 73- initial contributed specfile for netperf package (v2.4.2) 74