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

#
# spec file for package gnome-power-manager (Version 2.28.2)
#
# Copyright (c) 2010 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/
#



Name:           gnome-power-manager
Version:        2.28.2
Release:        1.<RELEASE1>
License:        GPLv2+
Summary:        Power Management for GNOME
Url:            http://gnome-power.sourceforge.net/
Group:          System/GUI/GNOME
Source:         ftp://ftp.gnome.org/pub/gnome/sources/%{name}/2.16/%{name}-%{version}.tar.bz2
# PATCH-FIX-UPSTREAM gnome-power-manager-ck-events-idle.patch bgo597189 bnc540517 vuntz@opensuse.org -- Emit ConsoleKit events in the idle loop to suppress consecutive events, and fix suspend happening when coming back from suspend (when lid is closed)
Patch1:         gnome-power-manager-ck-events-idle.patch
# PATCH-NEEDS-REBASE gnome-power-manager-schedule-wakeups.patch gburt fate302448 -- add tab to prefs to schedule rtcwake (was PATCH-FEATURE-OPENSUSE)
Patch10:        gnome-power-manager-schedule-wakeups.patch
# PATCH-FEATURE-UPSTREAM gnome-power-manager-notify-idle-sleep.patch hmacht bnc#439018 bgo575467 -- notify user about auto suspend when returning from sleep
Patch12:        gnome-power-manager-notify-idle-sleep.patch
# PATCH-FIX-OPENSUSE gnome-power-manager-no-fallback-to-hibernate.patch hmacht@suse.de bnc#440410
Patch14:        gnome-power-manager-no-fallback-to-hibernate.patch
BuildRequires:  DeviceKit-power-devel
BuildRequires:  docbook-utils
BuildRequires:  fdupes
BuildRequires:  gnome-common
BuildRequires:  gnome-doc-utils-devel
BuildRequires:  gnome-keyring-devel
BuildRequires:  gnome-panel-devel
BuildRequires:  gnome-patch-translation
BuildRequires:  hal-devel
BuildRequires:  intltool
BuildRequires:  libcanberra-devel
BuildRequires:  libnotify-devel
BuildRequires:  libunique-devel
BuildRequires:  libwnck-devel
BuildRequires:  translation-update-upstream
BuildRequires:  update-desktop-files
BuildRequires:  xmlto
Requires:       %{name}-lang = %{version}
Requires:       DeviceKit-power
Requires:       gnome-session
Requires:       hal
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%gconf_schemas_prereq

%description
GNOME Power Manager is a session daemon that takes care of power
management.

GNOME Power Manager uses information provided by HAL to display icons
and handle system and user actions in a GNOME session. Authorized users
can set policy and change preferences.

GNOME Power Manager acts as a policy agent on top of the Project Utopia
stack, which includes the kernel, hotplug, udev, and HAL. GNOME Power
Manager listens for HAL events and responds with user-configurable
reactions.

%package -n gnome-applets-brightness
License:        GPLv2+
Summary:        A GNOME panel applet to control brightness on laptop screens
Group:          System/GUI/GNOME
Requires:       %{name} = %{version}

%description -n gnome-applets-brightness
GNOME Power Manager is a session daemon that takes care of power
management.

This package provides an applet to control brightness on your laptop
screen.

%package -n gnome-applets-inhibit-powersave
License:        GPLv2+
Summary:        A GNOME panel applet to disable and reenable power saving
Group:          System/GUI/GNOME
Requires:       %{name} = %{version}

%description -n gnome-applets-inhibit-powersave
GNOME Power Manager is a session daemon that takes care of power
management.

This package provides an applet to disable and reenable powersaving on
the fly.

%lang_package
%prep
%setup -q
# FIXME Will be fixed in the next release after 2.27.2, so uncomment
#translation-update-upstream
#gnome-patch-translation-prepare
# Needs rebase:
#%patch10 -p1
%patch1 -p1
%patch12 -p1
%patch14 -p1
#gnome-patch-translation-update

%build
autoreconf -f -i
%configure \
    --libexecdir=%{_libexecdir}/gnome-power-manager \
    --disable-schemas-install \
    --disable-scrollkeeper
%{__make} %{?jobs:-j %jobs}

%install
%makeinstall
%suse_update_desktop_file gnome-power-preferences System X-SuSE-ControlCenter-System
%suse_update_desktop_file gnome-power-manager
%suse_update_desktop_file gnome-power-statistics
%find_lang %{name}
%find_gconf_schemas
cat %{name}.schemas_list >%{name}.lst
%fdupes %{buildroot}

%clean
rm -rf %{buildroot}

%pre -f %{name}.schemas_pre

%posttrans -f %{name}.schemas_posttrans

%preun -f %{name}.schemas_preun

%files -f %{name}.lst
%defattr (-, root, root)
%doc AUTHORS COPYING ChangeLog HACKING NEWS README TODO
%{_bindir}/*
%{_sysconfdir}/xdg/autostart/*.desktop
%{_datadir}/applications/*.desktop
%{_datadir}/dbus-1/services/gnome-power-manager.service
%{_datadir}/gnome-power-manager
%{_datadir}/icons/hicolor/*/apps/*
%doc %{_mandir}/man?/*.*
%dir %{_libexecdir}/gnome-power-manager

%files -n gnome-applets-brightness
%defattr(-, root, root)
%{_libdir}/bonobo/servers/GNOME_BrightnessApplet.server
%{_libexecdir}/gnome-power-manager/gnome-brightness-applet
%{_datadir}/gnome-2.0/ui/GNOME_BrightnessApplet.xml

%files -n gnome-applets-inhibit-powersave
%defattr(-, root, root)
%{_libdir}/bonobo/servers/GNOME_InhibitApplet.server
%{_libexecdir}/gnome-power-manager/gnome-inhibit-applet
%{_datadir}/gnome-2.0/ui/GNOME_InhibitApplet.xml

%files lang -f %{name}.lang

%changelog
openSUSE Build Service is sponsored by