3 # - provide a PLD package for libnotify for nice information popups
5 Summary: GNOME Power Manager
6 Summary(pl): Zarz±dca energii dla GNOME
7 Name: gnome-power-manager
11 Group: X11/Applications
12 Source0: http://dl.sourceforge.net/gnome-power/%{name}-%{version}.tar.gz
13 # Source0-md5: ac4aa565a8db05346e4e58c7dd595fbb
14 Patch0: %{name}-desktop.patch
15 URL: http://gnome-power.sourceforge.net/
16 BuildRequires: autoconf >= 2.52
17 BuildRequires: automake
18 BuildRequires: dbus-devel >= 0.35.2
19 BuildRequires: dbus-glib-devel >= 0.35.2
20 BuildRequires: docbook-dtd41-sgml
21 BuildRequires: docbook-utils
22 BuildRequires: glib2-devel
23 BuildRequires: hal-devel >= 0.5.4
24 BuildRequires: libgnomeui-devel >= 2.10.0
25 BuildRequires: libtool
26 BuildRequires: libwnck-devel >= 2.10.0
27 BuildRequires: pkgconfig
28 BuildRequires: rpmbuild(macros) >= 1.197
29 Obsoletes: gnome-power
30 Requires(post,preun): GConf2
31 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
34 Uses of GNOME Power Manager infrastructure
35 - A dialogue that warns the user when on UPS power, that automatically
36 begins a kind shutdown when the power gets critically low.
37 - An icon that allows a user to dim the LCD screen with a slider, and
38 does do automatically when going from mains to battery power on a
40 - An icon, that when an additional battery is inserted, updates it's
41 display to show two batteries and recalculates how much time
42 remaining. Would work for wireless mouse and keyboards, UPS's and
44 - A daemon that does a clean shutdown when the battery is critically
45 low or does a soft-suspend when you close the lid on your laptop (or
46 press the "suspend" button on your PC).
47 - Tell Totem to use a codec that does low quality processing to
48 conserve battery power.
49 - Postpone indexing of databases (e.g. up2date) or other heavy
50 operations until on mains power.
51 - Presentation programs / movie players don't want the screensaver
52 starting or screen blanking.
55 Zastosowania infrastruktury zarz±dcy energii GNOME:
56 - okno dialogowe ostrzegaj±ce u¿ytkownika o zasilaniu z UPS-a,
57 automatycznie rozpoczynaj±ce uprzejme zamykanie systemu, kiedy
58 zasilanie jest w stanie krytycznym
59 - ikona umo¿liwiaj±ca u¿ytkownikowi przyciemnienie ekranu LCD przy
60 u¿yciu suwaka i robi to automatycznie przy prze³±czaniu z g³ównego
61 ¼ród³a zasilania na baterie w laptopie
62 - ikona, która po do³o¿eniu dodatkowej baterii uaktualnia wska¼nik,
63 aby pokazywa³ dwie baterie i przelicza ilo¶æ pozosta³ego czasu;
64 powinna dzia³aæ dla bezprzewodowych myszy i klawiatur, UPS-ów i PDA
65 - demon wykonuj±cy czyste zamkniêcie systemu kiedy bateria jest w
66 stanie krytycznym i wykonuj±cy zamro¿enie systemu (soft-suspend)
67 przy zamykaniu pokrywy laptopa (albo naci¶niêciu przycisku
69 - informowanie Totema, aby u¿ywa³ kodeka o ni¿szej jako¶ci w celu
70 zaoszczêdzenia energii baterii
71 - wstrzymywanie indeksowania baz danych (np. up2date) i innych
72 ciê¿kich operacji do czasu pod³±czenia g³ównego ¼ród³a zasilania
73 - zapobieganie uruchomienia screensaverów i wygaszaniu ekranu podczas
74 dzia³ania programów prezentacyjnych i odtwarzaczy filmów
90 rm -rf $RPM_BUILD_ROOT
93 DESTDIR=$RPM_BUILD_ROOT
95 %find_lang %{name} --all-name
98 rm -rf $RPM_BUILD_ROOT
101 %gconf_schema_install gnome-power-manager.schemas
104 %gconf_schema_uninstall gnome-power-manager.schemas
106 %files -f %{name}.lang
107 %defattr(644,root,root,755)
108 %doc AUTHORS ChangeLog NEWS README TODO
109 %attr(755,root,root) %{_bindir}/*
110 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dbus-1/system.d/*
111 %{_datadir}/dbus-1/services/*.service
113 %{_sysconfdir}/gconf/schemas/*.schemas