[netperf-dev] netperf2 commit notice r337 - trunk
raj at netperf.org
raj at netperf.org
Tue Oct 6 10:57:31 PDT 2009
Author: raj
Date: 2009-10-06 10:57:30 -0700 (Tue, 06 Oct 2009)
New Revision: 337
Modified:
trunk/netperf.spec.in
Log:
netperf.spec.in patch from Jose
Modified: trunk/netperf.spec.in
===================================================================
--- trunk/netperf.spec.in 2009-09-29 22:56:40 UTC (rev 336)
+++ trunk/netperf.spec.in 2009-10-06 17:57:30 UTC (rev 337)
@@ -10,10 +10,16 @@
Source: ftp://ftp.netperf.org/netperf/%{name}-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
+BuildRequires: texinfo, texinfo-tex
+
# we are not quite ready to make this a requirement but leave
# the line here as a heads up for the attentive :)
# BuildRequires: libsmbios-devel
+# if you want to enable the SCTP tests, append --enable-sctp to the
+# configure line, and uncomment the next line
+# BuildRequires: lksctp-tools-devel
+
%description
Many different network benchmarking tools are collected in this package,
maintained by Rick Jones of HP.
@@ -23,6 +29,8 @@
%setup -q
%build
+# gcc 4.4 users may want to disable the strict aliasing warnings
+# CFLAGS="$RPM_OPT_FLAGS -Wno-strict-aliasing"
%configure
make %{_smp_mflags}
@@ -30,6 +38,11 @@
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=${RPM_BUILD_ROOT}
+# Convert the main netperf document to other formats
+cd doc
+make %{name}.txt %{name}.html %{name}.xml pdf
+cd ..
+
# We don't want to package the Makefile files in the examples directory
rm -f doc/examples/Makefile*
@@ -44,7 +57,7 @@
%files
%defattr(-,root,root,-)
%doc README AUTHORS COPYING Release_Notes
-#doc doc/netperf.txt doc/netperf.pdf
+%doc doc/netperf.{html,pdf,txt,xml}
%doc doc/examples
%{_mandir}/man1/*
%{_infodir}/*
More information about the netperf-dev
mailing list