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 7)
Currently displaying revision
7
,
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: 45 URL: http://hddtemp.sourceforge.net Summary: Advanced Web Statistics 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 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 %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}%{_initdir}/%{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 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 case "$1" in 1) # new install %fillup_and_insserv ;; 2) # upgrade/reinstall %restart_on_update %{name} ;; esac %preun if [ "$1" = "0" ]; then # remove %stop_on_removal %{name} fi %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,755) /usr/sbin/* %{_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 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