1 Summary: GNOME Power Manager
2 Summary(pl): Zarz±dca energii dla GNOME
3 Name: gnome-power-manager
7 Group: X11/Applications
8 Source0: ftp://ftp.gnome.org/pub/gnome/sources/gnome-power-manager/2.16/%{name}-%{version}.tar.bz2
9 # Source0-md5: 48166c6aaf41f2225090517ae655d05d
10 Patch0: %{name}-desktop.patch
11 URL: http://www.gnome.org/projects/gnome-power-manager/
12 BuildRequires: autoconf >= 2.52
13 BuildRequires: automake
14 BuildRequires: dbus-glib-devel >= 0.71
15 BuildRequires: docbook-dtd41-sgml
16 BuildRequires: docbook-utils
17 BuildRequires: glib2-devel >= 1:2.12.9
18 BuildRequires: gnome-doc-utils
19 BuildRequires: hal-devel >= 0.5.7.1
20 BuildRequires: libgnomeui-devel >= 2.16.1
21 BuildRequires: libnotify-devel >= 0.4.2
22 BuildRequires: libtool
23 BuildRequires: libwnck-devel >= 2.16.3
24 BuildRequires: pkgconfig
25 BuildRequires: rpmbuild(macros) >= 1.311
26 BuildRequires: scrollkeeper
27 Obsoletes: gnome-power
28 Requires(post,preun): GConf2
29 Requires(post,postun): gtk+2
30 Requires(post,postun): hicolor-icon-theme
31 Requires(post,postun): scrollkeeper
32 Requires: gnome-session >= 2.16.3
33 Requires: notification-daemon >= 0.3.5
34 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
37 Uses of GNOME Power Manager infrastructure
38 - A dialogue that warns the user when on UPS power, that automatically
39 begins a kind shutdown when the power gets critically low.
40 - An icon that allows a user to dim the LCD screen with a slider, and
41 does do automatically when going from mains to battery power on a
43 - An icon, that when an additional battery is inserted, updates it's
44 display to show two batteries and recalculates how much time
45 remaining. Would work for wireless mouse and keyboards, UPS's and
47 - A daemon that does a clean shutdown when the battery is critically
48 low or does a soft-suspend when you close the lid on your laptop (or
49 press the "suspend" button on your PC).
50 - Tell Totem to use a codec that does low quality processing to
51 conserve battery power.
52 - Postpone indexing of databases (e.g. up2date) or other heavy
53 operations until on mains power.
54 - Presentation programs / movie players don't want the screensaver
55 starting or screen blanking.
58 Zastosowania infrastruktury zarz±dcy energii GNOME:
59 - okno dialogowe ostrzegaj±ce u¿ytkownika o zasilaniu z UPS-a,
60 automatycznie rozpoczynaj±ce uprzejme zamykanie systemu, kiedy
61 zasilanie jest w stanie krytycznym
62 - ikona umo¿liwiaj±ca u¿ytkownikowi przyciemnienie ekranu LCD przy
63 u¿yciu suwaka i robi to automatycznie przy prze³±czaniu z g³ównego
64 ¼ród³a zasilania na baterie w laptopie
65 - ikona, która po do³o¿eniu dodatkowej baterii uaktualnia wska¼nik,
66 aby pokazywa³ dwie baterie i przelicza ilo¶æ pozosta³ego czasu;
67 powinna dzia³aæ dla bezprzewodowych myszy i klawiatur, UPS-ów i PDA
68 - demon wykonuj±cy czyste zamkniêcie systemu kiedy bateria jest w
69 stanie krytycznym i wykonuj±cy zamro¿enie systemu (soft-suspend)
70 przy zamykaniu pokrywy laptopa (albo naci¶niêciu przycisku
72 - informowanie Totema, aby u¿ywa³ kodeka o ni¿szej jako¶ci w celu
73 zaoszczêdzenia energii baterii
74 - wstrzymywanie indeksowania baz danych (np. up2date) i innych
75 ciê¿kich operacji do czasu pod³±czenia g³ównego ¼ród³a zasilania
76 - zapobieganie uruchomienia screensaverów i wygaszaniu ekranu podczas
77 dzia³ania programów prezentacyjnych i odtwarzaczy filmów
90 --disable-schemas-install \
91 --disable-scrollkeeper
95 rm -rf $RPM_BUILD_ROOT
98 DESTDIR=$RPM_BUILD_ROOT \
99 autostartdir=%{_datadir}/gnome/autostart
101 %find_lang %{name} --all-name --with-gnome
104 rm -rf $RPM_BUILD_ROOT
107 %gconf_schema_install gnome-power-manager.schemas
108 %scrollkeeper_update_post
109 %update_icon_cache hicolor
112 %gconf_schema_uninstall gnome-power-manager.schemas
115 %scrollkeeper_update_postun
116 %update_icon_cache hicolor
118 %files -f %{name}.lang
119 %defattr(644,root,root,755)
120 %doc AUTHORS ChangeLog NEWS README TODO
121 %attr(755,root,root) %{_bindir}/gnome-power-inhibit-test
122 %attr(755,root,root) %{_bindir}/gnome-power-manager
123 %attr(755,root,root) %{_bindir}/gnome-power-preferences
124 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dbus-1/system.d/gnome-power-manager.conf
125 %{_datadir}/gnome/autostart/gnome-power-manager.desktop
126 %{_datadir}/dbus-1/services/gnome-power-manager.service
128 %{_datadir}/gnome-power-manager
129 %{_desktopdir}/gnome-power-preferences.desktop
130 %{_iconsdir}/hicolor/*/*/*
131 %dir %{_omf_dest_dir}/gnome-power-manager
132 %{_omf_dest_dir}/gnome-power-manager/gnome-power-manager-C.omf
133 %lang(ru) %{_omf_dest_dir}/gnome-power-manager/gnome-power-manager-ru.omf
134 %lang(sv) %{_omf_dest_dir}/gnome-power-manager/gnome-power-manager-sv.omf
135 %{_sysconfdir}/gconf/schemas/gnome-power-manager.schemas