4093ad11f7
- Update to new upstream release 1.43: * sg_senddiag: add --timeout=SEC option * sg_sanitize: add --timeout=SEC option * sg_format: add --timeout=SEC option * sg_decode sense: add --cdb option * sg_ses: handle 2 bit EIIOE field in aes dpage - expand join handling of SAS connectors and others - expand join debug code * sg_logs: fix volume statistics lpage when subpage is zero (ssc5r02a); decode mount history log parameter - decode Requested recovery, TapeAlert response, and Service buffer information lpages for tape - add '--pdt=DT' option * sg_inq: fix potential unbounded loop in --export - update version descriptor list to 20160420 * sg_inq+sg_vpd: update Extended inquiry data vpd page (spc5r09) - add --force option to bypass checking supported vpd pages page and fetch requested page directly * sg_reassign+sg_write_same: fix ULONG_MAX problem * sg_turs+sg_requests: make both accept '--num=NUM' and '--number=NUM' for mutual compatibility * sg_zone: fix debug cdb naming * sg_opcode: add '--enumerate' and '--pdt=' options * sg_raw: add '--enumerate' option * sg_lib: add SSC maintenance in/out sa names - add read buffer(16) command mode names - add sg_decode_transportid_str() * sg_lib_data: sync asc/ascq codes with T10 20160425 * rescan-scsi-bus.sh: harden code OBS-URL: https://build.opensuse.org/request/show/392048 OBS-URL: https://build.opensuse.org/package/show/Base:System/sg3_utils?expand=0&rev=60
134 lines
4.5 KiB
RPMSpec
134 lines
4.5 KiB
RPMSpec
#
|
|
# spec file for package sg3_utils
|
|
#
|
|
# Copyright (c) 2016 SUSE LINUX 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/
|
|
#
|
|
|
|
|
|
Name: sg3_utils
|
|
%define lname libsgutils2-1_43-2
|
|
Version: 1.43
|
|
Release: 0
|
|
Summary: A collection of tools that send SCSI commands to devices
|
|
License: GPL-2.0+ and BSD-3-Clause
|
|
Group: Hardware/Other
|
|
Url: http://sg.danny.cz/sg/sg3_utils.html
|
|
|
|
Source: sg3_utils-%{version}.tar.xz
|
|
Source1: 40-usb-blacklist.rules
|
|
Patch1: sgut-libversioning.diff
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
BuildRequires: libtool
|
|
BuildRequires: udev
|
|
BuildRequires: xz
|
|
Requires(pre): %insserv_prereq
|
|
Provides: scsi
|
|
Provides: sg_utils
|
|
Obsoletes: scsi <= 1.7_2.38_1.25_0.19_1.02_0.93
|
|
|
|
%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 -n %lname
|
|
Summary: Library to hold functions common to the SCSI utilities
|
|
License: BSD-3-Clause
|
|
Group: System/Libraries
|
|
|
|
%description -n %lname
|
|
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.
|
|
|
|
This subpackage contains the library of common sg_utils code, such as
|
|
SCSI error processing.
|
|
|
|
%package -n libsgutils-devel
|
|
Summary: A collection of tools that send SCSI commands to devices
|
|
License: BSD-3-Clause
|
|
Group: Development/Libraries/C and C++
|
|
Requires: %lname = %version
|
|
# Added for 13.1
|
|
Obsoletes: %name-devel < %version-%release
|
|
Provides: %name-devel = %version-%release
|
|
|
|
%description -n libsgutils-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.
|
|
|
|
This subpackage contains libraries and header files for developing
|
|
applications that want to make use of libsgutils.
|
|
|
|
%prep
|
|
%setup -q
|
|
%patch1 -p1
|
|
|
|
%build
|
|
autoreconf -fi
|
|
%configure --disable-static
|
|
make %{?_smp_mflags}
|
|
|
|
%install
|
|
%make_install
|
|
install -m 755 scripts/scsi_logging_level $RPM_BUILD_ROOT%{_bindir}
|
|
install -m 755 scripts/rescan-scsi-bus.sh $RPM_BUILD_ROOT%{_bindir}
|
|
install -m 644 doc/rescan-scsi-bus.sh.8 $RPM_BUILD_ROOT%{_mandir}/man8
|
|
mkdir -p $RPM_BUILD_ROOT%{_udevrulesdir}
|
|
install -m 644 scripts/55-scsi-sg3_id.rules $RPM_BUILD_ROOT%{_udevrulesdir}
|
|
install -m 644 scripts/58-scsi-sg3_symlink.rules $RPM_BUILD_ROOT%{_udevrulesdir}
|
|
install -m 644 %{SOURCE1} $RPM_BUILD_ROOT%{_udevrulesdir}
|
|
rm -f %{buildroot}%{_libdir}/*.la
|
|
|
|
%post -p /sbin/ldconfig -n %lname
|
|
|
|
%postun -p /sbin/ldconfig -n %lname
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%doc README README.sg_start
|
|
%doc ChangeLog CREDITS NEWS
|
|
%_bindir/sg_*
|
|
%_bindir/scsi_*
|
|
%_bindir/sginfo
|
|
%_bindir/sgp_dd
|
|
%_bindir/sgm_dd
|
|
%_bindir/scsi_logging_level
|
|
%_bindir/rescan-scsi-bus.sh
|
|
%_mandir/man8/*.8*
|
|
%{_udevrulesdir}/40-usb-blacklist.rules
|
|
%{_udevrulesdir}/55-scsi-sg3_id.rules
|
|
%{_udevrulesdir}/58-scsi-sg3_symlink.rules
|
|
|
|
%files -n %lname
|
|
%defattr(-,root,root)
|
|
%_libdir/libsgutils2-1.*.so.2*
|
|
|
|
%files -n libsgutils-devel
|
|
%defattr(-,root,root)
|
|
%_libdir/libsgutils2.so
|
|
%_includedir/scsi/
|
|
|
|
%changelog
|