|
|
9422fd |
%global rescan_script rescan-scsi-bus.sh
|
|
|
9422fd |
|
|
|
9422fd |
Summary: Utilities for devices that use SCSI command sets
|
|
|
9422fd |
Name: sg3_utils
|
|
|
9422fd |
Version: 1.37
|
|
|
267fe6 |
Release: 5%{?dist}
|
|
|
9422fd |
License: GPLv2+ and BSD
|
|
|
9422fd |
Group: Applications/System
|
|
|
9422fd |
Source0: http://sg.danny.cz/sg/p/sg3_utils-%{version}.tgz
|
|
|
267fe6 |
Source1: rescan-scsi-bus.sh.8
|
|
|
267fe6 |
Source2: scsi-rescan.8
|
|
|
9422fd |
# https://bugzilla.redhat.com/show_bug.cgi?id=920687
|
|
|
9422fd |
Patch0: sg3_utils-1.37-dont-open-dev-snapshot.patch
|
|
|
267fe6 |
# https://bugzilla.redhat.com/show_bug.cgi?id=948463
|
|
|
267fe6 |
Patch1: sg3_utils-1.37-man-pages-fix.patch
|
|
|
9422fd |
URL: http://sg.danny.cz/sg/sg3_utils.html
|
|
|
9422fd |
Requires: %{name}-libs = %{version}-%{release}
|
|
|
9422fd |
|
|
|
9422fd |
|
|
|
9422fd |
%description
|
|
|
9422fd |
Collection of Linux utilities for devices that use the SCSI command set.
|
|
|
9422fd |
Includes utilities to copy data based on "dd" syntax and semantics (called
|
|
|
9422fd |
sg_dd, sgp_dd and sgm_dd); check INQUIRY data and VPD pages (sg_inq); check
|
|
|
9422fd |
mode and log pages (sginfo, sg_modes and sg_logs); spin up and down
|
|
|
9422fd |
disks (sg_start); do self tests (sg_senddiag); and various other functions.
|
|
|
9422fd |
See the README, CHANGELOG and COVERAGE files. Requires the linux kernel 2.4
|
|
|
9422fd |
series or later. In the 2.4 series SCSI generic device names (e.g. /dev/sg0)
|
|
|
9422fd |
must be used. In the 2.6 series other device names may be used as
|
|
|
9422fd |
well (e.g. /dev/sda).
|
|
|
9422fd |
|
|
|
9422fd |
Warning: Some of these tools access the internals of your system
|
|
|
9422fd |
and the incorrect usage of them may render your system inoperable.
|
|
|
9422fd |
|
|
|
9422fd |
%package libs
|
|
|
9422fd |
Summary: Shared library for %{name}
|
|
|
9422fd |
Group: System Environment/Libraries
|
|
|
9422fd |
|
|
|
9422fd |
%description libs
|
|
|
9422fd |
This package contains the shared library for %{name}.
|
|
|
9422fd |
|
|
|
9422fd |
%package devel
|
|
|
9422fd |
Summary: Development library and header files for the sg3_utils library
|
|
|
9422fd |
Group: Development/Libraries
|
|
|
9422fd |
Requires: %{name}-libs = %{version}-%{release}
|
|
|
9422fd |
Requires: glibc-headers
|
|
|
9422fd |
|
|
|
9422fd |
%description devel
|
|
|
9422fd |
This package contains the %{name} library and its header files for
|
|
|
9422fd |
developing applications.
|
|
|
9422fd |
|
|
|
9422fd |
%prep
|
|
|
9422fd |
%setup -q
|
|
|
9422fd |
%patch0 -p1 -b .dev-snapshot
|
|
|
267fe6 |
%patch1 -p1 -b .man-fixes
|
|
|
9422fd |
|
|
|
9422fd |
|
|
|
9422fd |
%build
|
|
|
9422fd |
%configure --disable-static
|
|
|
9422fd |
|
|
|
9422fd |
# Don't use rpath!
|
|
|
9422fd |
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
|
|
|
9422fd |
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
|
|
|
9422fd |
|
|
|
9422fd |
make %{?_smp_mflags}
|
|
|
9422fd |
|
|
|
9422fd |
|
|
|
9422fd |
%install
|
|
|
9422fd |
make install DESTDIR=$RPM_BUILD_ROOT
|
|
|
9422fd |
rm -rf $RPM_BUILD_ROOT/%{_libdir}/*.la
|
|
|
9422fd |
|
|
|
9422fd |
install -p -m 755 scripts/%{rescan_script} $RPM_BUILD_ROOT%{_bindir}
|
|
|
9422fd |
( cd $RPM_BUILD_ROOT%{_bindir}; ln -sf %{rescan_script} scsi-rescan )
|
|
|
9422fd |
|
|
|
267fe6 |
install -p -m 644 %{SOURCE1} $RPM_BUILD_ROOT%{_mandir}/man8
|
|
|
267fe6 |
install -p -m 644 %{SOURCE2} $RPM_BUILD_ROOT%{_mandir}/man8
|
|
|
267fe6 |
|
|
|
9422fd |
|
|
|
9422fd |
%post libs -p /sbin/ldconfig
|
|
|
9422fd |
|
|
|
9422fd |
%postun libs -p /sbin/ldconfig
|
|
|
9422fd |
|
|
|
9422fd |
|
|
|
9422fd |
%files
|
|
|
9422fd |
%doc AUTHORS BSD_LICENSE COPYING COVERAGE CREDITS ChangeLog README README.sg_start
|
|
|
9422fd |
%{_bindir}/*
|
|
|
9422fd |
%{_mandir}/man8/*
|
|
|
9422fd |
|
|
|
9422fd |
%files libs
|
|
|
9422fd |
%doc BSD_LICENSE COPYING
|
|
|
9422fd |
%{_libdir}/*.so.*
|
|
|
9422fd |
|
|
|
9422fd |
%files devel
|
|
|
9422fd |
%{_includedir}/scsi/*.h
|
|
|
9422fd |
%{_libdir}/*.so
|
|
|
9422fd |
|
|
|
9422fd |
|
|
|
9422fd |
%changelog
|
|
|
267fe6 |
* Wed Jan 29 2014 Dan Horák <dan@danny.cz> - 1.37-5
|
|
|
267fe6 |
- fix various man pages (#948463)
|
|
|
267fe6 |
- add man page for the rescan-scsi-bus.sh script (#948463)
|
|
|
267fe6 |
- Resolves: #948463
|
|
|
267fe6 |
|
|
|
267fe6 |
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 1.37-4
|
|
|
267fe6 |
- Mass rebuild 2014-01-24
|
|
|
267fe6 |
|
|
|
267fe6 |
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 1.37-3
|
|
|
267fe6 |
- Mass rebuild 2013-12-27
|
|
|
267fe6 |
|
|
|
9422fd |
* Fri Oct 18 2013 Dan Horák <dan@danny.cz> - 1.37-2
|
|
|
9422fd |
- include fix for #920687
|
|
|
9422fd |
|
|
|
9422fd |
* Wed Oct 16 2013 Dan Horák <dan@danny.cz> - 1.37-1
|
|
|
9422fd |
- update to version 1.37
|
|
|
9422fd |
- switch to included rescan-scsi-bus script
|
|
|
9422fd |
|
|
|
9422fd |
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.36-2
|
|
|
9422fd |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
9422fd |
|
|
|
9422fd |
* Thu Jun 06 2013 Dan Horák <dan@danny.cz> - 1.36-1
|
|
|
9422fd |
- update to version 1.36
|
|
|
9422fd |
- modernize spec
|
|
|
9422fd |
|
|
|
9422fd |
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.35-2
|
|
|
9422fd |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
9422fd |
|
|
|
9422fd |
* Mon Jan 21 2013 Dan Horák <dan@danny.cz> - 1.35-1
|
|
|
9422fd |
- update to version 1.35
|
|
|
9422fd |
|
|
|
9422fd |
* Thu Oct 18 2012 Dan Horák <dan@danny.cz> - 1.34-1
|
|
|
9422fd |
- update to version 1.34
|
|
|
9422fd |
|
|
|
9422fd |
* Fri Sep 14 2012 Dan Horák <dan@danny.cz> - 1.33-4
|
|
|
9422fd |
- add fix for sg3_utils >= 1.32 to the rescan-scsi-bus script
|
|
|
9422fd |
|
|
|
9422fd |
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.33-3
|
|
|
9422fd |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
9422fd |
|
|
|
9422fd |
* Wed Apr 4 2012 Dan Horák <dan@danny.cz> - 1.33-2
|
|
|
9422fd |
- include rescan-scsi-bus script 1.56
|
|
|
9422fd |
|
|
|
9422fd |
* Tue Apr 3 2012 Dan Horák <dan@danny.cz> - 1.33-1
|
|
|
9422fd |
- update to version 1.33
|
|
|
9422fd |
|
|
|
9422fd |
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.31-2
|
|
|
9422fd |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
9422fd |
|
|
|
9422fd |
* Fri Feb 18 2011 Dan Horák <dan@danny.cz> - 1.31-1
|
|
|
9422fd |
- update to version 1.31
|
|
|
9422fd |
|
|
|
9422fd |
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.29-3
|
|
|
9422fd |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
9422fd |
|
|
|
9422fd |
* Thu Jul 8 2010 Dan Horák <dan@danny.cz> - 1.29-2
|
|
|
9422fd |
- added license texts into -libs subpackage
|
|
|
9422fd |
|
|
|
9422fd |
* Mon Apr 12 2010 Dan Horák <dan@danny.cz> - 1.29-1
|
|
|
9422fd |
- update to version 1.29
|
|
|
9422fd |
|
|
|
9422fd |
* Thu Jan 14 2010 Dan Horák <dan@danny.cz> - 1.28-2
|
|
|
9422fd |
- include rescan-scsi-bus script 1.35
|
|
|
9422fd |
- rebase patches and add fix for issue mentioned in #538787
|
|
|
9422fd |
|
|
|
9422fd |
* Thu Oct 22 2009 Dan Horák <dan@danny.cz> - 1.28-1
|
|
|
9422fd |
- update to version 1.28
|
|
|
9422fd |
- added fixes from RHEL to rescan-scsi-bus.sh
|
|
|
9422fd |
- added scsi-rescan symlink to the rescan-scsi-bus.sh script
|
|
|
9422fd |
|
|
|
9422fd |
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.27-2
|
|
|
9422fd |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
9422fd |
|
|
|
9422fd |
* Tue Apr 28 2009 Dan Horák <dan@danny.cz> - 1.27-1
|
|
|
9422fd |
- update to version 1.27
|
|
|
9422fd |
- changelog: http://sg.danny.cz/sg/p/sg3_utils.ChangeLog
|
|
|
9422fd |
|
|
|
9422fd |
* Tue Mar 31 2009 Dan Horák <dan@danny.cz> - 1.26-4
|
|
|
9422fd |
- add dependency between the libs subpackage and the main package (#492921)
|
|
|
9422fd |
|
|
|
9422fd |
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.26-3
|
|
|
9422fd |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
9422fd |
|
|
|
9422fd |
* Mon Nov 3 2008 Dan Horák <dan@danny.cz> - 1.26-2
|
|
|
9422fd |
- update URL
|
|
|
9422fd |
- include rescan-scsi-bus script 1.29
|
|
|
9422fd |
|
|
|
9422fd |
* Mon Jun 30 2008 Dan Horák <dan@danny.cz> - 1.26-1
|
|
|
9422fd |
- update to upstream version 1.26
|
|
|
9422fd |
|
|
|
9422fd |
* Fri Mar 28 2008 Phil Knirsch <pknirsch@redhat.com> - 1.25-4
|
|
|
9422fd |
- Dropped really unnecessary Provides of sg_utils (#226414)
|
|
|
9422fd |
- Use --disable-static in configure (#226414)
|
|
|
9422fd |
|
|
|
9422fd |
* Thu Mar 27 2008 Phil Knirsch <pknirsch@redhat.com> - 1.25-3
|
|
|
9422fd |
- Specfile cleanup, removal of static development libraries (#226414)
|
|
|
9422fd |
|
|
|
9422fd |
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.25-2
|
|
|
9422fd |
- Autorebuild for GCC 4.3
|
|
|
9422fd |
|
|
|
9422fd |
* Mon Oct 22 2007 Phil Knirsch <pknirsch@redhat.com> - 1.25-1
|
|
|
9422fd |
- Fixed URLs
|
|
|
9422fd |
- Updated to sg3_utils-1.25
|
|
|
9422fd |
|
|
|
9422fd |
* Thu Aug 16 2007 Phil Knirsch <pknirsch@redhat.com> - 1.23-2
|
|
|
9422fd |
- License review and update
|
|
|
9422fd |
|
|
|
9422fd |
* Fri Feb 02 2007 Phil Knirsch <pknirsch@redhat.com> - 1.23-1
|
|
|
9422fd |
- Update to sg3_utils-1.23
|
|
|
9422fd |
- Updated summary
|
|
|
9422fd |
|
|
|
9422fd |
* Mon Nov 13 2006 Phil Knirsch <pknirsch@redhat.com> - 1.22-1
|
|
|
9422fd |
- Update to sg3_utils-1.22
|
|
|
9422fd |
|
|
|
9422fd |
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 1.20-2.1
|
|
|
9422fd |
- rebuild
|
|
|
9422fd |
|
|
|
9422fd |
* Wed Jun 07 2006 Phil Knirsch <pknirsch@redhat.com> - 1.20-2
|
|
|
9422fd |
- Fixed rebuild problem on latest toolchain
|
|
|
9422fd |
- Added missing buildprereqs
|
|
|
9422fd |
|
|
|
9422fd |
* Fri May 19 2006 Phil Knirsch <pknirsch@redhat.com> - 1.20-1
|
|
|
9422fd |
- Update to sg3_utils-1.20.
|
|
|
9422fd |
|
|
|
9422fd |
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 1.19-1.1
|
|
|
9422fd |
- bump again for double-long bug on ppc(64)
|
|
|
9422fd |
|
|
|
9422fd |
* Fri Feb 10 2006 Phil Knirsch <pknirsch@redhat.com> - 1.19-1
|
|
|
9422fd |
- Update to sg3_utils-1.19.
|
|
|
9422fd |
- Fixed rebuild problem on 64bit archs.
|
|
|
9422fd |
|
|
|
9422fd |
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 1.17-1.1
|
|
|
9422fd |
- rebuilt for new gcc4.1 snapshot and glibc changes
|
|
|
9422fd |
|
|
|
9422fd |
* Mon Nov 07 2005 Phil Knirsch <pknirsch@redhat.com> 1.17-1
|
|
|
9422fd |
- Update to sg3-utils-1.17
|
|
|
9422fd |
- Split package up into 3 subpackages: sg3_utils, devel and libs
|
|
|
9422fd |
- Some minor updates to the specfile
|
|
|
9422fd |
|
|
|
9422fd |
* Wed Mar 02 2005 Phil Knirsch <pknirsch@redhat.com> 1.06-5
|
|
|
9422fd |
- bump release and rebuild with gcc 4
|
|
|
9422fd |
|
|
|
9422fd |
* Fri Feb 18 2005 Phil Knirsch <pknirsch@redhat.com> 1.06-4
|
|
|
9422fd |
- rebuilt
|
|
|
9422fd |
|
|
|
9422fd |
* Tue Aug 03 2004 Phil Knirsch <pknirsch@redhat.com> 1.06-3
|
|
|
9422fd |
- rebuilt
|
|
|
9422fd |
|
|
|
9422fd |
* Thu Mar 11 2004 Tim Powers <timp@redhat.com> 1.06-2
|
|
|
9422fd |
- rebuild
|
|
|
9422fd |
|
|
|
9422fd |
* Wed Feb 18 2004 Phil Knirsch <pknirsch@redhat.com> 1.06-1
|
|
|
9422fd |
- Initial version for RHEL3 U2.
|
|
|
9422fd |
|
|
|
9422fd |
* Fri Jan 09 2004 - dgilbert@interlog.com
|
|
|
9422fd |
- sg3_utils.spec for mandrake; more sginfo work, sg_scan, sg_logs
|
|
|
9422fd |
* sg3_utils-1.06
|
|
|
9422fd |
|
|
|
9422fd |
* Wed Nov 12 2003 - dgilbert@interlog.com
|
|
|
9422fd |
- sg_readcap: sizes; sg_logs: double fetch; sg_map 256 sg devices; sginfo
|
|
|
9422fd |
* sg3_utils-1.05
|
|
|
9422fd |
|
|
|
9422fd |
* Tue May 13 2003 - dgilbert@interlog.com
|
|
|
9422fd |
- default sg_turs '-n=' to 1, sg_logs gets '-t' for temperature, CREDITS
|
|
|
9422fd |
* sg3_utils-1.04
|
|
|
9422fd |
|
|
|
9422fd |
* Wed Apr 02 2003 - dgilbert@interlog.com
|
|
|
9422fd |
- 6 byte CDBs for sg_modes, sg_start on block devs, sg_senddiag, man pages
|
|
|
9422fd |
* sg3_utils-1.03
|
|
|
9422fd |
|
|
|
9422fd |
* Wed Jan 01 2003 - dgilbert@interlog.com
|
|
|
9422fd |
- interwork with block SG_IO, fix in sginfo, '-t' for sg_turs
|
|
|
9422fd |
* sg3_utils-1.02
|
|
|
9422fd |
|
|
|
9422fd |
* Wed Aug 14 2002 - dgilbert@interlog.com
|
|
|
9422fd |
- raw switch in sg_inq
|
|
|
9422fd |
* sg3_utils-1.01
|
|
|
9422fd |
|
|
|
9422fd |
* Sun Jul 28 2002 - dgilbert@interlog.com
|
|
|
9422fd |
- decode sg_logs pages, add dio to sgm_dd, drop "gen=1" arg, "of=/dev/null"
|
|
|
9422fd |
* sg3_utils-1.00
|
|
|
9422fd |
|
|
|
9422fd |
* Sun Mar 17 2002 - dgilbert@interlog.com
|
|
|
9422fd |
- add sg_modes+sg_logs for sense pages, expand sg_inq, add fua+sync to sg_dd++
|
|
|
9422fd |
* sg3_utils-0.99
|
|
|
9422fd |
|
|
|
9422fd |
* Sat Feb 16 2002 - dgilbert@interlog.com
|
|
|
9422fd |
- resurrect sg_reset; snprintf cleanup, time,gen+cdbsz args to sg_dd++
|
|
|
9422fd |
* sg3_utils-0.98
|
|
|
9422fd |
|
|
|
9422fd |
* Sun Dec 23 2001 - dgilbert@interlog.com
|
|
|
9422fd |
- move isosize to archive directory; now found in util-linux-2.10s and later
|
|
|
9422fd |
* sg3_utils-0.97
|
|
|
9422fd |
|
|
|
9422fd |
* Fri Dec 21 2001 - dgilbert@interlog.com
|
|
|
9422fd |
- add sgm_dd, sg_read, sg_simple4 and sg_simple16 [add mmap-ed IO support]
|
|
|
9422fd |
* sg3_utils-0.96
|
|
|
9422fd |
|
|
|
9422fd |
* Sun Sep 15 2001 - dgilbert@interlog.com
|
|
|
9422fd |
- sg_map can do inquiry; sg_dd, sgp_dd + sgq_dd dio help
|
|
|
9422fd |
* sg3_utils-0.95
|
|
|
9422fd |
|
|
|
9422fd |
* Sun Apr 19 2001 - dgilbert@interlog.com
|
|
|
9422fd |
- add sg_start, improve sginfo and sg_map [Kurt Garloff]
|
|
|
9422fd |
* sg3_utils-0.94
|
|
|
9422fd |
|
|
|
9422fd |
* Sun Mar 5 2001 - dgilbert@interlog.com
|
|
|
9422fd |
- add scsi_devfs_scan, add sg_include.h, 'coe' more general in sgp_dd
|
|
|
9422fd |
* sg3_utils-0.93
|
|
|
9422fd |
|
|
|
9422fd |
* Tue Jan 16 2001 - dgilbert@interlog.com
|
|
|
9422fd |
- clean sg_err.h include dependencies, bug fixes, Makefile in archive directory
|
|
|
9422fd |
* sg3_utils-0.92
|
|
|
9422fd |
|
|
|
9422fd |
* Mon Dec 21 2000 - dgilbert@interlog.com
|
|
|
9422fd |
- signals for sg_dd, man pages and additions for sg_rbuf and isosize
|
|
|
9422fd |
* sg3_utils-0.91
|
|
|
9422fd |
|
|
|
9422fd |
* Mon Dec 11 2000 - dgilbert@interlog.com
|
|
|
9422fd |
- Initial creation of package, containing
|
|
|
9422fd |
* sg3_utils-0.90
|