1 Summary: GNOME Power Manager
2 Summary(pl.UTF-8): 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.18/%{name}-%{version}.tar.bz2
9 # Source0-md5: 8cc94654608f649214aa3a0c9b792fe5
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.73
15 BuildRequires: docbook-dtd41-sgml
16 BuildRequires: docbook-utils
17 BuildRequires: gnome-common >= 2.12.0
18 BuildRequires: gnome-doc-utils
19 BuildRequires: gnome-keyring-devel >= 0.8
20 BuildRequires: gnome-panel-devel >= 2.18.0
21 BuildRequires: gtk+2-devel >= 1:2.10.10
22 BuildRequires: hal-devel >= 0.5.7.1
23 BuildRequires: intltool >= 0.35.5
24 BuildRequires: libglade2-devel >= 2.6.0
25 BuildRequires: libgnomeui-devel >= 2.18.0
26 BuildRequires: libnotify-devel >= 0.4.3
27 BuildRequires: libtool
28 BuildRequires: libwnck-devel >= 2.18.0
29 BuildRequires: pkgconfig
30 BuildRequires: rpmbuild(macros) >= 1.311
31 BuildRequires: scrollkeeper
32 Requires(post,preun): GConf2
33 Requires(post,postun): gtk+2
34 Requires(post,postun): hicolor-icon-theme
35 Requires(post,postun): scrollkeeper
36 Requires: gnome-session >= 2.18.0
37 Requires: notification-daemon >= 0.3.5
38 Obsoletes: gnome-power
39 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
42 Uses of GNOME Power Manager infrastructure
43 - A dialogue that warns the user when on UPS power, that automatically
44 begins a kind shutdown when the power gets critically low.
45 - An icon that allows a user to dim the LCD screen with a slider, and
46 does do automatically when going from mains to battery power on a
48 - An icon, that when an additional battery is inserted, updates it's
49 display to show two batteries and recalculates how much time
50 remaining. Would work for wireless mouse and keyboards, UPS's and
52 - A daemon that does a clean shutdown when the battery is critically
53 low or does a soft-suspend when you close the lid on your laptop (or
54 press the "suspend" button on your PC).
55 - Tell Totem to use a codec that does low quality processing to
56 conserve battery power.
57 - Postpone indexing of databases (e.g. up2date) or other heavy
58 operations until on mains power.
59 - Presentation programs / movie players don't want the screensaver
60 starting or screen blanking.
62 %description -l pl.UTF-8
63 Zastosowania infrastruktury zarządcy energii GNOME:
64 - okno dialogowe ostrzegające użytkownika o zasilaniu z UPS-a,
65 automatycznie rozpoczynające uprzejme zamykanie systemu, kiedy
66 zasilanie jest w stanie krytycznym
67 - ikona umożliwiająca użytkownikowi przyciemnienie ekranu LCD przy
68 użyciu suwaka i robi to automatycznie przy przełączaniu z głównego
69 źródła zasilania na baterie w laptopie
70 - ikona, która po dołożeniu dodatkowej baterii uaktualnia wskaźnik,
71 aby pokazywał dwie baterie i przelicza ilość pozostałego czasu;
72 powinna działać dla bezprzewodowych myszy i klawiatur, UPS-ów i PDA
73 - demon wykonujący czyste zamknięcie systemu kiedy bateria jest w
74 stanie krytycznym i wykonujący zamrożenie systemu (soft-suspend)
75 przy zamykaniu pokrywy laptopa (albo naciśnięciu przycisku
77 - informowanie Totema, aby używał kodeka o niższej jakości w celu
78 zaoszczędzenia energii baterii
79 - wstrzymywanie indeksowania baz danych (np. up2date) i innych
80 ciężkich operacji do czasu podłączenia głównego źródła zasilania
81 - zapobieganie uruchomienia screensaverów i wygaszaniu ekranu podczas
82 działania programów prezentacyjnych i odtwarzaczy filmów
95 --disable-schemas-install \
96 --disable-scrollkeeper
100 rm -rf $RPM_BUILD_ROOT
103 DESTDIR=$RPM_BUILD_ROOT \
104 autostartdir=%{_datadir}/gnome/autostart
106 %find_lang %{name} --all-name --with-gnome
109 rm -rf $RPM_BUILD_ROOT
112 %gconf_schema_install gnome-power-manager.schemas
113 %scrollkeeper_update_post
114 %update_icon_cache hicolor
117 %gconf_schema_uninstall gnome-power-manager.schemas
120 %scrollkeeper_update_postun
121 %update_icon_cache hicolor
123 %files -f %{name}.lang
124 %defattr(644,root,root,755)
125 %doc AUTHORS ChangeLog NEWS README TODO
126 %attr(755,root,root) %{_bindir}/gnome-brightness-applet
127 %attr(755,root,root) %{_bindir}/gnome-inhibit-applet
128 %attr(755,root,root) %{_bindir}/gnome-power-bugreport.sh
129 %attr(755,root,root) %{_bindir}/gnome-power-cmd.sh
130 %attr(755,root,root) %{_bindir}/gnome-power-manager
131 %attr(755,root,root) %{_bindir}/gnome-power-preferences
132 %attr(755,root,root) %{_bindir}/gnome-power-statistics
133 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dbus-1/system.d/gnome-power-manager.conf
134 %{_libdir}/bonobo/servers/GNOME_BrightnessApplet.server
135 %{_libdir}/bonobo/servers/GNOME_InhibitApplet.server
136 %{_datadir}/gnome/autostart/gnome-power-manager.desktop
137 %{_datadir}/dbus-1/services/gnome-power-manager.service
138 %{_datadir}/gnome-2.0/ui/GNOME_BrightnessApplet.xml
139 %{_datadir}/gnome-2.0/ui/GNOME_InhibitApplet.xml
141 %{_datadir}/gnome-power-manager
142 %{_desktopdir}/gnome-power-preferences.desktop
143 %{_desktopdir}/gnome-power-statistics.desktop
144 %{_iconsdir}/hicolor/*/*/*
145 %dir %{_omf_dest_dir}/gnome-power-manager
146 %{_omf_dest_dir}/gnome-power-manager/gnome-power-manager-C.omf
147 %lang(es) %{_omf_dest_dir}/gnome-power-manager/gnome-power-manager-es.omf
148 %lang(fr) %{_omf_dest_dir}/gnome-power-manager/gnome-power-manager-fr.omf
149 %lang(hu) %{_omf_dest_dir}/gnome-power-manager/gnome-power-manager-hu.omf
150 %lang(pa) %{_omf_dest_dir}/gnome-power-manager/gnome-power-manager-pa.omf
151 %lang(ru) %{_omf_dest_dir}/gnome-power-manager/gnome-power-manager-ru.omf
152 %lang(sv) %{_omf_dest_dir}/gnome-power-manager/gnome-power-manager-sv.omf
153 %{_sysconfdir}/gconf/schemas/gnome-power-manager.schemas