File xfce4-power-manager.spec of Package xfce4-power-manager
#
# spec file for package xfce4-power-manager
#
# Copyright (c) 2011 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/
#
%define panel_version 4.7.0
Name: xfce4-power-manager
Version: 1.0.3
Release: 8.<RELEASE3>
License: GPLv2+
Summary: Power Management for the Xfce Desktop Dnvironment
Url: http://goodies.xfce.org/projects/applications/xfce4-power-manager/
Group: System/GUI/XFCE
Source: http://archive.xfce.org/src/apps/xfce4-power-manager/1.0/%{name}-%{version}.tar.bz2
Patch0: %{name}-0.9.98-lxde-support.patch
BuildRequires: fdupes
BuildRequires: intltool
BuildRequires: pkgconfig(dbus-glib-1)
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(gtk+-2.0)
BuildRequires: pkgconfig(libnotify)
BuildRequires: pkgconfig(libxfce4panel-1.0)
BuildRequires: pkgconfig(libxfce4ui-1)
BuildRequires: pkgconfig(libxfce4util-1.0)
BuildRequires: update-desktop-files
BuildRequires: xfconf
Suggests: xfce4-panel-plugin-brightness
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
xfce4-power-manager is a tool for the Xfce desktop environment for managing
profiles of policies which affect power consumption, such as the display
brightness level, display sleep times, or CPU frequency scaling. It can also
trigger actions on certain events such as closing the lid or reaching low
battery levels and provides a set of interfaces to inform other applications
about current power level so that they can adjust their power consumption.
Furthermore, it provides the a standardized inhibit interface which allows
applications to prevent automatic sleep actions via the power manager.
%package -n xfce4-panel-plugin-brightness
License: GPLv2+
Summary: Xfce Panel Plugin to Regulate Display Brightness
Group: System/GUI/XFCE
Requires: xfce4-panel >= %panel_version
Requires: xfce4-power-manager = %{version}
%description -n xfce4-panel-plugin-brightness
This package provides a plugin for the Xfce panel which allows one to
regulate display brightness.
%prep
%setup -q
%patch0 -p1
%build
%configure --disable-hal
make %{?_smp_mflags} V=1
%install
%make_install
%suse_update_desktop_file xfce4-power-manager-settings
%suse_update_desktop_file xfce4-power-manager
rm -rf %{buildroot}/%{_datadir}/locale/{ast,kk,tl_PH,ur_PK}
%find_lang %{name}
%fdupes %{buildroot}/%{_datadir}
%clean
rm -rf %{buildroot}
%if 0%{?suse_version} >= 1140
%post
%desktop_database_post
%icon_theme_cache_post
%postun
%desktop_database_postun
%icon_theme_cache_postun
%endif
%files -f %{name}.lang
%defattr(-,root,root)
%doc AUTHORS COPYING ChangeLog NEWS README TODO
%{_bindir}/xfce4-power-manager
%{_bindir}/xfce4-power-manager-settings
%{_bindir}/xfce4-power-information
%config %{_sysconfdir}/xdg/autostart/xfce4-power-manager.desktop
%{_mandir}/man1/*
%dir %{_datadir}/polkit-1
%dir %{_datadir}/polkit-1/actions
%{_datadir}/polkit-1/actions/org.xfce.power.policy
%{_datadir}/applications/xfce4-power-manager-settings.desktop
%{_datadir}/icons/hicolor/128x128/devices/processor.png
%{_datadir}/icons/hicolor/*/*/xfpm-*.png
%{_datadir}/icons/hicolor/scalable/actions/*.svg
%{_datadir}/icons/hicolor/scalable/status/*.svg
%doc %{_datadir}/xfce4/doc
%files -n xfce4-panel-plugin-brightness
%defattr(-,root,root)
%{_sbindir}/xfpm-power-backlight-helper
%{_libdir}/xfce4/panel-plugins/xfce4-brightness-plugin
%{_datadir}/xfce4/panel-plugins/*.desktop
%changelog