1 Summary: Power manager for the Xfce desktop environment
2 Summary(pl.UTF-8): Zarządca energii dla środowiska Xfce
3 Name: xfce4-power-manager
7 Group: X11/Applications
8 Source0: http://archive.xfce.org/src/apps/xfce4-power-manager/1.2/%{name}-%{version}.tar.bz2
9 # Source0-md5: 935599b7114b0a4b0e2c9a5d6c72524c
10 Patch100: 0049-Autotools-updates.patch
11 Patch101: 0061-Remove-custom-OSD-brightness-popup-use-libnotify-ins.patch
12 Patch102: 0073-Ignore-useless-deprecation-warnings-for-now.patch
13 Patch103: 0074-Don-t-init-thread-on-gobject-3.32.patch
14 Patch104: 0075-Change-brightness-level-from-glong-to-gint32.patch
15 Patch105: 0079-Fix-Typo-in-xfpm-power.c.patch
16 Patch106: 0080-Fix-typo-in-error-message.patch
17 Patch107: 0081-Fix-typo.patch
18 Patch108: 0082-Fix-incorrect-check-for-suspend-permissions-bug-8438.patch
19 Patch109: 0145-Add-shutdown-reboot-functionality-for-systemd-Bug-10.patch
20 Patch110: 0146-Fix-empty-systray-icon-in-some-panels-on-battery-rem.patch
21 Patch111: 0147-Display-power-percentage.patch
22 Patch112: 0148-Fix-status-icon-for-devices-other-than-battery-and-u.patch
23 Patch113: 0149-Update-to-XFCE_PANEL_PLUGIN_REGISTER.patch
24 Patch114: 0150-Add-support-for-keyboard-backlight-control-Bug-10470.patch
25 Patch115: 0151-Don-t-allow-systemd-to-handle-suspend-hibernate-even.patch
26 Patch116: 0152-xfpm-power-info-add-current-percentage-of-batteries.patch
27 Patch117: 0153-xfpm-battery-do-not-show-an-icon-for-HID-devices.patch
28 Patch118: 0154-Update-xfce4-session-lock-screen-setting.patch
29 Patch119: 0155-Use-the-online-docs-for-help.patch
30 Patch120: 0156-Add-xfpm-backlight.c-to-potfiles.patch
31 Patch121: 0157-Remove-the-doc-configure-deps.patch
32 Patch122: 0171-Add-support-for-logind-suspend-resume-Bug-9963.patch
33 Patch123: 0172-Update-min-requirements-and-autotools.patch
34 Patch124: 0175-port-xfpm-to-libupower-glib-add-support-for-upower-0.patch
35 Patch125: 0176-get-rid-of-XfpmDeviceState-and-XfpmDeviceType.patch
36 Patch126: 0177-xfpm_backlight_button_pressed_cb-fix-popup-display.patch
37 Patch127: 0178-Fix-potential-uninitialized-variable.patch
38 Patch128: 0200-Add-a-option-for-network-manager-sleep-Bug-10702.patch
39 Patch129: 0201-Fix-for-enable-deprecared-and-gseal.patch
40 Patch130: 0202-Uninitialized-variable-start_time.patch
41 Patch131: 0203-Fix-uninitialized-pointer-read.patch
42 Patch132: 0206-Warn-when-no-lock-tool-succeeded-Bug-6413.patch
43 Patch133: xfpm-enum-types.patch
44 URL: http://goodies.xfce.org/projects/applications/xfce4-power-manager
45 BuildRequires: autoconf >= 2.50
46 BuildRequires: automake >= 1:1.8
47 BuildRequires: dbus-glib-devel >= 0.74
48 BuildRequires: gettext-devel
49 BuildRequires: glib2-devel >= 1:2.16.0
50 BuildRequires: gtk+2-devel >= 2:2.12.0
51 BuildRequires: intltool
52 BuildRequires: libnotify-devel >= 0.4.1
53 BuildRequires: libtool
54 BuildRequires: libxfce4ui-devel >= 4.10.0
55 BuildRequires: pkgconfig
56 BuildRequires: rpmbuild(macros) >= 1.601
57 BuildRequires: upower-devel
58 BuildRequires: xfce4-dev-tools >= 4.10.0
59 BuildRequires: xfce4-panel-devel >= 4.10.0
60 BuildRequires: xfconf-devel >= 4.10.0
61 Requires: gtk-update-icon-cache
63 Requires: xfce4-dirs >= 4.6
64 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
67 Power manager for the Xfce desktop environment.
69 %description -l pl.UTF-8
70 Zarządca energii dla środowiska Xfce.
117 --disable-silent-rules
122 rm -rf $RPM_BUILD_ROOT
125 DESTDIR=$RPM_BUILD_ROOT
127 %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/locale/ur_PK
132 rm -rf $RPM_BUILD_ROOT
135 %update_icon_cache hicolor
138 %update_icon_cache hicolor
140 %files -f %{name}.lang
141 %defattr(644,root,root,755)
142 %doc AUTHORS ChangeLog NEWS README TODO
143 %{_sysconfdir}/xdg/autostart/xfce4-power-manager.desktop
144 %attr(755,root,root) %{_bindir}/xfce4-power-information
145 %attr(755,root,root) %{_bindir}/xfce4-power-manager
146 %attr(755,root,root) %{_bindir}/xfce4-power-manager-settings
147 %attr(755,root,root) %{_sbindir}/xfpm-power-backlight-helper
148 %attr(755,root,root) %{_libdir}/xfce4/panel/plugins/libxfce4brightness.so
149 %{_desktopdir}/xfce4-power-manager-settings.desktop
150 %{_datadir}/xfce4/panel-plugins/xfce4-brightness-plugin.desktop
151 %{_iconsdir}/hicolor/*/*/*
152 %{_datadir}/polkit-1/actions/org.xfce.power.policy
153 %{_mandir}/man1/xfce4-power-manager*.1*