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

# norootforbuild

#%%define my_release

Name:           qperf
Summary:        Measure socket and RDMA performance
Version:        0.4.9
Release:        0
License:        BSD-2-Clause or GPL-2.0
Group:          Productivity/Networking/Diagnostic
Patch0:         qperf-autoconf.patch
Patch1:         qperf-add_missing_lib.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  libibverbs-devel librdmacm-devel
BuildRequires:  autoconf automake libtool

Measure socket and RDMA performance.

%setup -q

autoreconf -fi
make %{?_smp_mflags}

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

%defattr(-, root, root)

openSUSE Build Service is sponsored by