cc6c0c
Summary:        List SCSI devices (or hosts) and associated information
cc6c0c
Name:           lsscsi
cc6c0c
Version:        0.27
591e0d
Release:        6%{?dist}
cc6c0c
License:        GPLv2+
cc6c0c
Group:          Applications/System
cc6c0c
Source0:        http://sg.danny.cz/scsi/%{name}-%{version}.tgz
cc6c0c
URL:            http://sg.danny.cz/scsi/lsscsi.html
cc6c0c
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
cc6c0c
534d71
Patch0:         0001-Remove-enclosure-information-for-FCP-FCoE.patch
591e0d
Patch1:         0002-Fix-truncation-of-128-bit-wwn.patch
591e0d
Patch2:         BZ_1429361-if-very-long-h-c-t-l-then-append-space-rather-than-l.patch
534d71
cc6c0c
%description
cc6c0c
Uses information provided by the sysfs pseudo file system in Linux kernel
cc6c0c
2.6 series to list SCSI devices or all SCSI hosts. Includes a "classic"
cc6c0c
option to mimic the output of "cat /proc/scsi/scsi" that has been widely
cc6c0c
used prior to the lk 2.6 series.
cc6c0c
cc6c0c
Author:
cc6c0c
--------
cc6c0c
    Doug Gilbert <dgilbert(at)interlog(dot)com>
