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: 20060409
Release: 1
License: GPL
Group: System/Utilities
URL: http://www.zen24593.zen.co.uk/hdaps/
Source: %{name}-%{version}.tar.bz2
Source1: init.hdaps
Patch0: suse.diff
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
%patch0 -p1
%build
make CFLAGS="$RPM_OPT_FLAGS -fstack-protector-all" LDFLAGS="-s" %{?jobs:-j %jobs}
%install
%makeinstall
mkdir -p $RPM_BUILD_ROOT/etc/init.d
install -m 744 %{SOURCE1} $RPM_BUILD_ROOT/etc/init.d/hdaps
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%config /etc/init.d/hdaps
%{_sbindir}/hdapsd
%changelog