netperf/netperf.spec

Name: netperf
Summary: Performance testing tool for TCP/UDP
Version: 2.6.0
Release: 1
License: HP non-commercial
Group: Applications/Internet
URL: http://www.netperf.org/netperf/NetperfPage.html
Description: Netperf is a tool to measure TCP/UDP performance.

CentOS 7 x86_64

The build could not start because the following file is missing: netperf-2.6.0.tar.gz

Build Status

CentOS 6 x86_64

The build could not start because the following file is missing: netperf-2.6.0.tar.gz

Build Status

Contents

The spec file used by the build system currently has the following contents:

# $id$
# Authority: dag
# Upstream: Rick Jones <netperf-feedback$netperf,org>

Summary: Performance testing tool for TCP/UDP
Name: netperf
Version: 2.6.0
Release: 1%{?dist}
License: HP non-commercial
Group: Applications/Internet
URL: http://www.netperf.org/netperf/NetperfPage.html

Source: ftp://ftp.netperf.org/netperf/netperf-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root

Requires: /sbin/install-info

%description
Netperf is a tool to measure TCP/UDP performance.

%prep
%setup

%build
%configure \
    --program-prefix="%{?_program_prefix}"
%{__make} %{_smp_mflags}

%install
%{__rm} -rf %{buildroot}
%{__make} install DESTDIR="%{buildroot}"

### Clean up buildroot
%{__rm} -rf %{buildroot}%{_infodir}/dir

%clean
%{__rm} -rf %{buildroot}

%post
/sbin/install-info %{_infodir}/${infofile} %{_infodir}/dir || :

%preun
if [ $1 -eq 0 ]; then
    /sbin/install-info --delete %{_infodir}/${infofile} %{_infodir}/dir || :
fi

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

%changelog
* Sat Sep 29 2012 Denis Fateyev <denis@fateyev.com> - 2.6.0-1
- Updated to release 2.6.0

* Thu Feb 23 2012 Gerd v. Egidy <gerd@egidy.de> - 2.5.0-1
- Updated to release 2.5.0
- License tag changed to reflect COPYING file as included in source

* Tue Jun 08 2010 Dag Wieers <dag@wieers.com> - 2.4.5-1
- Updated to release 2.4.5.

* Mon Oct 09 2006 Dag Wieers <dag@wieers.com> - 2.4.2-1
- Initial package. (using DAR)