File perftest.spec of Package perftest

#
# spec file for package perftest
#
# Copyright (c) 2015 SUSE LINUX 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 extra_version -0.17.g5eba807

Name:           perftest
Summary:        IB Performance tests
License:        BSD-3-Clause or GPL-2.0+
Group:          Productivity/Networking/Diagnostic
Version:        2.2
Release:        0
Source0:        http://www.openfabrics.org/downloads/perftest/%{name}-%{version}%{extra_version}.tar.gz
Patch1:         perftest-s390.patch
Patch2:         perftest-use_optflags.patch
Patch3:         perftest-fix_segfault_at_end_of_test.patch
Patch4:         perftest-aarch64.patch
Url:            http://www.openfabrics.org
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  libibumad-devel
BuildRequires:  libibverbs-devel
BuildRequires:  librdmacm-devel
BuildRequires:  libtool

%description
gen2 uverbs microbenchmarks


%prep
%setup -q -n %{name}-%{version}
%patch1
%patch2
%patch3 -p1
%patch4 -p1

chmod -x src/*

%build
autoreconf -fi
%configure
make %{?_smp_mflags} V=1
chmod -x runme

%install
make DESTDIR=%{buildroot} install

%clean

%files
%defattr(-, root, root)
%doc README COPYING runme
%{_bindir}/ib_atomic_lat
%{_bindir}/ib_atomic_bw
%{_bindir}/ib_write_lat
%{_bindir}/ib_write_bw
%{_bindir}/ib_send_lat
%{_bindir}/ib_send_bw
%{_bindir}/ib_read_lat
%{_bindir}/ib_read_bw

%changelog
openSUSE Build Service is sponsored by