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

%define panel_version 4.8.6

Name:           xfce4-power-manager
Version:        1.0.11
Release:        8.11.2
License:        GPLv2+
Summary:        Power Management for the Xfce Desktop Dnvironment
Group:          System/GUI/XFCE
Patch0:         %{name}-0.9.98-lxde-support.patch
Patch1:         %{name}-disable-battery-button.patch
BuildRequires:  pkg-config
BuildRequires:  fdupes
BuildRequires:  intltool
BuildRequires:  libnotify-devel
BuildRequires:  dbus-1-glib-devel
BuildRequires:  glib-devel
BuildRequires:  gtk2-devel
BuildRequires:  xfce4-panel-devel
BuildRequires:  libxfce4ui-devel
BuildRequires:  libxfce4util-devel
BuildRequires:  update-desktop-files
BuildRequires:  xfconf
Suggests:       xfce4-panel-plugin-brightness
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

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.

%setup -q
%patch0 -p1
%patch1 -p1

%configure --disable-hal
make %{?_smp_mflags} V=1

%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}

rm -rf %{buildroot}

%if 0%{?suse_version} >= 1140



%files -f %{name}.lang
%config %{_sysconfdir}/xdg/autostart/xfce4-power-manager.desktop
%dir %{_datadir}/polkit-1
%dir %{_datadir}/polkit-1/actions
%doc %{_datadir}/xfce4/doc

%files -n xfce4-panel-plugin-brightness

* Sun Jan  3 2016
- updated to version 1.0.11
- patch to remove unsupported battery button
* Sat Aug  8 2015
- package ported for SLE 11
* Fri Feb 18 2011
- call %%desktop_database_post/un
- call %%icon_theme_cache_post/un
- simplified filelist
* Fri Jan 21 2011
- improve filelist
* Mon Jan 17 2011
- add missing directories
* Mon Jan 17 2011
- new upstream version 1.0.3
  * bugfixed : no detailed changelog provided
* Tue Jan 11 2011
- removed dependency on xfconf
* Mon Dec 27 2010
- use %%%%suse_update_desktop_file for files in /etc/xdg/autostart
* Mon Dec 27 2010
- suggest xfce4-panel-plugin-brightness
* Mon Dec 27 2010
- update to version 1.0.2
  * bugfixes
- split off xfce4-panel-plugin-brightness
- mark documentation as such
- improved descriptions/summaries
* Wed Dec 15 2010
- fix filelist
* Wed Dec  1 2010
- use pkgconfig symbol in BuildRequires
* Tue Sep  7 2010
- new upstream version 1.0.1
  * no additional changelog provided upstream
* Mon Jul 26 2010
- Finally drop HAL bxo#6116
* Thu Jul 22 2010
- new upstream version 0.9.98
- rename lxde-support.patch to xfce4-power-manager-0.9.98-lxde-support.patch
- spec file clean up
* Sat Jan 16 2010
- added LXDE support to autostart desktop file
* Thu Nov 26 2009
- updated to
  - Fix inactivity check box not appearing on Desktop system.
  - Fix adapter icon when no battery present (bug #6008).
  - Replace XfpmIdle with EggIdletime from gpm.
  - Reset XScreen saver counter on lid open.
* Wed Nov 11 2009
- updated to
  - Because on some systems we might not have the brightness keys mapped.
    LCD brightness change are not reflected to xfpm when keys are pressed, so
    save the actual brightness before dimming the screen on idle to restore it
    afterword. (bug #5811).
  - Check if DPMS is enabled before doing action on lid close event (bug #5805).
  - Allow 1%% as a minimum critical charge level.
  - Build fix with xextproto > 7.0.5 (bug #5897).
* Wed Nov 11 2009
- updated to 0.8.4
  - Don't lock screen on lid event when multiple monitor are connected.
  - Force DPMSModeOff on lid close event if it is not done in Hardware.
  - Fix a crash in set_client_id (bug #5673).
  - Reduce memory usage on some places.
* Wed Aug 19 2009
- added xfce4-panel to Requires
* Wed Aug 12 2009
- updated to
  - Missing signal handler for power button settings (bug #5656).
  - Allow 5%% as a minimum critical charge instead of 10%%.
  - Change some property names, specially for buttons to avoid
    problems with old 0.6 configuration.
* Wed Aug  5 2009
- updated to 0.8.3
  - Provides more standard org.fd.PowerManagement DBus methods and signal (bug #5569).
  - Make it possible to compile without network manager support.
  - Add never show icon to the system tray configuration (bug #5613).
  - Fix a typo that prevents from getting the correct critical configuration (bug #5619).
  - Use Gtk as a popup indicator to show the brightness level as the cairo seems to be
    problematic on some hardware. (bug #5544 #5632).
  - Better alignement in the interface file, worked by Josef Havran.
* Mon Jul 20 2009
- Follow change of %%%%{_libexecdir}
* Tue Jul 14 2009
- updated to 0.8.2
* Wed Jun 10 2009
- updated to final 0.8.0
- dropped mainlined include.patch
* Mon Apr 27 2009
- created package (version aka 0.8.0beta2)
- fix missing includes (include.patch)