LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File xfce4-power-manager.spec of Package xfce4-power-manager (Project home:cleberps:xfce)

#
# 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.8.6

Name:           xfce4-power-manager
Version:        1.0.11
Release:        8.11.2
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
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

%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
%patch1 -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
* Sun Jan  3 2016 cleber@ssys.com.br
- updated to version 1.0.11
- patch to remove unsupported battery button
* Sat Aug  8 2015 cleber@ssys.com.br
- package ported for SLE 11
* Fri Feb 18 2011 gber@opensuse.org
- call %%desktop_database_post/un
- call %%icon_theme_cache_post/un
- simplified filelist
* Fri Jan 21 2011 gber@opensuse.org
- improve filelist
* Mon Jan 17 2011 gber@opensuse.org
- add missing directories
* Mon Jan 17 2011 andrea@opensuse.org
- new upstream version 1.0.3
  * bugfixed : no detailed changelog provided
* Tue Jan 11 2011 gber@opensuse.org
- removed dependency on xfconf
* Mon Dec 27 2010 gber@opensuse.org
- use %%%%suse_update_desktop_file for files in /etc/xdg/autostart
* Mon Dec 27 2010 gber@opensuse.org
- suggest xfce4-panel-plugin-brightness
* Mon Dec 27 2010 gber@opensuse.org
- update to version 1.0.2
  * bugfixes
- split off xfce4-panel-plugin-brightness
- mark documentation as such
- improved descriptions/summaries
* Wed Dec 15 2010 prusnak@opensuse.org
- fix filelist
* Wed Dec  1 2010 prusnak@opensuse.org
- use pkgconfig symbol in BuildRequires
* Tue Sep  7 2010 andrea@opensuse.org
- new upstream version 1.0.1
  * no additional changelog provided upstream
* Mon Jul 26 2010 andrea@opensuse.org
- Finally drop HAL bxo#6116
* Thu Jul 22 2010 andrea@opensuse.org
- 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 andrea@opensuse.org
- added LXDE support to autostart desktop file
* Thu Nov 26 2009 prusnak@suse.cz
- updated to 0.8.4.2
  - 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 prusnak@suse.cz
- updated to 0.8.4.1
  - 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 prusnak@suse.cz
- 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 prusnak@suse.cz
- added xfce4-panel to Requires
* Wed Aug 12 2009 prusnak@suse.cz
- updated to 0.8.3.1
  - 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 prusnak@suse.cz
- 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 dominique-obs@leuenberger.net
- Follow change of %%%%{_libexecdir}
* Tue Jul 14 2009 prusnak@suse.cz
- updated to 0.8.2
* Wed Jun 10 2009 prusnak@suse.cz
- updated to final 0.8.0
- dropped mainlined include.patch
* Mon Apr 27 2009 prusnak@suse.cz
- created package (version 0.7.90.2 aka 0.8.0beta2)
- fix missing includes (include.patch)