870ea6254e
- sg_compare_and_write: new utility - sg_inq+sg_vpd: block device characteristics VPD page: add product_type, WABEREQ, WACEREQ and VBULS fields - sg_inq: more --export option changes for udev - sg_vpd: add more rdac vendor specific vpd pages - sg_verify: add --ebytchk option for sbc3r34 changes - sg_stpg: --offline option: fix 'Invalid state 0xe' - sg_ses: Door Lock element changed to Door element and abbreviation changed from 'dl' to 'do' (ses3r05) - archive/rescan-scsi-bus.sh: upgrade to version 1.53hr - move rescan-scsi-bus.sh to scripts directory - sync to sbc3r34 - sg_lib: sg_ll_verify10+16 expand BYTCHK to 2 bit field - sg_pt_win32, sg_scan(win32): changes for cygwin 1.7.17 - clean up man page summary lines - sg_xcopy: new dd like utility for extended copy command - sg_copy_results: new utility for receive copy results - sg_verify: add 16 byte cdb, bytchk (data-out buffer) and group number support - sync to spc4r36 and sbc3r32 - sg_inq: add --export so sg_inq can replace udev's scsi_id - decode old EMC Symmetrix abuse of VPD page 0x83 - sg_vpd: decode old EMC Symmetrix abuse of VPD page 0x83 - sg_ses: increase max dpage response size to 64 KB - allow ident,locate on enclosure controller - more sanity for additional element status descriptor - sg_sanitize: add --ause, --fail and --test= - sg_luns: add long extended flat space addressing format - sg_logs: add ATA pass-through results lpage (SAT-2) OBS-URL: https://build.opensuse.org/package/show/Base:System/sg3_utils?expand=0&rev=19
215 lines
7.9 KiB
RPMSpec
215 lines
7.9 KiB
RPMSpec
#
|
|
# spec file for package sg3_utils
|
|
#
|
|
# Copyright (c) 2013 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/
|
|
#
|
|
|
|
|
|
Url: http://sg.danny.cz/sg/sg3_utils.html
|
|
|
|
Name: sg3_utils
|
|
Version: 1.35
|
|
Release: 0
|
|
Summary: A collection of tools that send SCSI commands to devices
|
|
License: GPL-2.0+ and BSD-3-Clause
|
|
Group: Hardware/Other
|
|
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
|
|
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
|
|
Group: Development/Libraries/C and C++
|
|
Requires: %{name} = %{version}
|
|
|
|
%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
|
|
%setup -q
|
|
|
|
%build
|
|
%configure --disable-static --with-pic
|
|
%{__make} %{?_smp_mflags}
|
|
|
|
%install
|
|
%makeinstall
|
|
install -m 755 scripts/scsi_logging_level $RPM_BUILD_ROOT%{_bindir}
|
|
%{__rm} -f %{buildroot}%{_libdir}/*.la
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%doc README README.sg_start
|
|
%doc ChangeLog CREDITS NEWS
|
|
%attr(755,root,root) %{_bindir}/sg_dd
|
|
%attr(755,root,root) %{_bindir}/sg_inq
|
|
%attr(755,root,root) %{_bindir}/sg_scan
|
|
%attr(755,root,root) %{_bindir}/sg_rbuf
|
|
%attr(755,root,root) %{_bindir}/sginfo
|
|
%attr(755,root,root) %{_bindir}/sg_readcap
|
|
%attr(755,root,root) %{_bindir}/sgp_dd
|
|
%attr(755,root,root) %{_bindir}/sg_map
|
|
%attr(755,root,root) %{_bindir}/sg_turs
|
|
%attr(755,root,root) %{_bindir}/sg_test_rwbuf
|
|
#%%attr(755,root,root) %%{_bindir}/scsi_devfs_scan
|
|
%attr(755,root,root) %{_bindir}/sgm_dd
|
|
%attr(755,root,root) %{_bindir}/sg_read
|
|
%attr(755,root,root) %{_bindir}/sg_logs
|
|
%attr(755,root,root) %{_bindir}/sg_modes
|
|
%attr(755,root,root) %{_bindir}/sg_opcodes
|
|
%attr(755,root,root) %{_bindir}/sg_persist
|
|
%attr(755,root,root) %{_bindir}/sg_senddiag
|
|
%attr(755,root,root) %{_bindir}/sg_reset
|
|
%attr(755,root,root) %{_bindir}/sg_emc_trespass
|
|
%attr(755,root,root) %{_bindir}/sg_read_long
|
|
%attr(755,root,root) %{_bindir}/sg_requests
|
|
%attr(755,root,root) %{_bindir}/sg_ses
|
|
%attr(755,root,root) %{_bindir}/sg_verify
|
|
%attr(755,root,root) %{_bindir}/sg_write_long
|
|
%attr(755,root,root) %{_bindir}/sg_luns
|
|
%attr(755,root,root) %{_bindir}/sg_prevent
|
|
%attr(755,root,root) %{_bindir}/sg_get_config
|
|
%attr(755,root,root) %{_bindir}/sg_sync
|
|
%attr(755,root,root) %{_bindir}/sg_wr_mode
|
|
%attr(755,root,root) %{_bindir}/sg_reassign
|
|
%attr(755,root,root) %{_bindir}/sg_rtpg
|
|
%attr(755,root,root) %{_bindir}/sg_format
|
|
%attr(755,root,root) %{_bindir}/sg_rmsn
|
|
%attr(755,root,root) %{_bindir}/sg_start
|
|
%attr(755,root,root) %{_bindir}/sg_ident
|
|
%attr(755,root,root) %{_bindir}/sg_map26
|
|
%attr(755,root,root) %{_bindir}/sg_rdac
|
|
%attr(755,root,root) %{_bindir}/sg_vpd
|
|
%attr(755,root,root) %{_bindir}/sg_raw
|
|
%attr(755,root,root) %{_bindir}/sg_write_buffer
|
|
%attr(755,root,root) %{_bindir}/sg_sat_identify
|
|
%attr(755,root,root) %{_bindir}/sg_read_buffer
|
|
%attr(755,root,root) %{_bindir}/sg_safte
|
|
%attr(755,root,root) %{_bindir}/sg_sat_phy_event
|
|
%attr(755,root,root) %{_bindir}/sg_sat_set_features
|
|
%attr(755,root,root) %{_bindir}/sg_stpg
|
|
%attr(755,root,root) %{_bindir}/scsi_logging_level
|
|
%attr(755,root,root) %{_bindir}/rescan-scsi-bus.sh
|
|
%attr(755,root,root) %{_bindir}/sg_get_lba_status
|
|
%attr(755,root,root) %{_bindir}/sg_read_block_limits
|
|
%attr(755,root,root) %{_bindir}/sg_unmap
|
|
%attr(755,root,root) %{_bindir}/sg_write_same
|
|
%attr(755,root,root) %{_bindir}/sg_decode_sense
|
|
%attr(755,root,root) %{_bindir}/sg_referrals
|
|
%attr(755,root,root) %{_bindir}/sg_sanitize
|
|
%doc %{_mandir}/man8/sg_dd.8.gz
|
|
%doc %{_mandir}/man8/sgp_dd.8.gz
|
|
%doc %{_mandir}/man8/sgm_dd.8.gz
|
|
%doc %{_mandir}/man8/sg_map.8.gz
|
|
%doc %{_mandir}/man8/sg_rbuf.8.gz
|
|
%doc %{_mandir}/man8/sg_read.8.gz
|
|
%doc %{_mandir}/man8/sg_scan.8.gz
|
|
%doc %{_mandir}/man8/sginfo.8.gz
|
|
%doc %{_mandir}/man8/sg_readcap.8.gz
|
|
%doc %{_mandir}/man8/sg_turs.8.gz
|
|
%doc %{_mandir}/man8/sg_inq.8.gz
|
|
%doc %{_mandir}/man8/sg_test_rwbuf.8.gz
|
|
#%%doc %%{_mandir}/man8/scsi_devfs_scan.8.gz
|
|
%doc %{_mandir}/man8/sg_start.8.gz
|
|
%doc %{_mandir}/man8/sg_reset.8.gz
|
|
%doc %{_mandir}/man8/sg_modes.8.gz
|
|
%doc %{_mandir}/man8/sg_logs.8.gz
|
|
%doc %{_mandir}/man8/sg_opcodes.8.gz
|
|
%doc %{_mandir}/man8/sg_persist.8.gz
|
|
%doc %{_mandir}/man8/sg_senddiag.8.gz
|
|
%doc %{_mandir}/man8/sg_emc_trespass.8.gz
|
|
%doc %{_mandir}/man8/sg_read_long.8.gz
|
|
%doc %{_mandir}/man8/sg_requests.8.gz
|
|
%doc %{_mandir}/man8/sg_ses.8.gz
|
|
%doc %{_mandir}/man8/sg_verify.8.gz
|
|
%doc %{_mandir}/man8/sg_write_long.8.gz
|
|
%doc %{_mandir}/man8/sg_luns.8.gz
|
|
%doc %{_mandir}/man8/sg_prevent.8.gz
|
|
%doc %{_mandir}/man8/sg_get_config.8.gz
|
|
%doc %{_mandir}/man8/sg_sync.8.gz
|
|
%doc %{_mandir}/man8/sg_wr_mode.8.gz
|
|
%doc %{_mandir}/man8/sg_reassign.8.gz
|
|
%doc %{_mandir}/man8/sg_rtpg.8.gz
|
|
%doc %{_mandir}/man8/sg_format.8.gz
|
|
%doc %{_mandir}/man8/sg_rmsn.8.gz
|
|
%doc %{_mandir}/man8/sg_ident.8.gz
|
|
%doc %{_mandir}/man8/sg_map26.8.gz
|
|
%doc %{_mandir}/man8/sg_rdac.8.gz
|
|
%doc %{_mandir}/man8/sg_vpd.8.gz
|
|
%doc %{_mandir}/man8/sg_raw.8.gz
|
|
%doc %{_mandir}/man8/sg_write_buffer.8.gz
|
|
%doc %{_mandir}/man8/sg_sat_identify.8.gz
|
|
%doc %{_mandir}/man8/sg_read_buffer.8.gz
|
|
%doc %{_mandir}/man8/sg_safte.8.gz
|
|
%doc %{_mandir}/man8/sg_sat_phy_event.8.gz
|
|
%doc %{_mandir}/man8/sg_sat_set_features.8.gz
|
|
%doc %{_mandir}/man8/sg_stpg.8.gz
|
|
%doc %{_mandir}/man8/sg3_utils.8.gz
|
|
%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
|
|
%doc %{_mandir}/man8/sg_get_lba_status.8.gz
|
|
%doc %{_mandir}/man8/sg_read_block_limits.8.gz
|
|
%doc %{_mandir}/man8/sg_unmap.8.gz
|
|
%doc %{_mandir}/man8/sg_write_same.8.gz
|
|
%doc %{_mandir}/man8/sg_decode_sense.8.gz
|
|
%doc %{_mandir}/man8/sg_referrals.8.gz
|
|
%doc %{_mandir}/man8/sg_sanitize.8.gz
|
|
%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
|
|
%attr(755,root,root) %{_libdir}/libsgutils2.so.*
|
|
|
|
%files devel
|
|
%defattr(644,root,root)
|
|
%attr(755,root,root) %{_libdir}/libsgutils2.so
|
|
%attr(755,root,root) %dir %{_prefix}/include/scsi
|
|
%{_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
|
|
|
|
%clean
|
|
test ! -z "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != "/" && rm -rf $RPM_BUILD_ROOT
|
|
rm -rf $RPM_BUILD_DIR/sg3_utils-%{version}
|
|
|
|
%changelog
|