2016-03-30 02:26:56 +00:00
|
|
|
Name: perftest
|
|
|
|
Summary: IB Performance Tests
|
2023-02-02 15:54:26 +00:00
|
|
|
# Upstream uses a dash in the version. Not valid in the Version field, so we use a dot instead.
|
2023-02-06 16:05:00 +00:00
|
|
|
# Issue "Please avoid dashes in version":
|
|
|
|
# https://github.com/linux-rdma/perftest/issues/18
|
2023-10-25 15:20:55 +00:00
|
|
|
%global upstream_ver 23.07.0-0.27
|
2023-02-07 08:00:47 +00:00
|
|
|
Version: %{lua: print((string.gsub(rpm.expand("%{upstream_ver}"),"-",".")))}
|
2023-02-02 15:32:19 +00:00
|
|
|
Release: %autorelease
|
2024-01-31 14:29:59 +00:00
|
|
|
License: GPL-2.0-only OR BSD-2-Clause
|
2023-10-25 15:20:55 +00:00
|
|
|
Source: https://github.com/linux-rdma/perftest/releases/download/23.07.0-0.27/perftest-23.07.0-0.27.g117a291.tar.gz
|
2018-04-18 02:23:35 +00:00
|
|
|
Url: https://github.com/linux-rdma/perftest
|
2016-03-30 02:26:56 +00:00
|
|
|
|
2021-11-08 23:52:37 +00:00
|
|
|
BuildRequires: make
|
2018-07-24 06:52:24 +00:00
|
|
|
BuildRequires: gcc
|
2016-03-30 02:26:56 +00:00
|
|
|
BuildRequires: libibverbs-devel >= 1.2.0
|
|
|
|
BuildRequires: librdmacm-devel >= 1.0.21
|
|
|
|
BuildRequires: libibumad-devel >= 1.3.10.2
|
2021-03-29 13:13:16 +00:00
|
|
|
BuildRequires: pciutils-devel
|
2016-03-30 02:26:56 +00:00
|
|
|
Obsoletes: openib-perftest < 1.3
|
2020-09-18 14:59:25 +00:00
|
|
|
ExcludeArch: s390 %{arm}
|
2012-01-11 18:05:10 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
Perftest is a collection of simple test programs designed to utilize
|
|
|
|
RDMA communications and provide performance numbers over those RDMA
|
|
|
|
connections. It does not work on normal TCP/IP networks, only on
|
|
|
|
RDMA networks.
|
|
|
|
|
|
|
|
%prep
|
2023-02-06 16:05:00 +00:00
|
|
|
# The directory in the tarball has only the part before the dash.
|
2023-02-07 08:00:47 +00:00
|
|
|
%global tarball_ver %{lua: _,_,v=string.find(rpm.expand("%{upstream_ver}"),"([^-]+)"); print(v)}
|
2023-02-06 16:05:00 +00:00
|
|
|
|
2023-02-02 16:15:56 +00:00
|
|
|
%setup -q -n %{name}-%{tarball_ver}
|
2016-03-30 02:26:56 +00:00
|
|
|
find src -type f -iname '*.[ch]' -exec chmod a-x '{}' ';'
|
2012-01-11 18:05:10 +00:00
|
|
|
|
|
|
|
%build
|
2013-07-17 22:57:11 +00:00
|
|
|
%configure
|
2020-07-14 02:33:17 +00:00
|
|
|
%make_build
|
2012-01-11 18:05:10 +00:00
|
|
|
|
|
|
|
%install
|
2016-03-30 02:26:56 +00:00
|
|
|
for file in ib_{atomic,read,send,write}_{lat,bw} raw_ethernet_{lat,bw}; do
|
2013-07-17 22:57:11 +00:00
|
|
|
install -D -m 0755 $file %{buildroot}%{_bindir}/$file
|
|
|
|
done
|
2012-01-11 18:05:10 +00:00
|
|
|
|
|
|
|
%files
|
2016-03-30 02:26:56 +00:00
|
|
|
%doc README
|
|
|
|
%license COPYING
|
2012-01-11 18:05:10 +00:00
|
|
|
%_bindir/*
|
|
|
|
|
|
|
|
%changelog
|
2023-02-02 15:32:19 +00:00
|
|
|
%autochangelog
|