- Update to sg3-utils-1.17
- Split package up into 3 subpackages: sg3_utils, devel and libs - Some minor updates to the specfile
This commit is contained in:
parent
7a5c925efe
commit
c1bfd9ed99
@ -1 +1 @@
|
|||||||
sg3_utils-1.06.tgz
|
sg3_utils-1.17.tgz
|
||||||
|
106
sg3_utils.spec
106
sg3_utils.spec
@ -1,7 +1,7 @@
|
|||||||
Summary: Utils for Linux's SCSI generic driver devices + raw devices
|
Summary: Utils for Linux's SCSI generic driver devices + raw devices
|
||||||
Name: sg3_utils
|
Name: sg3_utils
|
||||||
Version: 1.06
|
Version: 1.17
|
||||||
Release: 5
|
Release: 1
|
||||||
License: GPL
|
License: GPL
|
||||||
Group: Utilities/System
|
Group: Utilities/System
|
||||||
Source: ftp://www.torque.net/sg/p/sg3_utils-%{version}.tgz
|
Source: ftp://www.torque.net/sg/p/sg3_utils-%{version}.tgz
|
||||||
@ -10,27 +10,37 @@ Provides: sg_utils
|
|||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root/
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root/
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Collection of tools for SCSI devices that use the Linux SCSI generic (sg)
|
Collection of Linux utilities for devices that use the SCSI command set.
|
||||||
interface. Includes utilities to copy data based on "dd" syntax
|
Includes utilities to copy data based on "dd" syntax and semantics (called
|
||||||
and semantics (called sg_dd, sgp_dd and sgm_dd); check INQUIRY data and
|
sg_dd, sgp_dd and sgm_dd); check INQUIRY data and VPD pages (sg_inq); check
|
||||||
associated pages (sg_inq); check mode and log pages (sg_modes and sg_logs);
|
mode and log pages (sginfo, sg_modes and sg_logs); spin up and down
|
||||||
spin up and down disks (sg_start); do self tests (sg_senddiag); and various
|
disks (sg_start); do self tests (sg_senddiag); and various other functions.
|
||||||
other functions. See the README and CHANGELOG files. Requires the lk 2.4
|
See the README, CHANGELOG and COVERAGE files. Requires the linux kernel 2.4
|
||||||
series or better. [In the lk 2.6 series many of these utilities
|
series or later. In the 2.4 series SCSI generic device names (e.g. /dev/sg0)
|
||||||
can use the primary block device name (e.g. /dev/sda).]
|
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 their
|
Warning: Some of these tools access the internals of your system
|
||||||
incorrect usage may render your system inoperable.
|
and the incorrect usage of them may render your system inoperable.
|
||||||
|
|
||||||
Authors:
|
%package libs
|
||||||
--------
|
Summary: Shared library for %{name}
|
||||||
Doug Gilbert <dgilbert@interlog.com>
|
Group: System/Libraries
|
||||||
Kurt Garloff <garloff@suse.de> [sg_test_rwbuff]
|
|
||||||
Peter Allworth [contribution to sg_dd and sgp_dd]
|
%description libs
|
||||||
Martin Schwenke <martin@meltin.net> [contribution to sg_inq]
|
This package contains the shared library for %{name}.
|
||||||
|
|
||||||
|
%package devel
|
||||||
|
Summary: Static library and header files for the sgutils library
|
||||||
|
Group: Development/C
|
||||||
|
Requires: %{name}-libs = %{version}-%{release}
|
||||||
|
|
||||||
|
%description devel
|
||||||
|
This package contains the static %{name} library and its header files for
|
||||||
|
developing applications.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup
|
%setup -q
|
||||||
|
|
||||||
%build
|
%build
|
||||||
make
|
make
|
||||||
@ -39,54 +49,34 @@ make
|
|||||||
if [ "$RPM_BUILD_ROOT" != "/" ]; then
|
if [ "$RPM_BUILD_ROOT" != "/" ]; then
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
fi
|
fi
|
||||||
make install INSTDIR=$RPM_BUILD_ROOT/usr/bin MANDIR=$RPM_BUILD_ROOT/usr/share/man
|
make install PREFIX=$RPM_BUILD_ROOT/usr
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%attr(-,root,root) %doc CREDITS README README.sg_start CHANGELOG INSTALL
|
%doc CHANGELOG COVERAGE CREDITS INSTALL README README.sg_start
|
||||||
%attr(755,root,root) %{_bindir}/sg_dd
|
%attr(755,root,root) %{_bindir}/*
|
||||||
%attr(755,root,root) %{_bindir}/sg_inq
|
%{_mandir}/man8/*
|
||||||
%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}/sg_start
|
|
||||||
%attr(755,root,root) %{_bindir}/sgm_dd
|
|
||||||
%attr(755,root,root) %{_bindir}/sg_read
|
|
||||||
%attr(755,root,root) %{_bindir}/sg_reset
|
|
||||||
%attr(755,root,root) %{_bindir}/sg_modes
|
|
||||||
%attr(755,root,root) %{_bindir}/sg_logs
|
|
||||||
%attr(755,root,root) %{_bindir}/sg_senddiag
|
|
||||||
# Mandrake compresses man pages with bzip2, RedHat with gzip
|
|
||||||
%attr(-,root,root) %doc %{_mandir}/man8/sg_dd.8*
|
|
||||||
%attr(-,root,root) %doc %{_mandir}/man8/sgp_dd.8*
|
|
||||||
%attr(-,root,root) %doc %{_mandir}/man8/sgm_dd.8*
|
|
||||||
%attr(-,root,root) %doc %{_mandir}/man8/sg_read.8*
|
|
||||||
%attr(-,root,root) %doc %{_mandir}/man8/sg_map.8*
|
|
||||||
%attr(-,root,root) %doc %{_mandir}/man8/sg_scan.8*
|
|
||||||
%attr(-,root,root) %doc %{_mandir}/man8/sg_rbuf.8*
|
|
||||||
%attr(-,root,root) %doc %{_mandir}/man8/sginfo.8*
|
|
||||||
%attr(-,root,root) %doc %{_mandir}/man8/sg_readcap.8*
|
|
||||||
%attr(-,root,root) %doc %{_mandir}/man8/sg_turs.8*
|
|
||||||
%attr(-,root,root) %doc %{_mandir}/man8/sg_inq.8*
|
|
||||||
%attr(-,root,root) %doc %{_mandir}/man8/sg_test_rwbuf.8*
|
|
||||||
%attr(-,root,root) %doc %{_mandir}/man8/scsi_devfs_scan.8*
|
|
||||||
%attr(-,root,root) %doc %{_mandir}/man8/sg_start.8*
|
|
||||||
%attr(-,root,root) %doc %{_mandir}/man8/sg_reset.8*
|
|
||||||
%attr(-,root,root) %doc %{_mandir}/man8/sg_modes.8*
|
|
||||||
%attr(-,root,root) %doc %{_mandir}/man8/sg_logs.8*
|
|
||||||
%attr(-,root,root) %doc %{_mandir}/man8/sg_senddiag.8*
|
|
||||||
|
|
||||||
|
%files libs
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%{_libdir}/*.so.*
|
||||||
|
|
||||||
|
%files devel
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%{_includedir}/scsi/*.h
|
||||||
|
%{_libdir}/*.so
|
||||||
|
%{_libdir}/*.a
|
||||||
|
%{_libdir}/*.la
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Nov 07 2005 Phil Knirsch <pknirsch@redhat.com> 1.17-1
|
||||||
|
- Update to sg3-utils-1.17
|
||||||
|
- Split package up into 3 subpackages: sg3_utils, devel and libs
|
||||||
|
- Some minor updates to the specfile
|
||||||
|
|
||||||
* Wed Mar 02 2005 Phil Knirsch <pknirsch@redhat.com> 1.06-5
|
* Wed Mar 02 2005 Phil Knirsch <pknirsch@redhat.com> 1.06-5
|
||||||
- bump release and rebuild with gcc 4
|
- bump release and rebuild with gcc 4
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user