Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37479372
en ru br
ALT Linux repos
S:1.47-alt1
5.0: 1.23-alt2
4.1: 1.23-alt2
4.0: 1.23-alt2

Group :: System/Kernel and hardware
RPM: sg3_utils

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Name: sg3_utils
Version: 1.45
Release: alt2

Summary: Utilities for devices that use SCSI command sets
License: GPL-2.0-or-later and BSD-2-Clause
Group: System/Kernel and hardware
Url: http://sg.danny.cz/sg/sg3_utils.html
# http://sg.danny.cz/sg/p/%name-%version.tar.xz
Source: %name-%version.tar
Patch: sg3_utils-alt-rescan-scsi-bus.patch
# https://bugzilla.redhat.com/show_bug.cgi?id=1683343
# sg_turs: improper usage show
Patch1: sg3_utils-rh-sg_turs-help.patch
# https://bugzilla.redhat.com/show_bug.cgi?id=1627657
# sg_raw -V fail
Patch2: sg3_utils-rh-sg_raw-version.patch
# https://bugzilla.redhat.com/show_bug.cgi?id=1760847
# FC_TARGET_LUN attribute assigned for non FC device
Patch3: sg3_utils-rh-fc_wwpn_id-non_FC-devices.patch
Requires: libsgutils = %EVR

%description
Collection of Linux utilities for devices that use the SCSI command set.
Includes utilities to copy data based on "dd" syntax and semantics
(called sg_dd, sgp_dd and sgm_dd); check INQUIRY data and VPD pages
(sg_inq); check mode and log pages (sginfo, sg_modes and sg_logs); spin
up and down disks (sg_start); do self tests (sg_senddiag); and various
other functions.  See the README, ChangeLog and COVERAGE files. Requires
the linux kernel 2.4 series or later.  In the 2.4 series SCSI generic
device names (e.g. /dev/sg0) must be used.  In the 2.6 series other
device names may be used as well (e.g. /dev/sda).

Warning: Some of these tools access the internals of your system
and the incorrect usage of them may render your system inoperable.

%package -n libsgutils
Summary: Shared library for %name
Group: System/Libraries

%description -n libsgutils
This package contains the shared library for %name.

%package -n libsgutils-devel
Summary: Development library and header files for the sgutils library
Group: Development/C
Requires: libsgutils = %EVR

%description -n libsgutils-devel
This package contains the development %name library and its header files
for developing applications.

%prep
%setup
%autopatch -p1
sed -i s/libsgutils2/libsgutils/g */Makefile.*
sed -i s/2:0:0/1:0:0/ lib/Makefile.*

%build
%autoreconf
%configure --disable-static
%make_build

%install
%makeinstall_std
# https://bugzilla.altlinux.org/39183
ln -s libsgutils.so %buildroot%_libdir/libsgutils2.so

%set_verify_elf_method strict
%define _unpackaged_files_terminate_build 1
%define _stripped_files_terminate_build 1

%files
%_bindir/*
%_man8dir/*
%doc AUTHORS BSD_LICENSE ChangeLog COPYING COVERAGE CREDITS README README.sg_start

%files -n libsgutils
%_libdir/*.so.*
%doc BSD_LICENSE COPYING

%files -n libsgutils-devel
%_includedir/scsi/*.h
%_libdir/*.so

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin