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.15/%{name}-%{version}.tar.bz2
9 # Source0-md5: 0fa269fc8c91b5ff6152b6753b3fa61d
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.62
15 BuildRequires: docbook-dtd41-sgml
16 BuildRequires: docbook-utils
17 BuildRequires: glib2-devel >= 1:2.12.0
18 BuildRequires: gnome-doc-utils
19 BuildRequires: hal-devel >= 0.5.7
20 BuildRequires: libgnomeui-devel >= 2.15.2
21 BuildRequires: libnotify-devel >= 0.4.2
22 BuildRequires: libtool
23 BuildRequires: libwnck-devel >= 2.15.4
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): gtk+2 >= 2:2.10.0
30 Requires(post,postun): scrollkeeper
31 Requires: gnome-session >= 2.15.4
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
88 LDFLAGS="%{rpmldflags} -Wl,--as-needed"
90 --disable-schemas-install \
91 --disable-scrollkeeper \
96 rm -rf $RPM_BUILD_ROOT
99 DESTDIR=$RPM_BUILD_ROOT \
100 autostartdir=%{_datadir}/gnome/autostart
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
110 gtk-update-icon-cache -qf %{_datadir}/icons/hicolor
113 %gconf_schema_uninstall gnome-power-manager.schemas
116 %scrollkeeper_update_postun
117 gtk-update-icon-cache -qf %{_datadir}/icons/hicolor
119 %files -f %{name}.lang
120 %defattr(644,root,root,755)
121 %doc AUTHORS ChangeLog NEWS README TODO
122 %attr(755,root,root) %{_bindir}/*
123 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dbus-1/system.d/*
124 %{_datadir}/gnome/autostart/gnome-power-manager.desktop
125 %{_datadir}/dbus-1/services/*.service
129 %{_iconsdir}/hicolor/*/*/*
130 %dir %{_omf_dest_dir}/gnome-power-manager
131 %{_omf_dest_dir}/gnome-power-manager/gnome-power-manager-C.omf
132 %lang(ru) %{_omf_dest_dir}/gnome-power-manager/gnome-power-manager-ru.omf
133 %{_sysconfdir}/gconf/schemas/gnome-power-manager.schemas