cc6c0c
cc6c0c
cc6c0c
%prep
cc6c0c
%setup -q
534d71
%patch0 -p1
591e0d
%patch1 -p1
591e0d
%patch2 -p1 -b .long_scsi_id
cc6c0c
cc6c0c
%build
cc6c0c
%configure
cc6c0c
make %{?_smp_mflags}
cc6c0c
cc6c0c
cc6c0c
%install
cc6c0c
rm -rf %{buildroot}
cc6c0c
make DESTDIR=%{buildroot} install
cc6c0c
cc6c0c
cc6c0c
%clean
cc6c0c
rm -rf %{buildroot}
cc6c0c
cc6c0c
cc6c0c
%files
cc6c0c
%defattr(-,root,root)
cc6c0c
%doc ChangeLog INSTALL README CREDITS AUTHORS COPYING
cc6c0c
%attr(0755,root,root) %{_bindir}/*
cc6c0c
%{_mandir}/man8/*
cc6c0c
cc6c0c
cc6c0c
%changelog
591e0d
* Wed Mar 15 2017 Gris Ge <fge@redhat.com> - 0.27-6
591e0d
- Append a space if [hctl] is too long. (RHBZ #1429361)
591e0d
591e0d
* Tue Feb 28 2017 Gris Ge <fge@redhat.com> 0.27-5
591e0d
- Fix truncation of 128-bit wwn of disk.
591e0d
534d71
* Fri Jun 19 2015 David Sommerseth <davids@redhat.com> - 0.27-4
534d71
- Remove enclosure queries for FCP/FCoE (#1062322)
534d71
0f7eb1
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 0.27-3
0f7eb1
- Mass rebuild 2014-01-24
0f7eb1
0f7eb1
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 0.27-2
0f7eb1
- Mass rebuild 2013-12-27
0f7eb1
cc6c0c
* Fri May 17 2013 Dan Horák <dan[at]danny.cz> - 0.27-1
cc6c0c
- update to 0.27
cc6c0c
cc6c0c
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.26-3
cc6c0c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
cc6c0c
cc6c0c
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.26-2
cc6c0c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
cc6c0c
cc6c0c
* Wed Mar 28 2012 Dan Horák <dan[at]danny.cz> - 0.26-1
cc6c0c
- update to 0.26
cc6c0c
cc6c0c
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.25-2
cc6c0c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
cc6c0c
cc6c0c
* Mon Jul 18 2011 Dan Horák <dan[at]danny.cz> - 0.25-1
cc6c0c
- update to 0.25
cc6c0c
cc6c0c
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.23-3
cc6c0c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
cc6c0c
cc6c0c
* Thu May  6 2010 Dan Horák <dan[at]danny.cz> - 0.23-2
cc6c0c
- fix path separator for FC devices (#589327)
cc6c0c
- fix for kernels with unified string representation of NULL (#589860)
cc6c0c
cc6c0c
* Sun Dec  6 2009 Dan Horák <dan[at]danny.cz> - 0.23-1
cc6c0c
- update to 0.23
cc6c0c
cc6c0c
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.22-3
cc6c0c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
cc6c0c
cc6c0c
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.22-2
cc6c0c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
cc6c0c
cc6c0c
* Mon Feb  2 2009 Dan Horák <dan[at]danny.cz> - 0.22-1
cc6c0c
- update to 0.22
cc6c0c
cc6c0c
* Tue Nov  4 2008 Dan Horák <dan[at]danny.cz> - 0.21-2
cc6c0c
- add disttag
cc6c0c
cc6c0c
* Tue Nov  4 2008 Dan Horák <dan[at]danny.cz> - 0.21-1
cc6c0c
- update to 0.21
cc6c0c
- update urls
cc6c0c
cc6c0c
* Thu May 22 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.17-6
cc6c0c
- fix license tag
cc6c0c
cc6c0c
* Mon Feb 18 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.17-5
cc6c0c
- Autorebuild for GCC 4.3
cc6c0c
cc6c0c
* Thu Oct 05 2006 Christian Iseli <Christian.Iseli@licr.org> 0.17-4
cc6c0c
 - rebuilt for unwind info generation, broken in gcc-4.1.1-21
cc6c0c
cc6c0c
* Tue Sep 19 2006 - Chip Coldwell <coldwell@redhat.com> 0.17-3
cc6c0c
- bump the EVR for FC6 rebuild
cc6c0c
* Mon Jul 17 2006 - Chip Coldwell <coldwell@redhat.com> 0.17-2
cc6c0c
- modify spec file to meet Fedora Project packaging guidelines
cc6c0c
* Mon Feb 06 2006 - Doug Gilbert <dgilbert(at)interlog(dot)com> 0.17-1
cc6c0c
- fix disappearance of block device names in lk 2.6.16-rc1
cc6c0c
* Fri Dec 30 2005 - Doug Gilbert <dgilbert(at)interlog(dot)com> 0.16-1
cc6c0c
- wlun naming, osst and changer devices
cc6c0c
* Tue Jul 19 2005 - Doug Gilbert <dgilbert(at)interlog(dot)com> 0.15-1
cc6c0c
- does not use libsysfs, add filter argument, /dev scanning
cc6c0c
* Fri Aug 20 2004 - Doug Gilbert <dgilbert(at)interlog(dot)com> 0.13-1
cc6c0c
- add 'timeout'
cc6c0c
* Sun May 9 2004 - Doug Gilbert <dgilbert(at)interlog(dot)com> 0.12-1
cc6c0c
- rework for lk 2.6.6, device state, host name, '-d' for major+minor
cc6c0c
* Fri Jan 09 2004 - Doug Gilbert <dgilbert(at)interlog(dot)com> 0.11-1
cc6c0c
- rework for lk 2.6.1
cc6c0c
* Tue May 06 2003 - Doug Gilbert <dgilbert(at)interlog(dot)com> 0.10-1
cc6c0c
- adjust HBA listing for lk > 2.5.69
cc6c0c
* Fri Apr 04 2003 - Doug Gilbert <dgilbert(at)interlog(dot)com> 0.09-1
cc6c0c
- fix up sorting, GPL + copyright notice
cc6c0c
* Sun Mar 2 2003 - Doug Gilbert <dgilbert(at)interlog(dot)com> 0.08-1
cc6c0c
- start to add host listing support (lk >= 2.5.63)
cc6c0c
* Fri Feb 14 2003 - Doug Gilbert <dgilbert(at)interlog(dot)com> 0.07-1
cc6c0c
- queue_depth name change in sysfs (lk 2.5.60)
cc6c0c
* Mon Jan 20 2003 - Doug Gilbert <dgilbert(at)interlog(dot)com> 0.06-1
cc6c0c
- osst device file names fix
cc6c0c
* Sat Jan 18 2003 - Doug Gilbert <dgilbert(at)interlog(dot)com> 0.05-1
cc6c0c
- output st and osst device file names (rather than "-")
534d71
* Tue Jan 14 2003 - Doug Gilbert <dgilbert(at)interlog(dot)com> 0.04-1
cc6c0c
- fix multiple listings of st devices (needed for lk 2.5.57)
cc6c0c
* Thu Jan 09 2003 - Doug Gilbert <dgilbert(at)interlog(dot)com> 0.03-1
cc6c0c
- add --generic option (list sg devices), scsi_level output
cc6c0c
* Wed Dec 18 2002 - Doug Gilbert <dgilbert(at)interlog(dot)com> 0.02-1
cc6c0c
- add more options including classic mode
cc6c0c
* Fri Dec 13 2002 - Doug Gilbert <dgilbert(at)interlog(dot)com> 0.01-1
cc6c0c
- original