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.28/%{name}-%{version}.tar.bz2
9 # Source0-md5: 1fb329b8a6e9c63f46df1ea4bf3bb275
10 URL: http://www.gnome.org/projects/gnome-power-manager/
11 BuildRequires: DeviceKit-power-devel >= 008
12 BuildRequires: GConf2-devel >= 2.26.0
13 BuildRequires: autoconf >= 2.60
14 BuildRequires: automake
15 BuildRequires: dbus-glib-devel >= 0.74
16 BuildRequires: docbook-dtd41-sgml
17 BuildRequires: docbook-dtd43-xml
18 BuildRequires: docbook-utils
19 BuildRequires: gettext-devel
20 BuildRequires: gnome-common >= 2.24.0
21 BuildRequires: gnome-doc-utils >= 0.14.0
22 BuildRequires: gnome-keyring-devel >= 2.26.0
23 BuildRequires: gnome-panel-devel >= 2.26.0
24 BuildRequires: gtk+2-devel >= 2:2.18.0
25 BuildRequires: hal-devel >= 0.5.10
26 BuildRequires: intltool >= 0.40.0
27 BuildRequires: libcanberra-gtk-devel >= 0.10
28 BuildRequires: libnotify-devel >= 0.4.4
29 BuildRequires: libtool
30 BuildRequires: libunique-devel >= 0.9.4
31 BuildRequires: libwnck-devel >= 2.26.0
32 BuildRequires: pkgconfig
33 BuildRequires: rpmbuild(find_lang) >= 1.23
34 BuildRequires: rpmbuild(macros) >= 1.311
35 BuildRequires: scrollkeeper
36 BuildRequires: udev-glib-devel
37 Requires(post,postun): gtk+2
38 Requires(post,postun): scrollkeeper
39 Requires(post,preun): GConf2
40 Requires: DeviceKit-power >= 008
41 Requires: dbus(org.freedesktop.Notifications)
42 Requires: gnome-session >= 2.22.0
43 Requires: hicolor-icon-theme
44 Obsoletes: gnome-power
45 # sr@Latn vs. sr@latin
46 Conflicts: glibc-misc < 6:2.7
47 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
50 Uses of GNOME Power Manager infrastructure
51 - A dialogue that warns the user when on UPS power, that automatically
52 begins a kind shutdown when the power gets critically low.
53 - An icon that allows a user to dim the LCD screen with a slider, and
54 does do automatically when going from mains to battery power on a
56 - An icon, that when an additional battery is inserted, updates it's
57 display to show two batteries and recalculates how much time
58 remaining. Would work for wireless mouse and keyboards, UPS's and
60 - A daemon that does a clean shutdown when the battery is critically
61 low or does a soft-suspend when you close the lid on your laptop (or
62 press the "suspend" button on your PC).
63 - Tell Totem to use a codec that does low quality processing to
64 conserve battery power.
65 - Postpone indexing of databases (e.g. up2date) or other heavy
66 operations until on mains power.
67 - Presentation programs / movie players don't want the screensaver
68 starting or screen blanking.
70 %description -l pl.UTF-8
71 Zastosowania infrastruktury zarządcy energii GNOME:
72 - okno dialogowe ostrzegające użytkownika o zasilaniu z UPS-a,
73 automatycznie rozpoczynające uprzejme zamykanie systemu, kiedy
74 zasilanie jest w stanie krytycznym
75 - ikona umożliwiająca użytkownikowi przyciemnienie ekranu LCD przy
76 użyciu suwaka i robi to automatycznie przy przełączaniu z głównego
77 źródła zasilania na baterie w laptopie
78 - ikona, która po dołożeniu dodatkowej baterii uaktualnia wskaźnik,
79 aby pokazywał dwie baterie i przelicza ilość pozostałego czasu;
80 powinna działać dla bezprzewodowych myszy i klawiatur, UPS-ów i PDA
81 - demon wykonujący czyste zamknięcie systemu kiedy bateria jest w
82 stanie krytycznym i wykonujący zamrożenie systemu (soft-suspend) przy
83 zamykaniu pokrywy laptopa (albo naciśnięciu przycisku "suspend")
84 - informowanie Totema, aby używał kodeka o niższej jakości w celu
85 zaoszczędzenia energii baterii
86 - wstrzymywanie indeksowania baz danych (np. up2date) i innych
87 ciężkich operacji do czasu podłączenia głównego źródła zasilania
88 - zapobieganie uruchomienia screensaverów i wygaszaniu ekranu podczas
89 działania programów prezentacyjnych i odtwarzaczy filmów
102 --disable-schemas-install \
104 --disable-scrollkeeper
108 rm -rf $RPM_BUILD_ROOT
111 DESTDIR=$RPM_BUILD_ROOT
113 %find_lang %{name} --with-gnome --with-omf --all-name
116 rm -rf $RPM_BUILD_ROOT
119 %gconf_schema_install gnome-power-manager.schemas
120 %scrollkeeper_update_post
121 %update_icon_cache hicolor
124 %gconf_schema_uninstall gnome-power-manager.schemas
127 %scrollkeeper_update_postun
128 %update_icon_cache hicolor
130 %files -f %{name}.lang
131 %defattr(644,root,root,755)
132 %doc AUTHORS ChangeLog NEWS README TODO
133 %attr(755,root,root) %{_bindir}/gnome-power-bugreport.sh
134 %attr(755,root,root) %{_bindir}/gnome-power-manager
135 %attr(755,root,root) %{_bindir}/gnome-power-preferences
136 %attr(755,root,root) %{_bindir}/gnome-power-statistics
137 %attr(755,root,root) %{_libdir}/gnome-brightness-applet
138 %attr(755,root,root) %{_libdir}/gnome-inhibit-applet
139 %{_libdir}/bonobo/servers/GNOME_BrightnessApplet.server
140 %{_libdir}/bonobo/servers/GNOME_InhibitApplet.server
141 %{_sysconfdir}/xdg/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 %{_sysconfdir}/gconf/schemas/gnome-power-manager.schemas