forked from HewlettPackard/netperf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
netperf.spec.in
74 lines (56 loc) · 1.8 KB
/
netperf.spec.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
Summary: Network Performance Testing Tool
Name: netperf
Version: @VERSION@
Release: 1
Group: System Environment/Base
License: Unknown
URL: http://www.netperf.org/
Packager: Martin A. Brown
Source: https://github.com/HewlettPackard/%{name}/archive/master.tar.gz
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.
%prep
%setup -q -n %{name}-master
%build
# gcc 4.4 users may want to disable the strict aliasing warnings
# CFLAGS="$RPM_OPT_FLAGS -Wno-strict-aliasing"
./autogen.sh
%configure
make %{_smp_mflags}
%install
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*
# Info
rm -f $RPM_BUILD_ROOT/%{_infodir}/dir
%clean
rm -rf $RPM_BUILD_ROOT
# %post
%files
%defattr(-,root,root,-)
%doc README AUTHORS COPYING Release_Notes
%doc doc/netperf.{html,pdf,txt,xml}
%doc doc/examples
%{_mandir}/man1/*
%{_infodir}/*
%{_bindir}/netperf
%{_bindir}/netserver
%changelog
* Mon Sep 7 2009 Jose Pedro Oliveira <jpo at di.uminho.pt> - 2.4.5-1
- Specfile cleanup.
* Sat Jun 17 2006 Martin A. Brown <[email protected]> - 2.4.2-1
- initial contributed specfile for netperf package (v2.4.2)