Blame SPECS/perftest.spec

68c7ec
Name:           perftest
68c7ec
Summary:        IB Performance Tests
a5c73e
# Upstream uses a dash in the version. Not valid in the Version field, so we use a dot instead.
a5c73e
# Issue "Please avoid dashes in version":
a5c73e
#   https://github.com/linux-rdma/perftest/issues/18
a5c73e
%global upstream_ver 4.5-0.20
a5c73e
Version:        %{lua: print((string.gsub(rpm.expand("%{upstream_ver}"),"-",".")))}
a5c73e
Release:        4%{?dist}
68c7ec
License:        GPLv2 or BSD
a5c73e
Source:         https://github.com/linux-rdma/perftest/releases/download/v4.5-0.20/perftest-4.5-0.20.gac7cca5.tar.gz
68c7ec
Url:            https://github.com/linux-rdma/perftest
68c7ec
68c7ec
BuildRequires:  make
68c7ec
BuildRequires:  gcc
68c7ec
BuildRequires:  libibverbs-devel >= 1.2.0
68c7ec
BuildRequires:  librdmacm-devel >= 1.0.21
68c7ec
BuildRequires:  libibumad-devel >= 1.3.10.2
68c7ec
BuildRequires:  pciutils-devel
68c7ec
Obsoletes:      openib-perftest < 1.3
68c7ec
ExcludeArch:    s390 %{arm}
68c7ec
68c7ec
%description
68c7ec
Perftest is a collection of simple test programs designed to utilize 
68c7ec
RDMA communications and provide performance numbers over those RDMA
68c7ec
connections.  It does not work on normal TCP/IP networks, only on
68c7ec
RDMA networks.
68c7ec
68c7ec
%prep
a5c73e
# The directory in the tarball has only the part before the dash.
a5c73e
%global tarball_ver %{lua: _,_,v=string.find(rpm.expand("%{upstream_ver}"),"([^-]+)"); print(v)}
a5c73e
a5c73e
%setup -q -n %{name}-%{tarball_ver}
68c7ec
find src -type f -iname '*.[ch]' -exec chmod a-x '{}' ';'
68c7ec
68c7ec
%build
68c7ec
%configure
68c7ec
%make_build
68c7ec
68c7ec
%install
68c7ec
for file in ib_{atomic,read,send,write}_{lat,bw} raw_ethernet_{lat,bw}; do
68c7ec
	install -D -m 0755 $file %{buildroot}%{_bindir}/$file
