Home | History | Annotate | Download | only in netperf
      1 Summary:       Network Performance Testing Tool
      2 Name:          netperf
      3 Version:       @VERSION@
      4 Release:       1
      5 
      6 Group:         System Environment/Base
      7 License:       Unknown
      8 URL:           http://www.netperf.org/
      9 Packager:      Martin A. Brown
     10 Source:        ftp://ftp.netperf.org/netperf/%{name}-%{version}.tar.bz2
     11 BuildRoot:     %{_tmppath}/%{name}-%{version}-%{release}-root
     12 
     13 BuildRequires: 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
     24 Many different network benchmarking tools are collected in this package,
     25 maintained 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
     35 make  %{_smp_mflags}
     36 
     37 %install
     38 rm -rf $RPM_BUILD_ROOT
     39 make install DESTDIR=${RPM_BUILD_ROOT}
     40 
     41 # Convert the main netperf document to other formats
     42 cd doc
     43 make %{name}.txt %{name}.html %{name}.xml pdf
     44 cd ..
     45 
     46 # We don't want to package the Makefile files in the examples directory
     47 rm -f doc/examples/Makefile*
     48 
     49 # Info
     50 rm -f $RPM_BUILD_ROOT/%{_infodir}/dir
     51 
     52 %clean
     53 rm -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 (a] linux-ip.net> - 2.4.2-1
     73 - initial contributed specfile for netperf package (v2.4.2)
     74