7b1db3
Name:           perftest
7b1db3
Summary:        IB Performance Tests
7b1db3
# Upstream uses a dash in the version. Not valid in the Version field, so we use a dot instead.
7b1db3
# Issue "Please avoid dashes in version":
7b1db3
#   https://github.com/linux-rdma/perftest/issues/18
7b1db3
%global upstream_ver 4.5-0.20
7b1db3
Version:        %{lua: print((string.gsub(rpm.expand("%{upstream_ver}"),"-",".")))}
7b1db3
Release:        4%{?dist}
7b1db3
License:        GPLv2 or BSD
7b1db3
Source:         https://github.com/linux-rdma/perftest/releases/download/v4.5-0.20/perftest-4.5-0.20.gac7cca5.tar.gz
592373
Source1:	ib_atomic_bw.1
7b1db3
Url:            https://github.com/linux-rdma/perftest
7b1db3
7b1db3
BuildRequires:  make
7b1db3
BuildRequires:  gcc
7b1db3
BuildRequires:  libibverbs-devel >= 1.2.0
7b1db3
BuildRequires:  librdmacm-devel >= 1.0.21
7b1db3
BuildRequires:  libibumad-devel >= 1.3.10.2
7b1db3
BuildRequires:  pciutils-devel
7b1db3
Obsoletes:      openib-perftest < 1.3
592373
592373
%description
592373
Perftest is a collection of simple test programs designed to utilize 
592373
RDMA communications and provide performance numbers over those RDMA
592373
connections.  It does not work on normal TCP/IP networks, only on
592373
RDMA networks.
592373
592373
%prep
7b1db3
# The directory in the tarball has only the part before the dash.
7b1db3
%global tarball_ver %{lua: _,_,v=string.find(rpm.expand("%{upstream_ver}"),"([^-]+)"); print(v)}
7b1db3
7b1db3
%setup -q -n %{name}-%{tarball_ver}
7b1db3
find src -type f -iname '*.[ch]' -exec chmod a-x '{}' ';'
592373
592373
%build
592373
%configure
bce76c
%make_build
592373
592373
%install
7b1db3
for file in ib_{atomic,read,send,write}_{lat,bw} raw_ethernet_{lat,bw}; do
592373
	install -D -m 0755 $file %{buildroot}%{_bindir}/$file
592373
done
592373
mkdir -p %{buildroot}%{_mandir}/man1/
592373
install -D -m 0644 %{SOURCE1} %{buildroot}%{_mandir}/man1/
592373
pushd %{buildroot}%{_mandir}/man1/
592373
for file in ib_atomic_lat ib_{read,send,write}_{lat,bw} raw_ethernet_{lat,bw}; do
592373
	ln -s ib_atomic_bw.1 ${file}.1
