Sophie

Sophie

distrib > Mandriva > 2006.0 > i586 > by-pkgid > f451959fc789f22818fbf26b1d116ae5 > files > 5

ktemperature-1.7-1mdk.src.rpm

%define name ktemperature
%define version 1.7
%define release %mkrel 1
%define __libtoolize /bin/true
%define __cputoolize /bin/true


Name:      %{name}
Version:   %{version}
Release:   %{release}
Summary:   KTemperature is monitoring the system temperature
License:   GPL
URL:       http://kde-apps.org/content/show.php?content=24660&PHPSESSID=5b5249429580a5923cfde47d1f83b7e6
Group:     Monitoring
Source:    %{name}-%version.tar.bz2
Source10:  %{name}-16.png
Source11:  %{name}-32.png
Source12:  %{name}-48.png
BuildRoot: %{_tmppath}/%{name}-buildroot
BuildRequires: kdelibs-devel >= 3.2


%description
KTemperature is an application to monitor the system temperature. 
I was motivated to develop this utility because I could not find 
a simple system tray resident application for monitoring 
the system temperature using the ACPI interface.

The application obtains the system temperature from the file 
/proc/acpi/thermal_zone/THRM/temperature . 
In the current version the path is hardcoded.

%prep
rm -rf $RPM_BUILD_ROOT

%setup -q

%build
# Search for qt/kde libraries in the right directories (avoid patch)
# NOTE: please don't regenerate configure scripts below
perl -pi -e "s@/lib(\"|\b[^/])@/%_lib\1@g if /(kde|qt)_(libdirs|libraries)=/" configure

%configure --disable-rpath --with-xinerama

%make

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p %buildroot{%_menudir,%_miconsdir,%_iconsdir,%_liconsdir}
%{makeinstall_std}

#menus
cp %SOURCE10 %buildroot%_miconsdir/%name.png
cp %SOURCE11 %buildroot%_iconsdir/%name.png
cp %SOURCE12 %buildroot%_liconsdir/%name.png
perl -pi -e "s|Name=ktemperature|Name=Ktemperature|" %buildroot/%_datadir/applnk/Utilities/%{name}.desktop
kdedesktop2mdkmenu.pl %name "System/Monitoring" %buildroot/%_datadir/applnk/Utilities/%{name}.desktop %buildroot/%_menudir/%name

%find_lang %name

%clean
rm -rf %{buildroot}

%files 
%defattr(-,root,root)
%doc README COPYING AUTHORS
%attr(0755,root,root) %{_bindir}/%{name}
%_menudir/%{name}
%_datadir/apps/%{name}/%{name}ui.rc
%_iconsdir/*/%{name}.png
%_docdir/HTML/en/%{name}/*
%_datadir/applnk/Utilities/%{name}.desktop
%_iconsdir/hicolor/*/apps/%{name}.png
%_iconsdir/%{name}.png

%post
%{update_menus}

%postun
%{clean_menus}



%changelog
* Sun Jun 19 2005 Laurent MONTEL <lmontel@mandriva.com> 1.7-1
- 1.7

* Fri May 27 2005 <plouf@mandriva.org> 1-1mdk
- First Mandriva Linux release