2008-05-01 04:53:49 +02:00
|
|
|
#
|
2012-01-18 23:40:48 +01:00
|
|
|
# spec file for package sg3_utils
|
2008-05-01 04:53:49 +02:00
|
|
|
#
|
2013-03-12 09:18:57 +01:00
|
|
|
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2008-05-01 04:53:49 +02:00
|
|
|
#
|
2008-08-14 02:37:47 +02:00
|
|
|
# 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.
|
|
|
|
|
2008-05-01 04:53:49 +02:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2012-01-18 23:40:48 +01:00
|
|
|
Url: http://sg.danny.cz/sg/sg3_utils.html
|
2008-05-01 04:53:49 +02:00
|
|
|
|
|
|
|
Name: sg3_utils
|
2013-03-12 09:18:57 +01:00
|
|
|
Version: 1.35
|
2012-04-20 09:23:07 +02:00
|
|
|
Release: 0
|
2008-05-01 04:53:49 +02:00
|
|
|
Summary: A collection of tools that send SCSI commands to devices
|
2012-07-04 11:33:12 +02:00
|
|
|
License: GPL-2.0+ and BSD-3-Clause
|
2012-04-20 09:23:07 +02:00
|
|
|
Group: Hardware/Other
|
2012-04-22 13:59:00 +02:00
|
|
|
Source: http://sg.danny.cz/sg/p/sg3_utils-%{version}.tgz
|
|
|
|
Requires(pre): %insserv_prereq
|
|
|
|
Provides: scsi
|
|
|
|
Provides: sg_utils
|
|
|
|
Obsoletes: scsi <= 1.7_2.38_1.25_0.19_1.02_0.93
|
2008-05-01 04:53:49 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
|
|
|
The sg3_utils package contains utilities that send SCSI commands to
|
|
|
|
devices. As well as devices on transports traditionally associated with
|
|
|
|
SCSI (e.g. Fibre Channel (FCP), Serial Attached SCSI (SAS) and the SCSI
|
|
|
|
Parallel Interface(SPI)) many other devices use SCSI command sets.
|
|
|
|
ATAPI cd/dvd drives and SATA disks that connect via a translation layer
|
|
|
|
or a bridge device are examples of devices that use SCSI command sets.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: A collection of tools that send SCSI commands to devices
|
2008-09-13 12:13:23 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
2012-04-22 13:59:00 +02:00
|
|
|
Requires: %{name} = %{version}
|
2008-05-01 04:53:49 +02:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
The sg3_utils package contains utilities that send SCSI commands to
|
|
|
|
devices. As well as devices on transports traditionally associated with
|
|
|
|
SCSI (e.g. Fibre Channel (FCP), Serial Attached SCSI (SAS) and the SCSI
|
|
|
|
Parallel Interface(SPI)) many other devices use SCSI command sets.
|
|
|
|
ATAPI cd/dvd drives and SATA disks that connect via a translation layer
|
|
|
|
or a bridge device are examples of devices that use SCSI command sets.
|
|
|
|
|
|
|
|
%prep
|
2009-04-18 14:04:26 +02:00
|
|
|
%setup -q
|
2008-05-01 04:53:49 +02:00
|
|
|
|
|
|
|
%build
|
2009-04-18 14:04:26 +02:00
|
|
|
%configure --disable-static --with-pic
|
2010-07-30 17:09:35 +02:00
|
|
|
%{__make} %{?_smp_mflags}
|
2008-05-01 04:53:49 +02:00
|
|
|
|
|
|
|
%install
|
2009-07-23 17:21:39 +02:00
|
|
|
%makeinstall
|
2008-05-01 04:53:49 +02:00
|
|
|
install -m 755 scripts/scsi_logging_level $RPM_BUILD_ROOT%{_bindir}
|
2013-03-12 09:48:51 +01:00
|
|
|
install -m 755 scripts/rescan-scsi-bus.sh $RPM_BUILD_ROOT%{_bindir}
|
2009-04-18 14:04:26 +02:00
|
|
|
%{__rm} -f %{buildroot}%{_libdir}/*.la
|
2008-05-01 04:53:49 +02:00
|
|
|
|
2009-04-18 14:04:26 +02:00
|
|
|
%post -p /sbin/ldconfig
|
2008-05-01 04:53:49 +02:00
|
|
|
|
2009-04-18 14:04:26 +02:00
|
|
|
%postun -p /sbin/ldconfig
|
2008-05-01 04:53:49 +02:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc README README.sg_start
|
2008-11-03 14:22:33 +01:00
|
|
|
%doc ChangeLog CREDITS NEWS
|
2013-03-12 10:00:50 +01:00
|
|
|
%attr(755,root,root) %{_bindir}/sg_*
|
2008-05-01 04:53:49 +02:00
|
|
|
%attr(755,root,root) %{_bindir}/sginfo
|
|
|
|
%attr(755,root,root) %{_bindir}/sgp_dd
|
|
|
|
%attr(755,root,root) %{_bindir}/sgm_dd
|
|
|
|
%attr(755,root,root) %{_bindir}/scsi_logging_level
|
|
|
|
%attr(755,root,root) %{_bindir}/rescan-scsi-bus.sh
|
2013-03-12 10:00:50 +01:00
|
|
|
%doc %{_mandir}/man8/sg_*.8.gz
|
2008-05-01 04:53:49 +02:00
|
|
|
%doc %{_mandir}/man8/sgp_dd.8.gz
|
|
|
|
%doc %{_mandir}/man8/sgm_dd.8.gz
|
|
|
|
%doc %{_mandir}/man8/sginfo.8.gz
|
|
|
|
%doc %{_mandir}/man8/sg3_utils.8.gz
|
2011-02-19 08:32:28 +01:00
|
|
|
%doc %{_mandir}/man8/scsi_readcap.8.gz
|
|
|
|
%doc %{_mandir}/man8/scsi_ready.8.gz
|
|
|
|
%doc %{_mandir}/man8/scsi_start.8.gz
|
|
|
|
%doc %{_mandir}/man8/scsi_stop.8.gz
|
2012-04-22 13:54:04 +02:00
|
|
|
%doc %{_mandir}/man8/scsi_logging_level.8.gz
|
|
|
|
%doc %{_mandir}/man8/scsi_mandat.8.gz
|
|
|
|
%doc %{_mandir}/man8/scsi_satl.8.gz
|
|
|
|
%doc %{_mandir}/man8/scsi_temperature.8.gz
|
2009-07-23 17:21:39 +02:00
|
|
|
%attr(755,root,root) %{_libdir}/libsgutils2.so.*
|
2008-05-01 04:53:49 +02:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(644,root,root)
|
2009-07-23 17:21:39 +02:00
|
|
|
%attr(755,root,root) %{_libdir}/libsgutils2.so
|
2008-05-01 04:53:49 +02:00
|
|
|
%attr(755,root,root) %dir %{_prefix}/include/scsi
|
2012-04-22 13:59:00 +02:00
|
|
|
%{_includedir}/scsi/sg_cmds.h
|
|
|
|
%{_includedir}/scsi/sg_cmds_basic.h
|
|
|
|
%{_includedir}/scsi/sg_cmds_extra.h
|
|
|
|
%{_includedir}/scsi/sg_lib.h
|
|
|
|
%{_includedir}/scsi/sg_pt.h
|
|
|
|
%{_includedir}/scsi/sg_io_linux.h
|
|
|
|
%{_includedir}/scsi/sg_linux_inc.h
|
|
|
|
%{_includedir}/scsi/sg_cmds_mmc.h
|
|
|
|
%{_includedir}/scsi/sg_lib_data.h
|
2008-05-01 04:53:49 +02:00
|
|
|
|
|
|
|
%clean
|
|
|
|
test ! -z "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != "/" && rm -rf $RPM_BUILD_ROOT
|
2012-04-22 13:59:00 +02:00
|
|
|
rm -rf $RPM_BUILD_DIR/sg3_utils-%{version}
|
2008-05-01 04:53:49 +02:00
|
|
|
|
|
|
|
%changelog
|