Sophie

Sophie

distrib > Mandriva > current > x86_64 > by-pkgid > fc9ffd8412f0c5d5388020f0def6a6a7 > files > 5

hdapsd-0.0-0.20090401.1mdv2010.1.src.rpm

Summary:	HDAPS (Hard Disk Active Protection System) daemon
Name:		hdapsd
%define real_version 20090401
Version:	0.0
Release:	%mkrel 0.20090401.1
License:	GPLv2+
Group:		System/Kernel and hardware 
URL:		http://hdaps.sourceforge.net
Source0:	hdapsd-%{real_version}.tar.gz
Source1:	hdapsd.event
Source2:	hdapsd.sysconfig
Source3:	99-hdapsd.rules
Patch0:		hdaps-20090401-fix-str-fmt.patch
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root

%description
hdapsd is a daemon that reads from the HDAPS (Hard Disk Active Protection
System) driver and protects the hard disk from sudden movements that may
harm it.

%prep
%setup -q -n %{name}-%{real_version}
%patch0 -p0

%build
%configure2_5x
%make

%install
%makeinstall

mkdir -p %{buildroot}%{_sysconfdir}/event.d/
mkdir -p %{buildroot}%{_sysconfdir}/sysconfig/
mkdir -p %{buildroot}%{_sysconfdir}/udev/rules.d/
cp -p %SOURCE1 %{buildroot}%{_sysconfdir}/event.d/hdapsd
cp -p %SOURCE2 %{buildroot}%{_sysconfdir}/sysconfig/hdapsd
cp -p %SOURCE3 %{buildroot}%{_sysconfdir}/udev/rules.d/
# remove docs installed by "make install", will be installed in proper dir by %doc
rm -rf %{buildroot}%{_defaultdocdir}/%{name}

%clean
rm -rf %{buildroot}


%files
%defattr(-,root,root,-)
%{_sbindir}/*
%config(noreplace) %{_sysconfdir}/udev/rules.d/*
%config(noreplace) %{_sysconfdir}/event.d/hdapsd
%config(noreplace) %{_sysconfdir}/sysconfig/hdapsd
%{_mandir}/man8/hdapsd.8.*
%doc AUTHORS
%doc COPYING
%doc ChangeLog
%doc README



%changelog
* Wed Mar 24 2010 Emmanuel Andry <eandry@mandriva.org> 0.0-0.20090401.1mdv2010.1
+ Revision: 527284
- import hdapsd