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.14/%{name}-%{version}.tar.bz2
9 # Source0-md5: c1e392128c8f619390d28d719a0b9109
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-devel >= 0.50
15 BuildRequires: dbus-glib-devel >= 0.50
16 BuildRequires: docbook-dtd41-sgml
17 BuildRequires: docbook-utils
18 BuildRequires: glib2-devel
19 BuildRequires: hal-devel >= 0.5.6
20 BuildRequires: libgnomeui-devel >= 2.10.0
21 BuildRequires: libnotify-devel >= 0.3.2
22 BuildRequires: libtool
23 BuildRequires: libwnck-devel >= 2.10.0
24 BuildRequires: pkgconfig
25 BuildRequires: rpmbuild(macros) >= 1.197
26 BuildRequires: scrollkeeper
27 Obsoletes: gnome-power
28 Requires(post,preun): GConf2
29 Requires(post,postun): scrollkeeper
30 Requires: gnome-session >= 2.13.92
31 Requires: notification-daemon
32 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
35 Uses of GNOME Power Manager infrastructure
36 - A dialogue that warns the user when on UPS power, that automatically
37 begins a kind shutdown when the power gets critically low.
38 - An icon that allows a user to dim the LCD screen with a slider, and
39 does do automatically when going from mains to battery power on a
41 - An icon, that when an additional battery is inserted, updates it's
42 display to show two batteries and recalculates how much time
43 remaining. Would work for wireless mouse and keyboards, UPS's and
45 - A daemon that does a clean shutdown when the battery is critically
46 low or does a soft-suspend when you close the lid on your laptop (or
47 press the "suspend" button on your PC).
48 - Tell Totem to use a codec that does low quality processing to
49 conserve battery power.
50 - Postpone indexing of databases (e.g. up2date) or other heavy
51 operations until on mains power.
52 - Presentation programs / movie players don't want the screensaver
53 starting or screen blanking.
56 Zastosowania infrastruktury zarz±dcy energii GNOME:
57 - okno dialogowe ostrzegaj±ce u¿ytkownika o zasilaniu z UPS-a,
58 automatycznie rozpoczynaj±ce uprzejme zamykanie systemu, kiedy
59 zasilanie jest w stanie krytycznym
60 - ikona umo¿liwiaj±ca u¿ytkownikowi przyciemnienie ekranu LCD przy
61 u¿yciu suwaka i robi to automatycznie przy prze³±czaniu z g³ównego
62 ¼ród³a zasilania na baterie w laptopie
63 - ikona, która po do³o¿eniu dodatkowej baterii uaktualnia wska¼nik,
64 aby pokazywa³ dwie baterie i przelicza ilo¶æ pozosta³ego czasu;
65 powinna dzia³aæ dla bezprzewodowych myszy i klawiatur, UPS-ów i PDA
66 - demon wykonuj±cy czyste zamkniêcie systemu kiedy bateria jest w
67 stanie krytycznym i wykonuj±cy zamro¿enie systemu (soft-suspend)
68 przy zamykaniu pokrywy laptopa (albo naci¶niêciu przycisku
70 - informowanie Totema, aby u¿ywa³ kodeka o ni¿szej jako¶ci w celu
71 zaoszczêdzenia energii baterii
72 - wstrzymywanie indeksowania baz danych (np. up2date) i innych
73 ciê¿kich operacji do czasu pod³±czenia g³ównego ¼ród³a zasilania
74 - zapobieganie uruchomienia screensaverów i wygaszaniu ekranu podczas
75 dzia³ania programów prezentacyjnych i odtwarzaczy filmów
88 --disable-schemas-install \
89 --disable-scrollkeeper
93 rm -rf $RPM_BUILD_ROOT
96 DESTDIR=$RPM_BUILD_ROOT \
97 autostartdir=%{_datadir}/gnome/autostart
99 rm -r $RPM_BUILD_ROOT%{_datadir}/locale/no
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
111 %gconf_schema_uninstall gnome-power-manager.schemas
114 %scrollkeeper_update_postun
116 %files -f %{name}.lang
117 %defattr(644,root,root,755)
118 %doc AUTHORS ChangeLog NEWS README TODO
119 %attr(755,root,root) %{_bindir}/*
120 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dbus-1/system.d/*
121 %{_datadir}/gnome/autostart/gnome-power-manager.desktop
122 %{_datadir}/dbus-1/services/*.service
126 %{_omf_dest_dir}/gnome-power-manager/gnome-power-manager-C.omf
127 %{_sysconfdir}/gconf/schemas/gnome-power-manager.schemas