804a603
Name:    infiniband-diags 
cd5d9a5
Summary: OpenFabrics Alliance InfiniBand Diagnostic Tools
bb38ec3
Version: 1.6.6
bb38ec3
Release: 1%{?dist}
16ebd5d
# Upstream allows either license to be used
cd5d9a5
License: GPLv2 or BSD
804a603
Group:   System Environment/Libraries
804a603
Url:     http://openfabrics.org/
cd5d9a5
Source0: http://www.openfabrics.org/downloads/management/%{name}-%{version}.tar.gz
bb38ec3
Source1: rdma-ndd.service
804a603
db87885
Patch1: infiniband-diags-1.6.1-hostname.patch
b78eb00
c0f5c24
BuildRequires: glib2-devel
c0f5c24
BuildRequires: libibmad-devel
c0f5c24
BuildRequires: libibumad-devel
c0f5c24
BuildRequires: opensm-devel
c0f5c24
BuildRequires: perl
bb38ec3
BuildRequires: systemd
bb38ec3
BuildRequires: systemd-devel
cd5d9a5
Provides: perl(IBswcountlimits)
cd5d9a5
Obsoletes: openib-diags < 1.3
bb38ec3
bb38ec3
Requires(post): systemd-units
bb38ec3
Requires(preun): systemd-units
bb38ec3
Requires(postun): systemd-units
cd5d9a5
cd5d9a5
# Find the correct directory to install the perl module into.
cd5d9a5
%global _perldir %(perl -e 'use Config; print $Config{installvendorarch};')
cd5d9a5
cd5d9a5
%description
cd5d9a5
This package provides IB diagnostic programs and scripts needed to
cd5d9a5
diagnose an IB subnet.
cd5d9a5
cd5d9a5
%package devel
cd5d9a5
Summary: Development files for the infiniband-diags library
cd5d9a5
Group: System Environment/Libraries
cd5d9a5
Requires: %{name} = %{version}-%{release}
cd5d9a5
cd5d9a5
%description devel
cd5d9a5
Headers and shared devel libraries for the infiniband-diags package.
cd5d9a5
cd5d9a5
%package devel-static
cd5d9a5
Summary: Static development files for the infiniband-diags library
cd5d9a5
Group: System Environment/Libraries
cd5d9a5
Requires: %{name}-devel = %{version}-%{release}
cd5d9a5
cd5d9a5
%description devel-static
cd5d9a5
Static libraries for the infiniband-diags library.
cd5d9a5
cd5d9a5
%prep
cd5d9a5
%setup -q
db87885
%patch1 -p1 -b .hostname
cd5d9a5
cd5d9a5
%build
cd5d9a5
%configure --with-perl-installdir=%{_perldir}
cd5d9a5
make
cd5d9a5
cd5d9a5
%install
cd5d9a5
make DESTDIR=$RPM_BUILD_ROOT install
bb38ec3
install -D -m 644 %{SOURCE1} %{buildroot}%{_unitdir}/rdma-ndd.service
cd5d9a5
# remove unpackaged files from the buildroot
cd5d9a5
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
cd5d9a5
rm -f $RPM_BUILD_ROOT%{_sbindir}/*.{pl,sh}
bb38ec3
rm -f $RPM_BUILD_ROOT%{_sysconfdir}/init.d/rdma-ndd
bb38ec3
bb38ec3
%post
bb38ec3
%systemd_post rdma-ndd.service
bb38ec3
/sbin/ldconfig
cd5d9a5
bb38ec3
%preun
bb38ec3
%systemd_preun rdma-ndd.service
bb38ec3
bb38ec3
%postun
bb38ec3
%systemd_postun_with_restart rdma-ndd.service
bb38ec3
/sbin/ldconfig
cd5d9a5
cd5d9a5
%files
cd5d9a5
%{_sbindir}/*
cd5d9a5
%{_mandir}/man8/*.8*
cd5d9a5
%{_libdir}/libibnetdisc.so.*
cd5d9a5
%dir %{_sysconfdir}/infiniband-diags
cd5d9a5
%config(noreplace) %{_sysconfdir}/infiniband-diags/*
bb38ec3
%doc README ChangeLog
bb38ec3
%license COPYING
bb38ec3
%{_unitdir}/rdma-ndd.service
cd5d9a5
%{_perldir}/IBswcountlimits.pm
cd5d9a5
cd5d9a5
%files devel
cd5d9a5
%{_includedir}/*
cd5d9a5
%{_libdir}/*.so
cd5d9a5
%{_mandir}/man3/*
cd5d9a5
cd5d9a5
%files devel-static
cd5d9a5
%{_libdir}/*.a
cd5d9a5
cd5d9a5
%changelog
bb38ec3
* Mon Mar 21 2016 Honggang Li <honli@redhat.com> - 1.6.6-1
bb38ec3
- Update to latest upstream version 1.6.6
bb38ec3
- Add systemd file for rdma-ndd
bb38ec3
eeec8ba
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.4-5
eeec8ba
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
eeec8ba
0d1aec4
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.4-4
0d1aec4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
0d1aec4
c0f11f2
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.4-3
c0f11f2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
c0f11f2
7f0e8a6
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.4-2
7f0e8a6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
7f0e8a6
804a603
* Mon Mar 17 2014 Peter Robinson <pbrobinson@fedoraproject.org> 1.6.4-1
804a603
- Update to 1.6.4
804a603
- Sync Exclude/Exclusive with other OpenFabric packages
804a603
a9d8d05
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.1-6
a9d8d05
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
a9d8d05
695105c
* Wed Jul 17 2013 Petr Pisar <ppisar@redhat.com> - 1.6.1-5
695105c
- Perl 5.18 rebuild
695105c
db87885
* Sun Mar 10 2013 Doug Ledford <dledford@redhat.com> - 1.6.1-4
db87885
- Fix hostname usage in set_nodedesc.sh
db87885
b78eb00
* Sat Mar  2 2013 Peter Robinson <pbrobinson@fedoraproject.org> 1.6.1-3
b78eb00
- Build on ARM
b78eb00
- Cleanup and modernise spec
b78eb00
b81ecc0
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.1-2
b81ecc0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
b81ecc0
16ebd5d
* Fri Nov 30 2012 Jon Stanley <jonstanley@gmail.com>
16ebd5d
- Update to 1.6.1
16ebd5d
17f832f
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.12-2
17f832f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
17f832f
cd5d9a5
* Fri Jan 06 2012 Doug Ledford <dledford@redhat.com> - 1.5.12-1
cd5d9a5
- Update to latest upstream release
cd5d9a5
- Initial Fedora import
cd5d9a5
- Add devel and devel static packages (review item)
cd5d9a5
- Make etc file config(noreplace) (review item)
cd5d9a5
- Remove no longer support scripts (review item)
cd5d9a5
cd5d9a5
* Wed Jul 27 2011 Doug Ledford <dledford@redhat.com> - 1.5.8-1.el6
cd5d9a5
- Update to latest upstream version
cd5d9a5
- Make build work on i686 arch
cd5d9a5
- Modify perfquery to be able to loop through all HCAs in a single host
cd5d9a5
- Resolves: bz593767
cd5d9a5
- Related: bz725016
cd5d9a5
cd5d9a5
* Fri Mar 12 2010 Doug Ledford <dledford@redhat.com> - 1.5.5-1.el6
cd5d9a5
- Update and rebuild against latest opensm (which was needed for latest
cd5d9a5
  ibutils, which was needed for licensing issues resolved in new upstream
cd5d9a5
  tarball, which was needed for pkgwrangler review)
cd5d9a5
- Related: bz555835
cd5d9a5
cd5d9a5
* Fri Feb 26 2010 Doug Ledford <dledford@redhat.com> - 1.5.3-4.el6
cd5d9a5
- Tidy ups for pkgwrangler review
cd5d9a5
- Related: bz555835
cd5d9a5
cd5d9a5
* Tue Feb 9 2010 Jay Fenlason <fenlason@redhat.com> 1.5.3-3.el6
cd5d9a5
- Correct the perldir macro for rhel-6's perl.
cd5d9a5
- Remove the unrecognized --with-node-name-map configure option.
cd5d9a5
- reorganize the files section to use fewer globs, so that it's less likely
cd5d9a5
  to pick up files inappropriately.
cd5d9a5
cd5d9a5
* Mon Jan 25 2010 Doug Ledford <dledford@redhat.com> - 1.5.3-2.el6
cd5d9a5
- Update license tag for pkgwrangler import
cd5d9a5
- Related: bz543948
cd5d9a5
cd5d9a5
* Tue Dec 22 2009 Doug Ledford <dledford@redhat.com> - 1.5.3-1.el5
cd5d9a5
- Update to latest upstream version
cd5d9a5
- Don't include the newly added devel stuff as it's likely only needed
cd5d9a5
  internally (and certainly not needed by anything we've supported before
cd5d9a5
  since we've never shipped it)
cd5d9a5
- Related: bz518218
cd5d9a5
cd5d9a5
* Fri Apr 17 2009 Doug Ledford <dledford@redhat.com> - 1.4.4-1.el5
cd5d9a5
- Update to ofed 1.4.1-rc3 version
cd5d9a5
- Remove dead patch
cd5d9a5
- Related: bz459652
cd5d9a5
cd5d9a5
* Fri Oct 17 2008 Doug Ledford <dledford@redhat.com> - 1.4.1-2
cd5d9a5
- Fix up a few trivial issues
cd5d9a5
- Resolves: bz216014
cd5d9a5
cd5d9a5
* Wed Sep 17 2008 Doug Ledford <dledford@redhat.com> - 1.4.1-1
cd5d9a5
- Update to latest upstream version (required to work with latest opensm libs)
cd5d9a5
- Resolves: bz451465
cd5d9a5
cd5d9a5
* Tue Apr 01 2008 Doug Ledford <dledford@redhat.com> - 1.3.6-1
cd5d9a5
- Update to latest upstream version to match OFED 1.3
cd5d9a5
- Related: bz428197
cd5d9a5
cd5d9a5
* Sun Jan 27 2008 Doug Ledford <dledford@redhat.com> - 1.3.5-2
cd5d9a5
- Obsolete the openib-diags that this package replaces
cd5d9a5
cd5d9a5
* Fri Jan 25 2008 Doug Ledford <dledford@redhat.com> - 1.3.5-1
cd5d9a5
- Import into Red Hat CVS
cd5d9a5
- Related: bz428197
cd5d9a5
cd5d9a5
* Wed Oct 31 2007 Ira Weiny <weiny2@llnl.gov> - 1.3.2
cd5d9a5
- Change switch-map option to node-name-map
cd5d9a5
cd5d9a5
* Thu Aug 9 2007 Ira Weiny <weiny2@llnl.gov> - 1.3.1
cd5d9a5
- Change set_mthca_nodedesc.sh to set_nodedesc.sh
cd5d9a5
cd5d9a5
* Tue Jul 10 2007 Hal Rosenstock <halr@voltaire.com> - 1.3.1
cd5d9a5
- Add link width and speed to topology file output in ibnetdiscover
cd5d9a5
- Add support for -R(outer_list) in ibnetdiscover
cd5d9a5
- Add script and man page for ibidsverify
cd5d9a5
- Moved diags from bin to sbin
cd5d9a5
- Add scripts and man pages for display on IB routers
cd5d9a5
- Add GUID to output line for ports in ibqueryerrors.pl
cd5d9a5
- Add ibdatacounts and ibdatacounters scripts and man pages
cd5d9a5
- Add peer port link width and speed validation in iblinkinfo.pl
cd5d9a5
- Display remote LID with peer port info in IBswcountlimits.pm
cd5d9a5
- Handle peer ports at 1x that should be wider and 2.5 Gbps
cd5d9a5
  links that should be faster in ibportstate
cd5d9a5
- Add LinkSpeed/Width components to output of ibportstate
cd5d9a5
- Add support for IB routers 
cd5d9a5
- Add grouping support for ISR2012 and ISR2004 in ibnetdiscover
cd5d9a5
- Remove all uses of "/tmp" from perl scripts
cd5d9a5
- Add switch map support for saquery -O and -U options
cd5d9a5
- Add support for saquery -s (isSMdisabled)
cd5d9a5
- Add name input checks to saquery (-O and -U) 
cd5d9a5
cd5d9a5
* Thu Mar 29 2007 Hal Rosenstock <halr@voltaire.com> - 1.3.0
cd5d9a5
- Add some extra debug information to IBswcountlimits.pm
cd5d9a5
- Send normal output to stdout in ibtracert
cd5d9a5
- Don't truncate NodeDescriptions containing ctl characters in ibdiag_common
cd5d9a5
- Fix ibnetdiscover grouping for Cisco SFS7000
cd5d9a5
- Add support to query the GUIDInfo table in smpquery
cd5d9a5
- Allow user to specify a default switch map file
cd5d9a5
cd5d9a5
* Fri Mar 9 2007 Hal Rosenstock <halr@voltaire.com> - 1.2.5 
cd5d9a5
- Find perl modules in perl sitearch directory
cd5d9a5
- Fix non standard prefix install for diag scripts
cd5d9a5
- Clean gcc-4.1 warnings in saquery and ibdiag_common
cd5d9a5
cd5d9a5
* Fri Mar 2 2007 Hal Rosenstock <halr@voltaire.com> - 1.2.4
cd5d9a5
- OpenFabrics 1.2.4 release
cd5d9a5
- Fix diag rpmbuild from make dist
cd5d9a5
- Include set_mthca_nodedesc.sh and dump_lfts.sh in the rpm
cd5d9a5
cd5d9a5
* Thu Mar 1 2007 Hal Rosenstock <halr@voltaire.com> - 1.2.3
cd5d9a5
- OpenFabrics 1.2.3 release
cd5d9a5
- Fixed saquery timeout handling
cd5d9a5
cd5d9a5
* Tue Feb 27 2007 Hal Rosenstock <halr@voltaire.com> - 1.2.2
cd5d9a5
- OpenFabrics 1.2.2 release
cd5d9a5
- Minor changes to ibswitches and ibhosts output
cd5d9a5
bb38ec3
* Wed Feb 14 2007 Hal Rosenstock <halr@voltaire.com> - 1.2.1
cd5d9a5
- OpenFabrics 1.2.1 release
cd5d9a5
- Initial release of vendstat tool
cd5d9a5
cd5d9a5
* Fri Feb 2 2007 Hal Rosenstock <halr@voltaire.com> - 1.2.0
cd5d9a5
- OpenFabrics 1.2.0 release
cd5d9a5
- Added brief option to ibcheckerrors and ibcheckerrs
cd5d9a5
- Updated man pages
cd5d9a5
- Added build version to saquery and updated build version tags of other tools
cd5d9a5
- Added -N | nocolor to usage display of scripts
cd5d9a5
- Fixed -nocolor and -G options on scripts 
cd5d9a5
- Fixed error return status in ibchecknet
cd5d9a5
- Added exit code to ibcheckerrors
cd5d9a5
- Added nodename to output of ibcheckerrs
cd5d9a5
- ibqueryerrors.pl fixes and improvements
cd5d9a5
- Removed use of tmpfile for ibroute data in ibfindnodeusing.pl
cd5d9a5
- Fixed undefined subroutine error in iblinkinfo.pl
cd5d9a5
- Added switch-map option to ibtracert and ibnetdiscover
cd5d9a5
- Cleaned up node descriptions before printing in saquery
cd5d9a5
- Clarified --src-to-dst option in saquery
cd5d9a5
- Added peer NodeDescription and LID to output of inbetdiscover
cd5d9a5
- For grouping, ordered Spine and Line Nodes (for Voltaire chassis) in ibnetdiscover
cd5d9a5
- Cleaned up node descriptions before printing in ibtracert and ibroute
cd5d9a5
- Added additional sematics to -m option of saquery
cd5d9a5
- Added dump_mfts.sh similar to dump_lfts.sh
cd5d9a5
- ibnetdiscover improvements (memory leaks, ports moving, etc.)
cd5d9a5
- Converted iblinkspeed.pl into iblinkinfo.pl and added additional capabilities
cd5d9a5
- Added 0x in front of GUID printing of ibtracert
cd5d9a5
- Fixed loopback handling in ibnetdiscover
cd5d9a5
- Added support for querying Service Records to saquery
cd5d9a5
- Added support for PerfMgt IsExtendedWidthSupported IBA 1.2 erratum in perfquery
cd5d9a5
- For query operations, added peer port checking of linkwidth and speed
cd5d9a5
  active in ibportstate
cd5d9a5
- Added support for DrSLID in smpquery
cd5d9a5
- Added IB router support to ibnetdiscover and ibtracert
cd5d9a5
- Added additional options to saquery
cd5d9a5
- Added support to change LinkSpeedEnabled in ibportstate
cd5d9a5
cd5d9a5
* Fri Sep 22 2006 Hal Rosenstock <halr@voltaire.com> - 1.1.0
cd5d9a5
- OpenFabrics 1.1 release
cd5d9a5
 
cd5d9a5
* Wed Sep 13 2006 Hal Rosenstock <halr@voltaire.com> - 1.1.0-rc5
cd5d9a5
- OpenFabrics 1.1-rc5 release
cd5d9a5
cd5d9a5
* Wed Sep 6 2006 Hal Rosenstock <halr@voltaire.com> - 1.1.0-rc4
cd5d9a5
- OpenFabrics 1.1-rc4 release
cd5d9a5
cd5d9a5
* Wed Aug 23 2006 Hal Rosenstock <halr@voltaire.com> - 1.1.0-rc3
cd5d9a5
- OpenFabrics 1.1-rc3 release
cd5d9a5
cd5d9a5
* Mon Aug 14 2006 Hal Rosenstock <halr@voltaire.com> - 1.1.0-rc2
cd5d9a5
- OpenFabrics 1.1-rc2 release
cd5d9a5
- Added ibsysstat man page
cd5d9a5
cd5d9a5
* Wed Jul 26 2006 Hal Rosenstock <halr@voltaire.com> - 1.1.0-rc1
cd5d9a5
- OpenFabrics 1.1-rc1 release
cd5d9a5
- Added man pages
cd5d9a5
- Made diag command/script options more consistent
cd5d9a5
- saquery tool added
cd5d9a5
- dump_lft.sh script added
cd5d9a5
- Renamed discover.pl to ibdiscover.pl
cd5d9a5
bb38ec3
* Sat Jun 10 2006 Hal Rosenstock <halr@voltaire.com> - 1.0-1
cd5d9a5
- OpenFabrics 1.0 release
cd5d9a5
cd5d9a5
* Tue May 30 2006 Hal Rosenstock <halr@voltaire.com> - 1.0.0-rc6
cd5d9a5
- Maintenance release
cd5d9a5
cd5d9a5
* Fri May 12 2006 Hal Rosenstock <halr@voltaire.com> - 1.0.0-rc5
cd5d9a5
- Maintenance release
cd5d9a5
cd5d9a5
* Thu Apr 27 2006 Hal Rosenstock <halr@voltaire.com> - 1.0.0-rc4
cd5d9a5
- Maintenance release
cd5d9a5
- Note rc3 skipped to sync with OFED
cd5d9a5
cd5d9a5
* Mon Apr 10 2006 Hal Rosenstock <halr@voltaire.com> - 1.0.0-rc2
cd5d9a5
- Maintenance release
cd5d9a5
cd5d9a5
* Mon Feb 27 2006 Hal Rosenstock <halr@voltaire.com> - 1.0.0-rc1
cd5d9a5
- Initial spec file and release