File hdapsd.spec of Package hdapsd
#
# spec file for package hdapsd (Version 1.0)
#
# Copyright (c) 2005 SUSE Linux AG, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bug fixes or comments via http://www.suse.de/feedback/
#
# norootforbuild
Name: hdapsd
Summary: Harddisk Active Protection System userspace daemon
Version: 20090401
Release: 1
License: GPL
Group: System/Utilities
URL: http://sourceforge.net/projects/hdaps/
Source: %{name}-%{version}.tar.gz
Source1: init.hdaps
Buildroot: %{_tmppath}/%{name}-root
Autoreqprov: on
# description take from the website (see URL)
%description
The Harddisk Active Protection System userspace daemon monitors the
acceleration values through the HDAPS interface and automatically initiates
disk protection through the hdaps_protect interface - given that the movement
exceeds a user specified threshold.
%prep
%setup
%build
%configure
%install
%makeinstall
mkdir -p $RPM_BUILD_ROOT/etc/init.d
install -m 744 %{SOURCE1} $RPM_BUILD_ROOT/etc/init.d/hdaps
rm -rf $RPM_BUILD_ROOT/usr/share/doc/hdapsd
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%config /etc/init.d/hdaps
%{_sbindir}/hdapsd
%doc %{_mandir}/man8/hdapsd.8.gz
%doc README ChangeLog
%changelog