File lsscsi.spec of Package lsscsi
#
# 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.23
License: GPLv2+
Group: Hardware/Other
AutoReqProv: on
Provides: scsi:/usr/bin/lsscsi
Version: 0.23
Release: 1
Summary: List all SCSI devices in the system
Source: lsscsi-%{lsscsiver}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
The lsscsi command lists information about SCSI devices in Linux.
Authors:
--------
Doug Gilbert <dgilbert@torque.net>
%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