From d311af2b24972e7b2602badc68c94f36dbb4c90a Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 06:30:44 +0100 Subject: [PATCH] package created using the webbuild interface [release 0.32-1mamba;Sun May 09 2021] --- README.md | 4 ++++ lsscsi.spec | 45 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 49 insertions(+) create mode 100644 lsscsi.spec diff --git a/README.md b/README.md index 17cee16..c53963c 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,6 @@ # lsscsi +The lsscsi command lists information about SCSI devices in Linux. Using SCSI terminology, lsscsi lists SCSI logical units (or SCSI targets when the '--transport' option is given). The default action is to produce one line of output for each SCSI device currently attached to the system. In version 0.30 of this utility, support was added to list NVMe namespaces (under SCSI devices(LUs)) and NVMe controllers (under SCSI hosts). +When the '--hosts' option is given the lsscsi command lists information about SCSI hosts attached to the system. A host can be actual hardware (sometimes referred to as Host Bus Adapters (HBAs)) or virtual. An example of a virtual host is USB mass storage that bridges between USB and the SCSI subsystem. In SCSI parlance, a host is referred to as an SCSI initiator. +The lsscsi command scans the sysfs pseudo file system that was introduced in the 2.6 Linux kernel series. Since most users have permissions to read sysfs (usually mounted at /sys ) then meta information can be found on some or all SCSI devices without a user needing elevated permissions to access special files (e.g. /dev/sda ). The lsscsi command can also show the relationship between a device's primary node name, its SCSI generic (sg) node name and its kernel name. + diff --git a/lsscsi.spec b/lsscsi.spec new file mode 100644 index 0000000..a2cee07 --- /dev/null +++ b/lsscsi.spec @@ -0,0 +1,45 @@ +Name: lsscsi +Version: 0.32 +Release: 1mamba +Summary: The lsscsi command lists information about SCSI devices in Linux +Group: System/Kernel and Hardware +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://sg.danny.cz/scsi/lsscsi.html +Source: https://github.com/doug-gilbert/lsscsi.git/r%{version}/lsscsi-%{version}.tar.bz2 +License: GPL +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +## AUTOBUILDREQ-END + +%description +The lsscsi command lists information about SCSI devices in Linux. Using SCSI terminology, lsscsi lists SCSI logical units (or SCSI targets when the '--transport' option is given). The default action is to produce one line of output for each SCSI device currently attached to the system. In version 0.30 of this utility, support was added to list NVMe namespaces (under SCSI devices(LUs)) and NVMe controllers (under SCSI hosts). +When the '--hosts' option is given the lsscsi command lists information about SCSI hosts attached to the system. A host can be actual hardware (sometimes referred to as Host Bus Adapters (HBAs)) or virtual. An example of a virtual host is USB mass storage that bridges between USB and the SCSI subsystem. In SCSI parlance, a host is referred to as an SCSI initiator. +The lsscsi command scans the sysfs pseudo file system that was introduced in the 2.6 Linux kernel series. Since most users have permissions to read sysfs (usually mounted at /sys ) then meta information can be found on some or all SCSI devices without a user needing elevated permissions to access special files (e.g. /dev/sda ). The lsscsi command can also show the relationship between a device's primary node name, its SCSI generic (sg) node name and its kernel name. + +%debug_package + +%prep +%setup -q + +%build +%configure +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files +%defattr(-,root,root) +%{_bindir}/lsscsi +%{_mandir}/man8/lsscsi.8* +%doc AUTHORS COPYING CREDITS + +%changelog +* Sun May 09 2021 Silvan Calarco 0.32-1mamba +- package created using the webbuild interface