%define name hddtemp %define version 0.3 %define betarel beta4 %define release 0.%{betarel}.1mdk Summary: Hard Drive Temperature Monitoring Name: %name Version: %version Release: %release License: GPL Group: Monitoring URL: http://coredump.free.fr/linux/harddrive.html#hddtemp Source0: http://coredump.free.fr/linux/%{name}-%{version}-%{betarel}.tar.bz2 Source1: http://coredump.free.fr/linux/hddtemp.db.bz2 BuildRoot: %_tmppath/%name--buildroot %description hddtemp is a tool that gives you the temperature of your IDE hard drive (that support this feature) by reading S.M.A.R.T. information. Only moderns hard drives have a temperature sensor. %prep rm -rf $RPM_BUILD_ROOT %setup -q -n %{name}-%{version}-%{betarel} # Fix install paths perl -pi -e 's#/usr/local/sbin#%{buildroot}/usr/sbin#g; s#/usr/local/man#%{buildroot}/usr/share/man#g' Makefile %build %make %install # It assumes the man dir exists install -d %{buildroot}%{_mandir}/man1 install -d %{buildroot}%{_sysconfdir} bzcat %{SOURCE1} > %{buildroot}%{_sysconfdir}/hddtemp.db chmod 0664 %{buildroot}%{_sysconfdir}/hddtemp.db %makeinstall # Make hddtemp setuid chmod u+s %{buildroot}%{_sbindir}/%{name} %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) %doc COPYING README TODO contribs %_sbindir/%{name} %_mandir/man1/%{name}* %config(noreplace) %_sysconfdir/hddtemp.db %changelog * Sat Mar 08 2003 Ben Reser <ben@reser.org> 0.3-0.beta4.1mdk - 0.3-beta4 - Updated hddtemp.db * Fri Jan 24 2003 Ben Reser <ben@reser.org> 0.3-0.beta3.1mdk - 0.3-beta3 * Mon Jan 13 2003 Ben Reser <ben@reser.org> 0.3-0.beta2.2mdk - Make hddtemp setuid so users can use it. Useful for using the gkrellm plugin. * Sun Jan 12 2003 Ben Reser <ben@reser.org> 0.3-0.beta2.1mdk - First package built for Mandrake 9.0