1219820Sjeff
2219820Sjeff%define RELEASE @RELEASE@
3219820Sjeff%define rel %{?CUSTOM_RELEASE} %{!?CUSTOM_RELEASE:%RELEASE}
4219820Sjeff
5219820SjeffSummary: OpenFabrics Alliance InfiniBand Diagnostic Tools
6219820SjeffName: infiniband-diags
7219820SjeffVersion: @VERSION@
8219820SjeffRelease: %rel%{?dist}
9219820SjeffLicense: GPLv2 or BSD
10219820SjeffGroup: System Environment/Libraries
11219820SjeffBuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
12219820SjeffSource: http://www.openfabrics.org/downloads/management/@TARBALL@
13219820SjeffUrl: http://openfabrics.org/
14219820SjeffBuildRequires: libibmad-devel, opensm-devel, libibcommon-devel, libibumad-devel
15219820SjeffProvides: perl(IBswcountlimits)
16219820SjeffObsoletes: openib-diags
17219820Sjeff
18219820Sjeff%description
19219820SjeffThis package provides IB diagnostic programs and scripts needed to
20219820Sjeffdiagnose an IB subnet.
21219820Sjeff
22219820Sjeff%prep
23219820Sjeff%setup -q
24219820Sjeff
25219820Sjeff%if %{?_with_node_name_map:1}%{!?_with_node_name_map:0}
26219820Sjeff%define _enable_node_name_map --with-node-name-map%{?_with_node_name_map}
27219820Sjeff%endif
28219820Sjeff
29219820Sjeff%build
30219820Sjeff%configure %{?_enable_node_name_map}
31219820Sjeffmake
32219820Sjeff
33219820Sjeff%install
34219820Sjeffrm -rf $RPM_BUILD_ROOT
35219820Sjeffmake DESTDIR=${RPM_BUILD_ROOT} install
36219820Sjeff# remove unpackaged files from the buildroot
37219820Sjeffrm -f $RPM_BUILD_ROOT%{_libdir}/*.la
38219820Sjeff
39219820Sjeff%clean
40219820Sjeffrm -rf $RPM_BUILD_ROOT
41219820Sjeff
42219820Sjeff%files
43219820Sjeff%defattr(-,root,root)
44219820Sjeff%{_sbindir}/ibdiscover.pl
45219820Sjeff%{_sbindir}/ib*
46219820Sjeff%{_sbindir}/perfquery
47219820Sjeff%{_sbindir}/saquery
48219820Sjeff%{_sbindir}/vendstat
49219820Sjeff%{_sbindir}/dump_mfts.sh
50219820Sjeff%{_sbindir}/dump_lfts.sh
51219820Sjeff%{_sbindir}/check_lft_balance.pl
52219820Sjeff%{_sbindir}/set_nodedesc.sh
53219820Sjeff%{_sbindir}/sm*
54219820Sjeff%define _perldir %(perl -e 'use Config; $T=$Config{installsitearch}; $T=~/(.*)\\/site_perl.*/; print $1;')
55219820Sjeff%{_perldir}/*
56219820Sjeff%{_mandir}/man8/*
57219820Sjeff%doc README COPYING ChangeLog
58219820Sjeff
59219820Sjeff%changelog
60219820Sjeff* Mon Mar 03 2008 Albert Chu <chu11@llnl.gov> - 1.3.5
61219820Sjeff- Add check_lft_balance script.
62219820Sjeff
63219820Sjeff* Wed Oct 31 2007 Ira Weiny <weiny2@llnl.gov> - 1.3.2
64219820Sjeff- Change switch-map option to node-name-map
65219820Sjeff
66219820Sjeff* Thu Aug 9 2007 Ira Weiny <weiny2@llnl.gov> - 1.3.1
67219820Sjeff- Change set_mthca_nodedesc.sh to set_nodedesc.sh
68219820Sjeff
69219820Sjeff* Tue Jul 10 2007 Hal Rosenstock <halr@voltaire.com> - 1.3.1
70219820Sjeff- Add link width and speed to topology file output in ibnetdiscover
71219820Sjeff- Add support for -R(outer_list) in ibnetdiscover
72219820Sjeff- Add script and man page for ibidsverify
73219820Sjeff- Moved diags from bin to sbin
74219820Sjeff- Add scripts and man pages for display on IB routers
75219820Sjeff- Add GUID to output line for ports in ibqueryerrors.pl
76219820Sjeff- Add ibdatacounts and ibdatacounters scripts and man pages
77219820Sjeff- Add peer port link width and speed validation in iblinkinfo.pl
78219820Sjeff- Display remote LID with peer port info in IBswcountlimits.pm
79219820Sjeff- Handle peer ports at 1x that should be wider and 2.5 Gbps
80219820Sjeff  links that should be faster in ibportstate
81219820Sjeff- Add LinkSpeed/Width components to output of ibportstate
82219820Sjeff- Add support for IB routers
83219820Sjeff- Add grouping support for ISR2012 and ISR2004 in ibnetdiscover
84219820Sjeff- Remove all uses of "/tmp" from perl scripts
85219820Sjeff- Add switch map support for saquery -O and -U options
86219820Sjeff- Add support for saquery -s (isSMdisabled)
87219820Sjeff- Add name input checks to saquery (-O and -U)
88219820Sjeff
89219820Sjeff* Thu Mar 29 2007 Hal Rosenstock <halr@voltaire.com> - 1.3.0
90219820Sjeff- Add some extra debug information to IBswcountlimits.pm
91219820Sjeff- Send normal output to stdout in ibtracert
92219820Sjeff- Don't truncate NodeDescriptions containing ctl characters in ibdiag_common
93219820Sjeff- Fix ibnetdiscover grouping for Cisco SFS7000
94219820Sjeff- Add support to query the GUIDInfo table in smpquery
95219820Sjeff- Allow user to specify a default switch map file
96219820Sjeff
97219820Sjeff* Fri Mar 9 2007 Hal Rosenstock <halr@voltaire.com> - 1.2.5
98219820Sjeff- Find perl modules in perl sitearch directory
99219820Sjeff- Fix non standard prefix install for diag scripts
100219820Sjeff- Clean gcc-4.1 warnings in saquery and ibdiag_common
101219820Sjeff
102219820Sjeff* Fri Mar 2 2007 Hal Rosenstock <halr@voltaire.com> - 1.2.4
103219820Sjeff- OpenFabrics 1.2.4 release
104219820Sjeff- Fix diag rpmbuild from make dist
105219820Sjeff- Include set_mthca_nodedesc.sh and dump_lfts.sh in the rpm
106219820Sjeff
107219820Sjeff* Thu Mar 1 2007 Hal Rosenstock <halr@voltaire.com> - 1.2.3
108219820Sjeff- OpenFabrics 1.2.3 release
109219820Sjeff- Fixed saquery timeout handling
110219820Sjeff
111219820Sjeff* Tue Feb 27 2007 Hal Rosenstock <halr@voltaire.com> - 1.2.2
112219820Sjeff- OpenFabrics 1.2.2 release
113219820Sjeff- Minor changes to ibswitches and ibhosts output
114219820Sjeff
115219820Sjeff* Thu Feb 14 2007 Hal Rosenstock <halr@voltaire.com> - 1.2.1
116219820Sjeff- OpenFabrics 1.2.1 release
117219820Sjeff- Initial release of vendstat tool
118219820Sjeff
119219820Sjeff* Fri Feb 2 2007 Hal Rosenstock <halr@voltaire.com> - 1.2.0
120219820Sjeff- OpenFabrics 1.2.0 release
121219820Sjeff- Added brief option to ibcheckerrors and ibcheckerrs
122219820Sjeff- Updated man pages
123219820Sjeff- Added build version to saquery and updated build version tags of other tools
124219820Sjeff- Added -N | nocolor to usage display of scripts
125219820Sjeff- Fixed -nocolor and -G options on scripts
126219820Sjeff- Fixed error return status in ibchecknet
127219820Sjeff- Added exit code to ibcheckerrors
128219820Sjeff- Added nodename to output of ibcheckerrs
129219820Sjeff- ibqueryerrors.pl fixes and improvements
130219820Sjeff- Removed use of tmpfile for ibroute data in ibfindnodeusing.pl
131219820Sjeff- Fixed undefined subroutine error in iblinkinfo.pl
132219820Sjeff- Added switch-map option to ibtracert and ibnetdiscover
133219820Sjeff- Cleaned up node descriptions before printing in saquery
134219820Sjeff- Clarified --src-to-dst option in saquery
135219820Sjeff- Added peer NodeDescription and LID to output of inbetdiscover
136219820Sjeff- For grouping, ordered Spine and Line Nodes (for Voltaire chassis) in ibnetdiscover
137219820Sjeff- Cleaned up node descriptions before printing in ibtracert and ibroute
138219820Sjeff- Added additional sematics to -m option of saquery
139219820Sjeff- Added dump_mfts.sh similar to dump_lfts.sh
140219820Sjeff- ibnetdiscover improvements (memory leaks, ports moving, etc.)
141219820Sjeff- Converted iblinkspeed.pl into iblinkinfo.pl and added additional capabilities
142219820Sjeff- Added 0x in front of GUID printing of ibtracert
143219820Sjeff- Fixed loopback handling in ibnetdiscover
144219820Sjeff- Added support for querying Service Records to saquery
145219820Sjeff- Added support for PerfMgt IsExtendedWidthSupported IBA 1.2 erratum in perfquery
146219820Sjeff- For query operations, added peer port checking of linkwidth and speed
147219820Sjeff  active in ibportstate
148219820Sjeff- Added support for DrSLID in smpquery
149219820Sjeff- Added IB router support to ibnetdiscover and ibtracert
150219820Sjeff- Added additional options to saquery
151219820Sjeff- Added support to change LinkSpeedEnabled in ibportstate
152219820Sjeff
153219820Sjeff* Fri Sep 22 2006 Hal Rosenstock <halr@voltaire.com> - 1.1.0
154219820Sjeff- OpenFabrics 1.1 release
155219820Sjeff
156219820Sjeff* Wed Sep 13 2006 Hal Rosenstock <halr@voltaire.com> - 1.1.0-rc5
157219820Sjeff- OpenFabrics 1.1-rc5 release
158219820Sjeff
159219820Sjeff* Wed Sep 6 2006 Hal Rosenstock <halr@voltaire.com> - 1.1.0-rc4
160219820Sjeff- OpenFabrics 1.1-rc4 release
161219820Sjeff
162219820Sjeff* Wed Aug 23 2006 Hal Rosenstock <halr@voltaire.com> - 1.1.0-rc3
163219820Sjeff- OpenFabrics 1.1-rc3 release
164219820Sjeff
165219820Sjeff* Mon Aug 14 2006 Hal Rosenstock <halr@voltaire.com> - 1.1.0-rc2
166219820Sjeff- OpenFabrics 1.1-rc2 release
167219820Sjeff- Added ibsysstat man page
168219820Sjeff
169219820Sjeff* Wed Jul 26 2006 Hal Rosenstock <halr@voltaire.com> - 1.1.0-rc1
170219820Sjeff- OpenFabrics 1.1-rc1 release
171219820Sjeff- Added man pages
172219820Sjeff- Made diag command/script options more consistent
173219820Sjeff- saquery tool added
174219820Sjeff- dump_lft.sh script added
175219820Sjeff- Renamed discover.pl to ibdiscover.pl
176219820Sjeff
177219820Sjeff* Sun Jun 10 2006 Hal Rosenstock <halr@voltaire.com> - 1.0-1
178219820Sjeff- OpenFabrics 1.0 release
179219820Sjeff
180219820Sjeff* Tue May 30 2006 Hal Rosenstock <halr@voltaire.com> - 1.0.0-rc6
181219820Sjeff- Maintenance release
182219820Sjeff
183219820Sjeff* Fri May 12 2006 Hal Rosenstock <halr@voltaire.com> - 1.0.0-rc5
184219820Sjeff- Maintenance release
185219820Sjeff
186219820Sjeff* Thu Apr 27 2006 Hal Rosenstock <halr@voltaire.com> - 1.0.0-rc4
187219820Sjeff- Maintenance release
188219820Sjeff- Note rc3 skipped to sync with OFED
189219820Sjeff
190219820Sjeff* Mon Apr 10 2006 Hal Rosenstock <halr@voltaire.com> - 1.0.0-rc2
191219820Sjeff- Maintenance release
192219820Sjeff
193219820Sjeff* Mon Feb 27 2006 Hal Rosenstock <halr@voltaire.com> - 1.0.0-rc1
194219820Sjeff- Initial spec file and release
195