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