Blame SPECS/perftest.spec

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