sdparm/sdparm.spec

Name: sdparm
Summary: List or change SCSI disk parameters
Version: 1.07
Release: 1
License: BSD
Group: System Environment/Base
URL: http://www.torque.net/sg/sdparm.html
Description: SCSI disk parameters are held in mode pages. This utility lists or changes those parameters. Other SCSI devices (or devices that use the SCSI command set) such as CD/DVD and tape drives may also find parts of sdparm useful. Requires the linux kernel 2.4 series or later. In the 2.6 series any device node the understands a SCSI command set may be used (e.g. /dev/sda). In the 2.4 series SCSI device node may be used.

Fetches Vital Product Data pages. Can send commands to start or stop the media and load or unload removable media.

Warning: It is possible (but unlikely) to change SCSI disk settings such that the disk stops operating or is slowed down. Use with care.

CentOS 7 x86_64

The build was succesful. The following RPMs were generated:

Build Status

CentOS 6 x86_64

The build was succesful. The following RPMs were generated:

Build Status

Contents

The spec file used by the build system currently has the following contents:

# $Id$
# Authority: dag

### EL6 ships with sdparm-1.04-1.1.el6
%{?el6:# Tag: rfx}

Summary: List or change SCSI disk parameters
Name: sdparm
Version: 1.07
Release: 1%{?dist}
License: BSD
Group: System Environment/Base
URL: http://www.torque.net/sg/sdparm.html

Source: http://sg.danny.cz/sg/p/sdparm-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root

%description
SCSI disk parameters are held in mode pages. This utility lists or
changes those parameters. Other SCSI devices (or devices that use
the SCSI command set) such as CD/DVD and tape drives may also find
parts of sdparm useful. Requires the linux kernel 2.4 series or later.
In the 2.6 series any device node the understands a SCSI command set
may be used (e.g. /dev/sda). In the 2.4 series SCSI device node may be used.

Fetches Vital Product Data pages. Can send commands to start or stop
the media and load or unload removable media.

Warning: It is possible (but unlikely) to change SCSI disk settings
such that the disk stops operating or is slowed down. Use with care.

%prep
%setup

%build
%configure

%install
%{__rm} -rf %{buildroot}
%{__make} install DESTDIR="%{buildroot}"

%clean
%{__rm} -rf %{buildroot}

%files
%defattr(-, root, root, 0755)
%doc AUTHORS ChangeLog COPYING CREDITS INSTALL README notes.txt
%doc %{_mandir}/man8/sdparm.8*
%{_bindir}/sdparm

%changelog
* Thu Jan 26 2012 Dag Wieers <dag@wieers.com> - 1.07-1
- Updated to release 1.07.

* Sat Nov 13 2010 Dag Wieers <dag@wieers.com> - 1.06-1
- Updated to release 1.06.

* Mon Apr 19 2010 Dag Wieers <dag@wieers.com> - 1.05-1
- Updated to release 1.05.

* Thu Oct 22 2009 Dag Wieers <dag@wieers.com> - 1.04-1
- Updated to release 1.04.

* Mon Jun 30 2008 Dag Wieers <dag@wieers.com> - 1.03-1
- Updated to release 1.03.

* Tue Oct 09 2007 Dag Wieers <dag@wieers.com> - 1.02-1
- Updated to release 1.02.

* Sun Apr 15 2007 Dag Wieers <dag@wieers.com> - 1.01-1
- Updated to release 1.01.

* Tue Oct 17 2006 Dag Wieers <dag@wieers.com> - 1.00-1
- Initial package. (based on upstream package)