592373
done
592373
popd
592373
592373
%files
bce76c
%doc README
592373
%{_mandir}/man1/*
bce76c
%license COPYING
7b1db3
%_bindir/*
592373
592373
%changelog
7b1db3
* Wed Feb 08 2023 Michal Schmidt <mschmidt@redhat.com> - 4.5.0.20-4
7b1db3
- Rebase to upstream version 4.5-0.20
7b1db3
- Resolves: rhbz#2168109
7b1db3
6eb22c
* Wed Nov 10 2021 Honggang Li <honli@redhat.com> - 4.5-12
6eb22c
- Rebase to upstream release perftest-4.5-0.12
6eb22c
- Resolves: rhbz#2020062
6eb22c
705ea3
* Thu May 13 2021 Honggang Li <honli@redhat.com> - 4.5-1
705ea3
- Rebase to upstream release perftest-4.5-0.2
705ea3
- Resolves: rhbz#1960074
705ea3
bce76c
* Sat Jan 30 2021 Honggang Li <honli@redhat.com> - 4.4-8
bce76c
- Check PCIe relaxed ordering compliant
bce76c
- Resolves: rhbz#1902855
bce76c
bce76c
* Thu Nov 05 2020 Honggang Li <honli@redhat.com> - 4.4-7
bce76c
- Rebase to upstream release perftest-4.4-0.32
bce76c
- Resolves: bz1888570
bce76c
bce76c
* Fri Jul 24 2020 Honggang Li <honli@redhat.com> - 4.4-3
bce76c
- Fix segment fault with large QP numbers
bce76c
- Resolves: rhbz#1859358
bce76c
3cb5e0
* Mon May 25 2020 Honggang Li <honli@redhat.com> - 4.4-2
3cb5e0
- Update to upstream 4.4-0.29.g817ec38 tarball
3cb5e0
- Resolves: rhbz#1832709
3cb5e0
3cb5e0
* Wed Apr 15 2020 Honggang Li <honli@redhat.com> - 4.4-1
3cb5e0
- Update to upstream 4.4-0.23.g89e176a tarball
3cb5e0
- Resolves: rhbz#1817830
3cb5e0
592373
* Mon Jul 23 2018 Jarod Wilson <jarod@redhat.com> - 4.2-2
592373
- Update to upstream 4.2-0.8.g0e24e67 tarball
592373
592373
* Mon Apr 30 2018 Jarod Wilson <jarod@redhat.com> - 4.2-1
592373
- Update to upstream 4.2-0.5.gdd28746 tarball
592373
592373
* Mon Apr 03 2017 Jarod Wilson <jarod@redhat.com> - 3.4-1
592373
- Update to upstream 3.4-0.9.g98a9a17 tarball
592373
- Resolves: rhbz#1437978
592373
592373
* Thu Aug 18 2016 Jarod Wilson <jarod@redhat.com> - 3.0-7
592373
- Address a myriad more coverity/clang warnings
592373
- Add raw_ethernet_* man page symlinks
592373
- Related: rhbz#1273176
592373
- Related: rhbz#948476
592373
592373
* Mon Aug 15 2016 Jarod Wilson <jarod@redhat.com> - 3.0-6
592373
- Update to upstream 3.0-3.1.gb36a595 tarball for upstream fixes
592373
- Add in manpages
592373
- Related: rhbz#1365750
592373
- Resolves: rhbz#948476
592373
592373
* Fri Aug 12 2016 Jarod Wilson <jarod@redhat.com> - 3.0-5
592373
- Make it possible to actually test with XRC connections again
592373
- Resolves: rhbz#1365750
592373
592373
* Mon Aug 08 2016 Jarod Wilson <jarod@redhat.com> - 3.0-4
592373
- Install raw_ethernet{lat,bw} tools
592373
- Resolves: rhbz#1365182
592373
592373
* Wed May 18 2016 Jarod Wilson <jarod@redhat.com> - 3.0-3
592373
- Fix additional memory leaks reported and spotted after last fix
592373
592373
* Wed May 18 2016 Jarod Wilson <jarod@redhat.com> - 3.0-2
592373
- Fix issues uncovered by coverity
592373
592373
* Wed May 04 2016 Jarod Wilson <jarod@redhat.com> - 3.0-1
592373
- Update to upstream release v3.0
592373
- Resolves: bz1309586, bz1273176
592373
592373
* Tue Jun 16 2015 Michal Schmidt <mschmidt@redhat.com> - 2.4-1
592373
- Update to latest upstream release
592373
- Enable s390x platform
592373
- Resolves: bz1182177
592373
592373
* Fri Oct 17 2014 Doug Ledford <dledford@redhat.com> - 2.3-1
592373
- Update to latest upstream release
592373
- Resolves: bz1061582
592373
592373
* Tue May 20 2014 Kyle McMartin <kmcmarti@redhat.com> - 2.0-4
592373
- aarch64: add get_cycles implementation since <asm/timex.h> is no longer
592373
  exported by the kernel.
592373
- Resolves: #1100043
592373
592373
* Thu Jan 23 2014 Doug Ledford <dledford@redhat.com> - 2.0-3
592373
- Fix for rpmdiff found issues
592373
- Related: bz1017321
592373
592373
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 2.0-2
592373
- Mass rebuild 2013-12-27
592373
592373
* Wed Jul 17 2013 Doug Ledford <dledford@redhat.com> - 2.0-1
592373
- Update to latest upstream version
592373
592373
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.0-4
592373
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
592373
592373
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.0-3
592373
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
592373
592373
* Fri Jan 06 2012 Doug Ledford <dledford@redhat.com> - 1.3.0-2
592373
- Update to latest upstream release
592373
- Initial import into Fedora
592373
- Remove runme from docs section (review item)
592373
- Improve description of package (review item)
592373
592373
* Fri Jul 22 2011 Doug Ledford <dledford@redhat.com> - 1.3.0-1
592373
- Update to latest upstream release (1.2.3 -> 1.3.0)
592373
- Strip rocee related code out of upstream update
592373
- Add a buildrequires on libibumad because upstream needs it now
592373
- Fix lack of build on i686
592373
- Related: bz725016
592373
- Resolves: bz724896
592373
592373
* Mon Jan 25 2010 Doug Ledford <dledford@redhat.com> - 1.2.3-3.el6
592373
- More minor pkgwrangler cleanups
592373
- Related: bz543948
592373
592373
* Mon Jan 25 2010 Doug Ledford <dledford@redhat.com> - 1.2.3-2.el6
592373
- Fixes for pkgwrangler review
592373
- Related: bz543948
592373
592373
* Tue Dec 22 2009 Doug Ledford <dledford@redhat.com> - 1.2.3-1.el5
592373
- Update to latest upstream version
592373
- Related: bz518218
592373
592373
* Mon Jun 22 2009 Doug Ledford <dledford@redhat.com> - 1.2-14.el5
592373
- Rebuild against libibverbs that isn't missing the proper ppc wmb() macro
592373
- Related: bz506258
592373
592373
* Sun Jun 21 2009 Doug Ledford <dledford@redhat.com> - 1.2-13.el5
592373
- Update to ofed 1.4.1 final bits
592373
- Rebuild against non-XRC libibverbs
592373
- Related: bz506097, bz506258
592373
592373
* Sat Apr 18 2009 Doug Ledford <dledford@redhat.com> - 1.2-12.el5
592373
- Update to ofed 1.4.1-rc3 version
592373
- Remove dead patch
592373
- Related: bz459652
592373
592373
* Wed Sep 17 2008 Doug Ledford <dledford@redhat.com> - 1.2-11
592373
- Upstream has updated the tarball without updating the version, so we
592373
  grabbed the one from the OFED-1.3.2-20080728.0355 tarball
592373
- Resolves: bz451481
592373
592373
* Wed Apr 09 2008 Doug Ledford <dledford@redhat.com> - 1.2-10
592373
- Fix the fact that the itc clock on ia64 may be a multiple of the cpu clock
592373
- Resolves: bz433659
592373
592373
* Tue Apr 01 2008 Doug Ledford <dledford@redhat.com> - 1.2-9
592373
- Update to OFED 1.3 final bits
592373
- Related: bz428197
592373
592373
* Sun Jan 27 2008 Doug Ledford <dledford@redhat.com> - 1.2-8
592373
- Split out to separate package (used to be part of openib package)
592373
- Related: bz428197
592373