68c7ec
done
68c7ec
68c7ec
%files
68c7ec
%doc README
68c7ec
%license COPYING
68c7ec
%_bindir/*
68c7ec
68c7ec
%changelog
a5c73e
* Tue Feb 07 2023 Michal Schmidt <mschmidt@redhat.com> - 4.5.0.20-4
a5c73e
- Use rpm lua code from Fedora perftest-4.5.0.20-4.fc38.
a5c73e
- Resolves: rhbz#2167405
a5c73e
a5c73e
* Mon Feb 06 2023 Kamal Heib <kheib@redhat.com> - 4.5.0.20-1
a5c73e
- Rebase to upstream release perftest-4.5-0.20
a5c73e
- Resolves: rhbz#2167405
a5c73e
68c7ec
* Tue Nov 09 2021 Honggang Li <honli@redhat.com> - 4.5-12
68c7ec
- Rebase to upstream release perftest-4.5-0.12
68c7ec
- Resolves: rhbz#2020061
68c7ec
68c7ec
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 4.5-3
68c7ec
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
68c7ec
  Related: rhbz#1991688
68c7ec
68c7ec
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 4.5-2
68c7ec
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
68c7ec
68c7ec
* Mon Mar 29 2021 Honggang Li <honli@redhat.com> - 4.5-1
68c7ec
- Rebase to upstream release perftest-4.5-0.2
68c7ec
68c7ec
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 4.4-10
68c7ec
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
68c7ec
68c7ec
* Thu Jan 14 2021 Honggang Li <honli@redhat.com> - 4.4-9
68c7ec
- Rebase to upstream release perftest-4.4-0.37
68c7ec
68c7ec
* Sun Dec 06 2020 Honggang Li <honli@redhat.com> - 4.4-8
68c7ec
- Rebase to upstream release perftest-4.4-0.36
68c7ec
68c7ec
* Sun Oct 11 2020 Honggang Li <honli@redhat.com> - 4.4-7
68c7ec
- Rebase to upstream release perftest-4.4-0.32
68c7ec
68c7ec
* Fri Sep 18 2020 Honggang Li <honli@redhat.com> - 4.4-6
68c7ec
- Build perftest for s390x
68c7ec
68c7ec
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 4.4-5
68c7ec
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
68c7ec
68c7ec
* Tue Jul 14 2020 Tom Stellard <tstellar@redhat.com> - 4.4-4
68c7ec
- Use make macros
68c7ec
- https://fedoraproject.org/wiki/Changes/UseMakeBuildInstallMacro
68c7ec
68c7ec
* Sun May 24 2020 Honggang Li <honli@redhat.com> - 4.4-3
68c7ec
- Rebase to upstream release perftest-4.4-0.29
68c7ec
68c7ec
* Sun Apr 12 2020 Honggang Li <honli@redhat.com> - 4.4-2
68c7ec
- Rebase to upstream release perftest-4.4-0.23
68c7ec
68c7ec
* Mon Feb 10 2020 Honggang Li <honli@redhat.com> - 4.4-1
68c7ec
- Rebase to upstream release perftest-4.4-0.11
68c7ec
68c7ec
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 4.2-6
68c7ec
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
68c7ec
68c7ec
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 4.2-5
68c7ec
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
68c7ec
68c7ec
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 4.2-4
68c7ec
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
68c7ec
68c7ec
* Mon Jul 23 2018  Honggang Li <honli@redhat.com> - 4.2-3
68c7ec
- Rebase to latest upstream release v4.2-0.8
68c7ec
- BuildRequires gcc
68c7ec
- Resolves: bz1605400
68c7ec
68c7ec
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 4.2-2
68c7ec
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
68c7ec
68c7ec
* Tue Apr 17 2018  Honggang Li <honli@redhat.com> - 4.2-1
68c7ec
- Rebase to latest upstream release V4.2-0.5
68c7ec
- Resolves: bz1568309
68c7ec
68c7ec
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.0-5
68c7ec
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
68c7ec
68c7ec
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.0-4
68c7ec
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
68c7ec
68c7ec
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.0-3
68c7ec
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
68c7ec
68c7ec
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.0-2
68c7ec
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
68c7ec
68c7ec
* Tue Mar 29 2016 Honggang Li <honli@redhat.com> - 3.0-1
68c7ec
- Update to latest upstream
68c7ec
68c7ec
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.2-4
68c7ec
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
68c7ec
68c7ec
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2-3
68c7ec
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
68c7ec
68c7ec
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2-2
68c7ec
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
68c7ec
68c7ec
* Sun Jun  8 2014 Peter Robinson <pbrobinson@fedoraproject.org> 2.2-1
68c7ec
- Update to 2.2-17
68c7ec
68c7ec
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0-3
68c7ec
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
68c7ec
68c7ec
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0-2
68c7ec
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
68c7ec
68c7ec
* Wed Jul 17 2013 Doug Ledford <dledford@redhat.com> - 2.0-1
68c7ec
- Update to latest upstream version
68c7ec
68c7ec
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.0-4
68c7ec
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
68c7ec
68c7ec
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.0-3
68c7ec
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
68c7ec
68c7ec
* Fri Jan 06 2012 Doug Ledford <dledford@redhat.com> - 1.3.0-2
68c7ec
- Update to latest upstream release
68c7ec
- Initial import into Fedora
68c7ec
- Remove runme from docs section (review item)
68c7ec
- Improve description of package (review item)
68c7ec
68c7ec
* Fri Jul 22 2011 Doug Ledford <dledford@redhat.com> - 1.3.0-1
68c7ec
- Update to latest upstream release (1.2.3 -> 1.3.0)
68c7ec
- Strip rocee related code out of upstream update
68c7ec
- Add a buildrequires on libibumad because upstream needs it now
68c7ec
- Fix lack of build on i686
68c7ec
- Related: bz725016
68c7ec
- Resolves: bz724896
68c7ec
68c7ec
* Mon Jan 25 2010 Doug Ledford <dledford@redhat.com> - 1.2.3-3.el6
68c7ec
- More minor pkgwrangler cleanups
68c7ec
- Related: bz543948
68c7ec
68c7ec
* Mon Jan 25 2010 Doug Ledford <dledford@redhat.com> - 1.2.3-2.el6
68c7ec
- Fixes for pkgwrangler review
68c7ec
- Related: bz543948
68c7ec
68c7ec
* Tue Dec 22 2009 Doug Ledford <dledford@redhat.com> - 1.2.3-1.el5
68c7ec
- Update to latest upstream version
68c7ec
- Related: bz518218
68c7ec
68c7ec
* Mon Jun 22 2009 Doug Ledford <dledford@redhat.com> - 1.2-14.el5
68c7ec
- Rebuild against libibverbs that isn't missing the proper ppc wmb() macro
68c7ec
- Related: bz506258
68c7ec
68c7ec
* Sun Jun 21 2009 Doug Ledford <dledford@redhat.com> - 1.2-13.el5
68c7ec
- Update to ofed 1.4.1 final bits
68c7ec
- Rebuild against non-XRC libibverbs
68c7ec
- Related: bz506097, bz506258
68c7ec
68c7ec
* Sat Apr 18 2009 Doug Ledford <dledford@redhat.com> - 1.2-12.el5
68c7ec
- Update to ofed 1.4.1-rc3 version
68c7ec
- Remove dead patch
68c7ec
- Related: bz459652
68c7ec
68c7ec
* Wed Sep 17 2008 Doug Ledford <dledford@redhat.com> - 1.2-11
68c7ec
- Upstream has updated the tarball without updating the version, so we
68c7ec
  grabbed the one from the OFED-1.3.2-20080728.0355 tarball
68c7ec
- Resolves: bz451481
68c7ec
68c7ec
* Wed Apr 09 2008 Doug Ledford <dledford@redhat.com> - 1.2-10
68c7ec
- Fix the fact that the itc clock on ia64 may be a multiple of the cpu clock
68c7ec
- Resolves: bz433659
68c7ec
68c7ec
* Tue Apr 01 2008 Doug Ledford <dledford@redhat.com> - 1.2-9
68c7ec
- Update to OFED 1.3 final bits
68c7ec
- Related: bz428197
68c7ec
68c7ec
* Sun Jan 27 2008 Doug Ledford <dledford@redhat.com> - 1.2-8
68c7ec
- Split out to separate package (used to be part of openib package)
68c7ec
- Related: bz428197
68c7ec