File kcpuload.spec of Package kcpuload
Summary: Small applet which displays cpu time for KDE kicker
Name: kcpuload
BuildRequires: kdelibs3-devel libjpeg-devel libpng-devel XFree86-devel
Version: 1.99
Release: 1
Source0: %{name}-%{version}.tar.bz2
Source1: kcpuload.desktop
License: GPL
Group: Monitoring
Url: http://kde.quakenet.eu.org/kcpuload.shtml
BuildRoot: %{_tmppath}/%{name}-buildroot
Requires: kdelibs3 >= %( echo `rpm -q --queryformat '%{VERSION}' kdelibs3`)
%description
This is a small program for the KDE Kicker (the startmenu).
It will show the CPU usage in form of one or two configurable diagrams.
There are settings for colors and some different styles.
Note that it isn't the real system load that's shown, but the percent
used of the total CPU power, which is calculated from the number of
CPU ticks.
To bring up the settings menu, simply rightclick on the diagram.
Use a slower update interval to get a more stable and accurate
diagram without flicker.
If there are more than one CPU on the system, the total CPU usage from
both can be shown, or you can choose to have one separate diagram for
each of the CPU's.
Leftclick on the diagram to bring up a small information box which will
show the exact CPU usage in text form.
%prep
%setup -q
%build
. /etc/opt/kde3/common_options
%define _kde_prefix /opt/kde3
%define _kde_share %{_kde_prefix}/share
%define _kde_datadir %{_kde_share}/apps
%define _kde_htmldir %{_kde_share}/doc/HTML
%define _kde_bindir %{_kde_prefix}/bin
%define _kde_icondir %{_kde_share}/icons
%define _kde_appsdir %{_kde_share}/applnk
CFLAGS="%optflags" CXXFLAGS="%optflags" \
./configure $configkde \
--disable-rpath \
--disable-debug \
--enable-final
%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
rm -rf $RPM_BUILD_ROOT/%{_kde_htmldir}/en/kcpuload/common
mkdir -p $RPM_BUILD_ROOT/%{_kde_share}/applications/kde/
cp /usr/src/packages/SOURCES/kcpuload.desktop $RPM_BUILD_ROOT/%{_kde_share}/applications/kde/
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%dir %{_kde_htmldir}/en/kcpuload/
%doc %{_kde_htmldir}/en/kcpuload/*.bz2
%doc %{_kde_htmldir}/en/kcpuload/*.docbook
%dir %{_kde_datadir}/%{name}/
/%{_kde_bindir}/*
/%{_kde_icondir}/locolor/16x16/apps/*.png
/%{_kde_icondir}/locolor/32x32/apps/*.png
/%{_kde_icondir}/crystalsvg/*/*/*.png
/%{_kde_datadir}/%name
/%{_kde_appsdir}/System/*
/%{_kde_share}/applications/kde/*
%changelog
* Fri Oct 20 2006 Dennis Sieben <dsieben@7-net.de>
- Port to SUSE 10.1
* Tue Mar 18 2003 Lenny Cartier <lenny@mandrakesoft.com> 1.99-1mdk
- 1.99
* Sat Mar 01 2003 Laurent MONTEL <lmontel@mandrakesoft.com> 1.9.1-2mdk
- Rebuild
* Wed Oct 16 2002 Lenny Cartier <lenny@mandrakesoft.com> 1.9.1-1mdk
- from Balaji Ramani <balaji@yablibli.com> :
- New version
* Mon Nov 5 2001 Stefan van der Eijk <stefan@eijk.nu> 1.90-11mdk
- BuildRequires revisited
* Fri Oct 19 2001 Laurent MONTEL <lmontel@mandrakesoft.com> 1.90-10mdk
- Rebuild against libpng3
* Thu Sep 20 2001 Laurent MONTEL <lmontel@mandrakesoft.com> 1.90-9mdk
- rebuild with new kdelibs
* Tue Sep 12 2001 Laurent MONTEL <lmontel@mandrakesoft.com> 1.90-8mdk
- rebuild
* Tue Apr 10 2001 David BAUDENS <baudens@mandrakesoft.com> 1.90-7mdk
- Move KDE menu entry in %%_datadir/applnk
- Fix optimizations for C++
- Fix BuildRequires for non %%ix86 architectures
- Rebuild against latest GCC
* Wed Mar 28 2001 Laurent MONTEL <lmontel@mandrakesoft.com> 1.90-6mdk
- Add build requires
* Tue Mar 13 2001 Laurent MONTEL <lmontel@mandrakesoft.com> 1.90-5mdk
- Rebuild
* Tue Feb 27 2001 Laurent MONTEL <lmontel@mandrakesoft.com> 1.90-4mdk
- Rebuild
* Mon Feb 26 2001 Laurent MONTEL <lmontel@mandrakesoft.com> 1.90-3mdk
- Rebuild add --enable-final --disable-debug
* Fri Nov 17 2000 David BAUDENS <baudens@mandrakesoft.com> 1.90-2mdk
- Rebuild with gcc-2.96 & glibc-2.2
* Mon Oct 9 2000 Vincent Saugey <vince@mandrakesoft.com> 1.90-1mdk
- Firt mdk release