File lsscsi.spec of Package lsscsi

#
# spec file for package lsscsi (Version 0.21)
#
# Copyright (c) 2008 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.21
License:        GPL v2 or later
Group:          Hardware/Other
AutoReqProv:    on
Provides:       scsi:/usr/bin/lsscsi
Version:        0.21
Release:        13
Summary:        List all SCSI devices in the system
Source:         http://sg.torque.net/scsi/lsscsi-%{lsscsiver}.tar.bz2
Patch1:         %{name}-%{version}-usb-transport
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
The lsscsi command lists information about SCSI devices in Linux.



Authors:
--------
    Doug Gilbert <dgilbert@torque.net>

%prep
%setup
%patch1

%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
* 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.
openSUSE Build Service is sponsored by