Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:12.3
xfce4-power-manager
xfce4-power-manager.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File xfce4-power-manager.spec of Package xfce4-power-manager
# # spec file for package xfce4-power-manager # # Copyright (c) 2013 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.10.0 Name: xfce4-power-manager Version: 1.2.0 Release: 0 Summary: Power Management for the Xfce Desktop Environment License: GPL-2.0+ Group: System/GUI/XFCE Url: http://goodies.xfce.org/projects/applications/xfce4-power-manager Source: http://archive.xfce.org/src/apps/xfce4-power-manager/1.2/%{name}-%{version}.tar.bz2 # PATCH-FIX-UPSTREAM xfce4-power-manager-fix-help.patch bxo#8846 gber@opensuse.org -- Use xfce_dialog_show_help() and remove the bundled documentation Patch0: xfce4-power-manager-fix-help.patch # PATCH-FIX-UPSTREAM xfce4-power-manager-fix-broken-translations.patch bnc#788361 gber@opensuse.org -- Fix broken format strings in translations causing crashes Patch1: xfce4-power-manager-fix-broken-translations.patch # PATCH-FEATURE-UPSTREAM xfce4-power-manager-systemd-inhibit.patch bnc#789057 gber@opensuse.org -- Add systemd inhibit support Patch2: xfce4-power-manager-systemd-inhibit.patch BuildRequires: ed BuildRequires: fdupes BuildRequires: intltool BuildRequires: update-desktop-files BuildRequires: xfce4-dev-tools BuildRequires: pkgconfig(dbus-1) BuildRequires: pkgconfig(dbus-glib-1) BuildRequires: pkgconfig(glib-2.0) BuildRequires: pkgconfig(gmodule-2.0) BuildRequires: pkgconfig(gobject-2.0) BuildRequires: pkgconfig(gthread-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: pkgconfig(libxfconf-0) BuildRequires: pkgconfig(x11) BuildRequires: pkgconfig(xext) BuildRequires: pkgconfig(xrandr) Requires: ConsoleKit-x11 Recommends: %{name}-lang = %{version} Provides: xfce4-power-manager-doc = %{version} Obsoletes: xfce4-power-manager-doc <= 1.2.0 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 a standardized inhibit interface which allows applications to prevent automatic sleep actions via the power manager. %package -n xfce4-panel-plugin-brightness Summary: Xfce Panel Plugin to Regulate Display Brightness Group: System/GUI/XFCE Requires: %{name} = %{version} Requires: xfce4-panel >= %{panel_version} %description -n xfce4-panel-plugin-brightness This package provides a plugin for the Xfce panel which allows one to regulate display brightness. %lang_package %prep %setup -q %patch0 -p1 %patch1 -p1 %patch2 -p1 # show in LXDE as well ed -s src/xfce4-power-manager.desktop.in 2>/dev/null <<'EOF' ,s/^OnlyShowIn=XFCE;/OnlyShowIn=XFCE;LXDE;/ w EOF %build xdt-autogen %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} %{?no_lang_C} %fdupes %{buildroot}/%{_datadir} %clean rm -rf %{buildroot} %post %desktop_database_post %icon_theme_cache_post %postun %desktop_database_postun %icon_theme_cache_postun %files %defattr(-,root,root) %doc AUTHORS COPYING ChangeLog NEWS README TODO %{_bindir}/xfce4-power-manager %{_bindir}/xfce4-power-manager-settings %{_bindir}/xfce4-power-information %{_sbindir}/xfpm-power-backlight-helper %config %{_sysconfdir}/xdg/autostart/xfce4-power-manager.desktop %{_mandir}/man1/xfce4-power-manager*.1* %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/*/*/* %files lang -f %{name}.lang %files -n xfce4-panel-plugin-brightness %defattr(-,root,root) %{_libdir}/xfce4/panel-plugins/xfce4-brightness-plugin %{_datadir}/xfce4/panel-plugins/*.desktop %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor