File xfce4-power-manager.spec of Package xfce4-power-manager

#
# spec file for package xfce4-power-manager (Version 0.8.3.1)
#
# 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


Name:           xfce4-power-manager
Version:        0.8.3.1
Release:        1
Url:            http://goodies.xfce.org/projects/applications/xfce4-power-manager/
License:        GPL v2 or later
Group:          System/GUI/XFCE
Summary:        Manage the power sources on the computer
Source:         http://goodies.xfce.org/releases/%{name}/%{name}-%{version}.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  dbus-1-glib-devel glib2-devel gtk2-devel intltool libnotify-devel libxfce4util-devel libxfcegui4-devel update-desktop-files xfce4-panel-devel xfconf
Requires:       hal

%description
This software is a power manager for the Xfce desktop, Xfce power manager
manages the power sources on the computer and the devices that can be
controlled to reduce their power consumption (such as LCD brightness level,
monitor sleep, CPU frequency scaling). In addition, xfce4-power-manager
provides a set of freedesktop-compliant DBus interfaces to inform other
applications about current power level so that they can adjust their power
consumption, and it provides the inhibit interface which allows applications
to prevent automatic sleep actions via the power manager; as an example,
the operating system's package manager should make use of this interface
while it is performing update operations.

%prep
%setup -q

%build
%configure
make %{?jobs:-j%jobs}

%install
make DESTDIR=$RPM_BUILD_ROOT install
%find_lang %{name}
%suse_update_desktop_file xfce4-power-manager-settings

%clean
rm -rf $RPM_BUILD_ROOT

%files -f %{name}.lang
%defattr(-,root,root)
%doc AUTHORS COPYING ChangeLog NEWS README TODO
%{_bindir}/xfce4-power-manager
%{_bindir}/xfce4-power-manager-settings
%{_libexecdir}/xfce4/panel-plugins/xfce4-brightness-plugin
%config %{_sysconfdir}/xdg/autostart/xfce4-power-manager.desktop
%{_mandir}/man1/*
%{_datadir}/applications/xfce4-power-manager-settings.desktop
%{_datadir}/icons/hicolor/scalable/actions/*.svg
%{_datadir}/icons/hicolor/scalable/status/*.svg
%{_datadir}/xfce4/doc/C/images/*.png
%{_datadir}/xfce4/doc/C/*.html
%{_datadir}/xfce4/panel-plugins/*.desktop

%changelog
openSUSE Build Service is sponsored by