File kcpuload.spec of Package kcpuload

#
# spec file for package kcpuload (Version 1.99)
#
# Copyright 2006 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright 2009 Buschmann <buschmann23@opensuse.org>
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild

Name:           kcpuload
BuildRequires:  kdelibs3-devel fdupes
License:        GPL-2.0
Group:          System/Monitoring
Summary:        A Kicker Applet to Show CPU Usage
Version:        1.99
Release:        1
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Source0:        %name-%version.tar.bz2
Patch0:         %name-deprecate-update-desktop-files.patch

%description
This is a small program for Kicker (the KDE panel).  It will show the CPU
usage in the form of one or two configurable diagrams.


Authors:
--------
    Markus Gustavsson <mighty@fragzone.se>
    Ben Burton <bab@debian.org>

%prep
%setup -q
. /etc/opt/kde3/common_options
update_admin --no-unsermake
%patch -P 0 -p1

%build
. /etc/opt/kde3/common_options
./configure $configkde
do_make %{?jobs:-j %jobs}

%install
. /etc/opt/kde3/common_options
make DESTDIR=$RPM_BUILD_ROOT $INSTALL_TARGET
kde_post_install

# move to the right place
mkdir -p %{buildroot}/opt/kde3/share/applications/kde
mv %{buildroot}/opt/kde3/share/applnk/System/kcpuload.desktop %{buildroot}/opt/kde3/share/applications/kde/kcpuload.desktop

%fdupes $RPM_BUILD_ROOT/opt/kde3/share/apps/kcpuload/icons/hicolor

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc COPYING AUTHORS README
/opt/kde3/bin/kcpuload
/opt/kde3/share/applications/kde/kcpuload.desktop
%dir /opt/kde3/share/apps/kcpuload
%dir /opt/kde3/share/apps/kcpuload/icons
%dir /opt/kde3/share/apps/kcpuload/icons/hicolor
%dir /opt/kde3/share/apps/kcpuload/icons/hicolor/16x16
/opt/kde3/share/apps/kcpuload/icons/hicolor/16x16/actions
%doc %lang(en) /opt/kde3/share/doc/HTML/en/kcpuload
/opt/kde3/share/icons/*/*/apps/kcpuload.png

%changelog -n kcpuload
* Sat Mar 14 2009 Buschmann <buschmann23@opensuse.org> 1.99
- recompress source tarball with bzip2
- removing deprecated run_ldconofig
- finding duplicated files, adding fdupes to the BuildRequires
* Mon Dec 04 2006 - stbinner@suse.de 1.99
- initial package of version 1.99
openSUSE Build Service is sponsored by