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