File qperf.spec of Package qperf

#
# spec file for package qperf
#
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

%define git_ver .0.aa644b22fff9

Name:           qperf
Summary:        Measure socket and RDMA performance
Version:        0.4.10
Release:        0
License:        BSD-2-Clause or GPL-2.0
Group:          Productivity/Networking/Diagnostic
Source:         %{name}-%{version}%{git_ver}.tar.bz2
Url:            http://github.com/linux-rdma/qperf
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  libibverbs-devel librdmacm-devel
BuildRequires:  autoconf automake libtool

%description
qperf measures bandwidth and latency between two nodes.  It can work over TCP/IP as well as the RDMA transports.

%prep
%setup -q -n  %{name}-%{version}%{git_ver}

%build
./autogen.sh
%configure
make %{?_smp_mflags}

%install
install -D -m 0755 src/qperf %{buildroot}%{_bindir}/qperf
install -D -m 0644 src/qperf.1 %{buildroot}%{_mandir}/man1/qperf.1
# As they're empty just delete them
rm -f NEWS ChangeLog

%files
%defattr(-, root, root)
%doc COPYING
%_bindir/qperf
%_mandir/man1/qperf.1*

%changelog
openSUSE Build Service is sponsored by