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/
#
# 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
Source: http://www.openfabrics.org/downloads/qperf/%{name}-%{version}.tar.gz
Patch0: qperf-autoconf.patch
Patch1: qperf-add_missing_lib.patch
Url: http://www.openfabrics.org
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: libibverbs-devel librdmacm-devel
BuildRequires: autoconf automake libtool
%description
Measure socket and RDMA performance.
%prep
%setup -q
mv configure.in configure.ac
%patch0
%patch1
%build
autoreconf -fi
%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