File powerdevil.spec of Package powerdevil

#
# spec file for package powerdevil (Version 1.4.1)
#
# Copyright (c) 2008 Buschmann.
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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

BuildRequires:  kdebase4-workspace-devel update-desktop-files

Name:           powerdevil
Summary:        KDE Power Management
Url:            http://kde-apps.org/content/show.php/PowerDevil?content=85078
Version:        1.4.1
Release:        4.<RELEASE5>
%define rversion 4.1.3
License:        GPL v2 or later
Group:          System/GUI/KDE
Source0:        powerdevil-%version-kde%rversion.tar.bz2
Source1:        po.tar.bz2
Patch:          po.diff
Patch1:         PowerManagementConnector.diff
Patch2:         cpu-hog.diff
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Requires:       %{name}-lang = %{version}
%kde4_runtime_requires

%description
PowerDevil is an utility for KDE4 for Laptop Powermanagement. It
consists of a Daemon (a KDED module), a KCModule to configure it.



Authors:
--------
    Dario Freddi <drf54321@gmail.com>

%lang_package
%prep
%setup -n powerdevil-%version-kde%rversion -b 1
%patch
%patch1
%patch2

%build
  %cmake_kde4 -d build
  %make_jobs

%install
  pushd build
  %makeinstall
  popd
  %kde_post_install
  %find_lang powerdevil

%clean
  rm -rf $RPM_BUILD_ROOT

%files lang -f %name.lang

%files
%defattr(-,root,root)
%doc COPYING
%doc %lang(en) /usr/share/doc/kde/HTML/en/kcontrol/powerdevilconfig
/usr/%_lib/kde4/kcm_powerdevilconfig.so
/usr/%_lib/kde4/kded_powerdevil.so
/usr/%_lib/kde4/krunner_powerdevil.so
/usr/share/dbus-1/interfaces/org.kde.PowerDevil.xml
/usr/share/kde4/apps/powerdevil
/usr/share/kde4/services/kded/powerdevil.desktop
/usr/share/kde4/services/plasma-runner-powerdevil.desktop
/usr/share/kde4/services/powerdevilconfig.desktop

%changelog
* Fri Jan 16 2009 stbinner@suse.de
- fix powerdevil causing X server to hog CPU (bnc#461335)
* Sat Nov 29 2008 stbinner@suse.de
- updated translations
* Fri Nov 21 2008 stbinner@suse.de
- updated translations
* Wed Nov 19 2008 stbinner@suse.de
- updated translations
* Tue Nov 11 2008 stbinner@suse.de
- backport PowerManagementConnector
* Mon Nov 10 2008 stbinner@suse.de
- update to 1.4.1: critical bugfixes
* Sun Nov 09 2008 stbinner@suse.de
- backport r881597 to fix KDE crash at start-up (bnc#443124)
* Fri Nov 07 2008 stbinner@suse.de
- split off -lang, reduce buildrequires
* Mon Nov 03 2008 stbinner@suse.de
- update to 1.4.0:
  * mem leak fixes
  * better error handling
  * Improved XSync detection
  * less resource intensive through cached loading of pollers
* Tue Oct 28 2008 stbinner@suse.de
- add translations from KDE trunk
* Sat Oct 04 2008 stbinner@suse.de
- update to 1.3.0:
  * Fixed a lot of bugs
  * GUI/feature omprovements, backport everything that was in trunk
* Sat Sep 20 2008 stbinner@suse.de
- update to 1.2.0:
  * Solved some bugs
  * Moved config to KSharedConfig
  * Added sensible defaults
* Wed Sep 17 2008 stbinner@suse.de
- update to 1.1.1:
  * Solved a critical bug that caused kded4 crash
  * Backported fix for profile import
  * Backported GUI improvements
  * Backported various fixes
* Mon Sep 15 2008 stbinner@suse.de
- update to 1.0 release
* Fri Sep 12 2008 stbinner@suse.de
- initial package
openSUSE Build Service is sponsored by