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

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

Name:           gnome-power-manager
Version:        3.4.0
Release:        0
Summary:        Power Management for GNOME
License:        GPL-2.0+
Group:          System/GUI/GNOME
# 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-NEEDS-REBASE gnome-power-manager-notify-idle-sleep.patch hmacht bnc#439018 bgo575467 -- notify user about auto suspend when returning from sleep (was PATCH-FEATURE-UPSTREAM)
Patch12:        gnome-power-manager-notify-idle-sleep.patch
BuildRequires:  docbook-utils
BuildRequires:  fdupes
# For directory ownership
BuildRequires:  gnome-icon-theme
BuildRequires:  gnome-patch-translation
BuildRequires:  intltool
BuildRequires:  libupower-glib-devel
BuildRequires:  translation-update-upstream
BuildRequires:  update-desktop-files
BuildRequires:  pkgconfig(gdk-3.0) >= 2.91.7
BuildRequires:  pkgconfig(glib-2.0) >= 2.31.10
BuildRequires:  pkgconfig(gtk+-3.0) >= 2.91.0
BuildRequires:  gnome-common
Requires:       gnome-session-core
Requires:       upower
Recommends:     %{name}-lang
# The -brightness and -inhibit-powersave applets are no longer provided in 2.91+
Obsoletes:      gnome-applets-brightness < %{version}
Obsoletes:      gnome-applets-inhibit-powersave < %{version}
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

GNOME Power Manager is a GNOME session daemon that acts as a policy
agent. It listens for system events and responds with
user-configurable actions.

%setup -q
# Needs rebase:
#%patch10 -p1
#%patch12 -p1

[ -x ./ ]  && NOCONFIGURE=1 ./

%configure \
%{__make} %{?jobs:-j %jobs} V=1

%if 0%{?suse_version} <= 1120
%{__rm} %{buildroot}%{_datadir}/locale/en@shaw/LC_MESSAGES/*
%suse_update_desktop_file gnome-power-statistics
%find_lang %{name} %{?no_lang_C}
%fdupes %{buildroot}

rm -rf %{buildroot}



%defattr (-, root, root)
%doc %{_mandir}/man1/gnome-power-statistics.*

%files lang -f %{name}.lang

openSUSE Build Service is sponsored by