59 lines
1.7 KiB
RPMSpec
59 lines
1.7 KiB
RPMSpec
%define pkgver %(echo %version | tr _ -)
|
|
Name: hddtemp
|
|
Version: 0.3_beta15
|
|
Release: 1mamba
|
|
Summary: A small utility that gives you the temperature of your hard drive
|
|
Group: System/Tools
|
|
Vendor: openmamba
|
|
Distribution: openmamba
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
URL: http://www.guzu.net/linux/hddtemp.php
|
|
Source: http://www.guzu.net/files/hddtemp-%{pkgver}.tar.bz2
|
|
Source1: http://www.guzu.net/linux/hddtemp.db
|
|
Patch0: hddtemp-0.3_beta15-gcc-4.8.patch
|
|
License: GPL
|
|
## AUTOBUILDREQ-BEGIN
|
|
BuildRequires: glibc-devel
|
|
## AUTOBUILDREQ-END
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
%description
|
|
hddtemp is a small utility that gives you the temperature of your hard drive by reading S.M.A.R.T. informations (for drives that support this feature).
|
|
Note: only recent hard drives have a temperature sensor.
|
|
|
|
%prep
|
|
%setup -q -n %{name}-%{pkgver}
|
|
%patch0 -p1
|
|
|
|
%build
|
|
%configure
|
|
%make
|
|
|
|
%install
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
%makeinstall
|
|
install -D -m 0644 %{SOURCE1} %{buildroot}%{_datadir}/misc/hddtemp.db
|
|
%find_lang %{name}
|
|
|
|
%clean
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
%files -f %{name}.lang
|
|
%defattr(-,root,root)
|
|
%{_sbindir}/hddtemp
|
|
%{_datadir}/misc/hddtemp.db
|
|
%{_mandir}/man8/hddtemp.8.gz
|
|
%doc COPYING
|
|
#ChangeLog LICENSE README TODO
|
|
|
|
%changelog
|
|
* Mon Jul 29 2013 Automatic Build System <autodist@mambasoft.it> 0.3_beta15-1mamba
|
|
- update to 0.3_beta15
|
|
|
|
* Tue Apr 28 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 0.3-2mamba
|
|
- specfile updated and rebuilt
|
|
- hddtemp.db file updated
|
|
|
|
* Mon Aug 21 2006 Silvan Calarco <silvan.calarco@mambasoft.it> beta15-1qilnx
|
|
- package created by autospec
|