# # spec file for package lsscsi (Version 0.23) # # Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # # norootforbuild Url: http://sg.danny.cz/scsi/lsscsi.html Name: lsscsi %define lsscsiver 0.26 License: GPL-2.0+ Group: Hardware/Other AutoReqProv: on Provides: scsi:/usr/bin/lsscsi Version: 0.26 Release: 2 Summary: List all SCSI devices in the system Source: lsscsi-%{lsscsiver}.tgz BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: i486 %description The lsscsi command lists information about SCSI devices in Linux. Authors: -------- Doug Gilbert %prep %setup %build CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{_prefix} --mandir=%{_mandir} make %install make install DESTDIR=$RPM_BUILD_ROOT PREFIX=%{_prefix} MANDIR=$RPM_BUILD_ROOT/%{_mandir} INSTDIR=$RPM_BUILD_ROOT/%{_bindir} %files %defattr(-,root,root) %attr(755,root,root) %{_bindir}/lsscsi %doc %{_mandir}/man8/lsscsi.8.gz %doc NEWS README ChangeLog %clean test ! -z "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != "/" && rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_DIR/lsscsi-%{lsscsiver} %changelog * Mon Dec 7 2009 jdelvare@suse.de - Update to lsscsi-0.23: * Show protection information with '--protection' option, ATA, SATA and USB transport information. * Stop scanning /proc/mounts; assume /sys unless overridden by '--sysfsroot=PATH' option. - This update fixes bnc#556180. * Fri Oct 31 2008 hare@suse.de - Update sysfs patch to match latest sysfs changes (bnc#434823) * Tue Aug 12 2008 garloff@suse.de - Update to lsscsi-0.21: SysFS scanning changes imposed by kernel 2.6.25/26. * Fri May 23 2008 hare@suse.de - using 'Provides' to clean update dependency. * Thu Apr 24 2008 hare@suse.de - Split off from original scsi package.