File perftest.spec of Package perftest
#
# spec file for package perftest (Version 1.2)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
%define extra_version -0.17.g5eba807
Name: perftest
Summary: IB Performance tests
Version: 2.2
Release: 0
License: BSD-3-Clause or GPL-2.0+
Group: Productivity/Networking/Diagnostic
Source0: http://www.openfabrics.org/downloads/perftest/%{name}-%{version}%{extra_version}.tar.gz
Patch1: perftest-s390.patch
Patch2: perftest-use_optflags.patch
Url: http://www.openfabrics.org
Buildroot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: libibverbs-devel
BuildRequires: librdmacm-devel
BuildRequires: libibumad-devel
BuildRequires: automake autoconf libtool
%description
gen2 uverbs microbenchmarks
%prep
%setup -q -n %{name}-%{version}
%patch1
%patch2
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