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

%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
Patch1:         perftest-s390.patch
Patch2:         perftest-use_optflags.patch
Patch3:         perftest-fix_segfault_at_end_of_test.patch
Patch4:         perftest-aarch64.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  libibumad-devel
BuildRequires:  libibverbs-devel
BuildRequires:  librdmacm-devel
BuildRequires:  libtool

gen2 uverbs microbenchmarks

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

chmod -x src/*

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

make DESTDIR=%{buildroot} install


%defattr(-, root, root)