File storage-fixup.spec of Package storage-fixup
#
# spec file for package storage-fixup (Version 0.2)
#
# Copyright (c) 2008 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://git.kernel.org/?p=linux/kernel/git/tj/storage-fixup.git
Name: storage-fixup
BuildArch: noarch
License: BSD 3-Clause
Group: System/Base
Requires: bash coreutils sed hdparm smartmontools pmtools scsi
PreReq: %insserv_prereq
AutoReqProv: on
Version: 0.2
Release: 25
Summary: Storage Fixup Script
Source0: %{name}-%{version}.tar.bz2
Source1: rc.storage-fixup
Source2: pm.storage-fixup
BuildRoot: %{_tmppath}/%{name}-%{version}-build
ExclusiveArch: %ix86 ia64 x86_64
%description
storage-fixup executes fixup commands for devices matched using dmi and
hal properties. This is primarily to adjust too aggressive ATA APM
settings which makes the drive unload its head frequently shortening
its lifespan.
Authors:
--------
Tejun Heo <teheo@suse.de>
%prep
%setup
%build
%install
mkdir -p $RPM_BUILD_ROOT/etc/init.d
mkdir -p $RPM_BUILD_ROOT/usr/lib/pm-utils/sleep.d
install -d -m 755 $RPM_BUILD_ROOT/usr/sbin
install -m 755 storage-fixup $RPM_BUILD_ROOT/usr/sbin/storage-fixup
install -m 644 storage-fixup.conf $RPM_BUILD_ROOT/etc/storage-fixup.conf
install -m 755 %{SOURCE1} $RPM_BUILD_ROOT/etc/init.d/boot.storage-fixup
install -m 755 %{SOURCE2} $RPM_BUILD_ROOT/usr/lib/pm-utils/sleep.d/50storage-fixup
%clean
rm -rf $RPM_BUILD_ROOT
%post
%{fillup_and_insserv -fy boot.storage-fixup}
%preun
%{stop_on_removal boot.storage-fixup}
%postun
%{insserv_cleanup}
%files
%defattr(-,root,root)
%doc Changelog LICENSE
%config /etc/storage-fixup.conf
%config /etc/init.d/boot.storage-fixup
%dir /usr/lib/pm-utils/
%dir /usr/lib/pm-utils/sleep.d
/usr/lib/pm-utils/sleep.d/50storage-fixup
/usr/sbin/storage-fixup
%changelog
* Mon Dec 01 2008 ro@suse.de
- added ExclusiveArch (dependency package pmtools has the same)
* Sun Nov 23 2008 teheo@suse.de
- quiet option implemented
- updated config, 3 machines added
* Wed Oct 01 2008 seife@suse.de
- folded patches into tarball
- updated config, 10 machines added
* Tue Sep 16 2008 seife@suse.de
- bugfixes from current git:
- trim keys and properties
- drop superfluous double quotes around $()
- updated config:
- add Dell Vostro 1400, Dell Inspiron 1525, Samsung Q45,
Mac Mini 1,1, Acer Aspire 1690, HP dv9500.
* Tue Aug 19 2008 seife@suse.de
- fix rpmlint errors in the init script
* Wed May 28 2008 seife@suse.de
- this fixes bug bnc#386555
- new version 0.2, no longer depends on HAL, License now BSD
* Mon May 26 2008 seife@suse.de
- move pm-utils hook to /usr/lib, fix rpmlint warnings
* Fri May 23 2008 teheo@suse.de
- New package