%define _beta beta15 Summary: Hard drive temperature monitor tool Name: hddtemp Version: 0.3 Release: 1 License: GPL Group: System/Base Source: %{name}-%{version}-%{_beta}.tar.bz2 %description Reads the temperature from SMART enabled hard drives. %prep %setup -q -n %{name}-%{version}-%{_beta} %build ./configure --prefix=/usr --with-db-path=/etc/hddtemp.db make %install rm -rf $RPM_BUILD_ROOT make DESTDIR=$RPM_BUILD_ROOT install chmod +s $RPM_BUILD_ROOT/usr/sbin/hddtemp %post cd /etc if [ ! -f hddtemp.db ];then wget http://www.guzu.net/linux/hddtemp.db fi %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) /