perftest/perftest.spec
Michal Schmidt b80b9896b8 upstream release "23.04.0-0.23"
New upstream release.
New upstream release versioning scheme. Because 4 numeric components in
the version string were not enough, apparently.

Signed-off-by: Michal Schmidt <mschmidt@redhat.com>
2023-05-31 17:00:45 +02:00

51 lines
1.6 KiB
RPMSpec

Name: perftest
Summary: IB Performance Tests
# Upstream uses a dash in the version. Not valid in the Version field, so we use a dot instead.
# Issue "Please avoid dashes in version":
# https://github.com/linux-rdma/perftest/issues/18
%global upstream_ver 23.04.0-0.23
Version: %{lua: print((string.gsub(rpm.expand("%{upstream_ver}"),"-",".")))}
Release: %autorelease
License: GPLv2 or BSD
Source: https://github.com/linux-rdma/perftest/releases/download/23.04.0-0.23/perftest-23.04.0-0.23.g63e250f.tar.gz
Url: https://github.com/linux-rdma/perftest
BuildRequires: make
BuildRequires: gcc
BuildRequires: libibverbs-devel >= 1.2.0
BuildRequires: librdmacm-devel >= 1.0.21
BuildRequires: libibumad-devel >= 1.3.10.2
BuildRequires: pciutils-devel
Obsoletes: openib-perftest < 1.3
ExcludeArch: s390 %{arm}
%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
# The directory in the tarball has only the part before the dash.
%global tarball_ver %{lua: _,_,v=string.find(rpm.expand("%{upstream_ver}"),"([^-]+)"); print(v)}
%setup -q -n %{name}-%{tarball_ver}
find src -type f -iname '*.[ch]' -exec chmod a-x '{}' ';'
%build
%configure
%make_build
%install
for file in ib_{atomic,read,send,write}_{lat,bw} raw_ethernet_{lat,bw}; do
install -D -m 0755 $file %{buildroot}%{_bindir}/$file
done
%files
%doc README
%license COPYING
%_bindir/*
%changelog
%autochangelog