Search
j0ke.net Open Build Service
>
Projects
>
stresslinux
>
hddtemp
> hddtemp.spec
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File hddtemp.spec of Package hddtemp (Revision 16)
Currently displaying revision
16
,
show latest
# # spec file for package hddtemp (Version 0.3) # # # norootforbuild Name: hddtemp License: GNU General Public License (GPL) - all versions Group: Productivity/Networking/Web/Utilities Autoreqprov: on Version: 0.3 %define ref beta15 Release: 51 URL: http://hddtemp.sourceforge.net Summary: Hard disk temperature tool Summary(de): Festplatten Temperatur-Ausleseprogramm Source: %name-%{version}-%{ref}.tar.bz2 Source1: hddtemp.db Source2: hddtemp.init Source3: hddtemp.sysconfig Source4: hddtemp-db.patch Patch0: hddtemp_0.3-beta15-45.diff.bz2 Patch1: hddtemp-backtrace.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build %description hddtemp is tool that gives you the temperature of your hard drive by reading S.M.A.R.T. information. %description -l de htddtemp ist ein Tool zum auslesen der Festplattentemperatur aus den S.M.A.R.T Informationenen. %prep %setup -n %name-%{version}-%{ref} %patch0 -p1 %patch1 %build %configure %__make CFLAGS="$RPM_OPT_FLAGS" %install %__make DESTDIR=%{buildroot} install %__install -D -m644 %{S:1} %{buildroot}/usr/share/misc/hddtemp.db %__patch -p0 %{buildroot}/usr/share/misc/hddtemp.db %{S:4} %__install -D -m755 %{S:2} %{buildroot}%{_sysconfdir}/init.d/%{name} %if 0%{?suse_version} %__install -D -m644 %{S:3} %{buildroot}/var/adm/fillup-templates/sysconfig.%{name} %else %__install -D -m644 %{S:3} %{buildroot}%{_sysconfdir}/sysconfig/%{name} %endif %post %fillup_and_insserv %restart_on_update if [ ! -f /etc/bash.bashrc.local ] ; then echo PATH=\$PATH:/usr/sbin >> /etc/bash.bashrc.local else CAT=`cat /etc/bash.bashrc.local | grep /usr/sbin` if [ "$CAT" != "PATH=\$PATH:/usr/sbin" ] ; then echo PATH=\$PATH:/usr/sbin >> /etc/bash.bashrc.local fi fi %preun %stop_on_removal %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,755) /usr/sbin/* %{_sysconfdir}/init.d/%{name} %{_datadir}/locale/*/LC_MESSAGES/hddtemp.mo %{_mandir}/man8/hddtemp.8* %{_datadir}/misc/hddtemp.db %if 0%{?suse_version} /var/adm/fillup-templates/sysconfig.%{name} %else %{_sysconfdir}/sysconfig/%{name} %endif %changelog * Sun Mar 20 2011 Carsten Schoene <cs@linux-administrator.com> - 0.3.beta15-51 - some specfile changes * Sun Aug 08 2009 Carsten Schoene <cs@linux-administrator.com> - 0.3.beta15-45 - added initscript - added sysconfig file - added patch from debian (manpage and other small fixes) * Sat Aug 01 2009 Carsten Schoene <cs@linux-administrator.com> - 0.3.beta15-20 - include hddtemp.db