File mate-power-manager.spec of Package mate-power-manager
#
# spec file for mate-power-manager
#
# Copyright (c) 2014 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: mate-power-manager
Version: 1.8.1
Release: 0
Summary: MATE Desktop UPower policy management
License: GPL-2.0
Group: System/GUI/Other
Url: http://mate-desktop.org
Source0: http://pub.mate-desktop.org/releases/1.8/%{name}-%{version}.tar.xz
# PATCH-FIX-UPSTREAM mate-power-manager_dbus_interface_keyboard_backlight_controls.patch --fix gsettings schema
# to fix keyboard backlight support
Patch0: mate-power-manager_dbus_interface_keyboard_backlight_controls.patch
Requires: upower
Recommends: %{name}-lang
%glib2_gsettings_schema_requires
BuildRequires: docbook-utils
BuildRequires: fdupes
BuildRequires: mate-common
BuildRequires: libxml2-python
BuildRequires: pkgconfig(dbus-glib-1)
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(libcanberra-gtk)
BuildRequires: pkgconfig(libnotify)
BuildRequires: pkgconfig(libmatepanelapplet-4.0)
BuildRequires: pkgconfig(gnome-keyring-1)
BuildRequires: pkgconfig(unique-1.0)
BuildRequires: pkgconfig(upower-glib)
BuildRequires: update-desktop-files
BuildRequires: yelp-tools
%description
MATE Power Manager is a MATE session daemon that acts as a policy
agent on top of UPower, which requires fairly new versions of the
kernel and udev. MATE Power Manager listens for system events and
responds with user-configurable actions.
%lang_package
%prep
%setup -q
%patch0 -p1
%build
autoreconf -fiv
%configure \
--disable-scrollkeeper \
--libexecdir=%{_libexecdir}/%{name} \
--enable-unique
make %{?_smp_mflags}
%install
%makeinstall
%find_lang %{name} %{?no_lang_C}
%fdupes %{buildroot}%{_datadir}/
if [ -d %{buildroot}%{_datadir}/MateConf ]; then
rm -r %{buildroot}%{_datadir}/MateConf
fi
%post
%desktop_database_post
%glib2_gsettings_schema_post
%icon_theme_cache_post
%postun
%desktop_database_postun
%glib2_gsettings_schema_postun
%icon_theme_cache_postun
%files
%defattr(-,root,root,-)
%doc AUTHORS README COPYING
%dir %{_datadir}/mate-2.0
%{_sysconfdir}/xdg/autostart/mate-power-manager.desktop
%{_bindir}/mate-power-manager
%{_bindir}/mate-power-manager-bugreport
%{_bindir}/mate-power-preferences
%{_bindir}/mate-power-statistics
%{_sbindir}/mate-power-backlight-helper
%{_libexecdir}/%{name}
%{_datadir}/applications/mate-power-preferences.desktop
%{_datadir}/applications/mate-power-statistics.desktop
%{_datadir}/dbus-1/services/*.service
%{_datadir}/glib-2.0/schemas/*.xml
%{_datadir}/help/C/%{name}
%{_datadir}/icons/hicolor/*/*/*
%{_datadir}/mate-2.0/ui/
%{_datadir}/mate-panel/
%{_datadir}/mate-power-manager/
%{_datadir}/polkit-1/
%{_mandir}/man1/*.1.gz
%files lang -f %{name}.lang
%defattr(-,root,root,-)
%changelog