# # TODO: # - provide a PLD package for libnotify for nice information popups # Summary: GNOME Power Manager Summary(pl): Zarządca energii dla GNOME Name: gnome-power-manager Version: 0.2.8.1 Release: 1 License: GPL v2 Group: X11/Applications Source0: http://dl.sourceforge.net/gnome-power/%{name}-%{version}.tar.gz # Source0-md5: 259d914cc12f2094ead9f43d42a2be9a Patch0: %{name}-desktop.patch URL: http://gnome-power.sourceforge.net/ BuildRequires: autoconf >= 2.52 BuildRequires: automake BuildRequires: dbus-devel >= 0.35.2 BuildRequires: dbus-glib-devel >= 0.35.2 BuildRequires: docbook-dtd41-sgml BuildRequires: docbook-utils BuildRequires: glib2-devel BuildRequires: hal-devel >= 0.5.4 BuildRequires: libgnomeui-devel >= 2.10.0 BuildRequires: libnotify-devel >= 0.2.1 BuildRequires: libtool BuildRequires: libwnck-devel >= 2.10.0 BuildRequires: pkgconfig BuildRequires: rpmbuild(macros) >= 1.197 Obsoletes: gnome-power Requires(post,preun): GConf2 Requires: notification-daemon BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description Uses of GNOME Power Manager infrastructure - A dialogue that warns the user when on UPS power, that automatically begins a kind shutdown when the power gets critically low. - An icon that allows a user to dim the LCD screen with a slider, and does do automatically when going from mains to battery power on a laptop. - An icon, that when an additional battery is inserted, updates it's display to show two batteries and recalculates how much time remaining. Would work for wireless mouse and keyboards, UPS's and PDA's. - A daemon that does a clean shutdown when the battery is critically low or does a soft-suspend when you close the lid on your laptop (or press the "suspend" button on your PC). - Tell Totem to use a codec that does low quality processing to conserve battery power. - Postpone indexing of databases (e.g. up2date) or other heavy operations until on mains power. - Presentation programs / movie players don't want the screensaver starting or screen blanking. %description -l pl Zastosowania infrastruktury zarządcy energii GNOME: - okno dialogowe ostrzegające użytkownika o zasilaniu z UPS-a, automatycznie rozpoczynające uprzejme zamykanie systemu, kiedy zasilanie jest w stanie krytycznym - ikona umożliwiająca użytkownikowi przyciemnienie ekranu LCD przy użyciu suwaka i robi to automatycznie przy przełączaniu z głównego źródła zasilania na baterie w laptopie - ikona, która po dołożeniu dodatkowej baterii uaktualnia wskaźnik, aby pokazywał dwie baterie i przelicza ilość pozostałego czasu; powinna działać dla bezprzewodowych myszy i klawiatur, UPS-ów i PDA - demon wykonujący czyste zamknięcie systemu kiedy bateria jest w stanie krytycznym i wykonujący zamrożenie systemu (soft-suspend) przy zamykaniu pokrywy laptopa (albo naciśnięciu przycisku "suspend") - informowanie Totema, aby używał kodeka o niższej jakości w celu zaoszczędzenia energii baterii - wstrzymywanie indeksowania baz danych (np. up2date) i innych ciężkich operacji do czasu podłączenia głównego źródła zasilania - zapobieganie uruchomienia screensaverów i wygaszaniu ekranu podczas działania programów prezentacyjnych i odtwarzaczy filmów %prep %setup -q %patch0 -p1 %build %{__libtoolize} %{__aclocal} %{__autoheader} %{__automake} %{__autoconf} %configure %{__make} %install rm -rf $RPM_BUILD_ROOT %{__make} install \ DESTDIR=$RPM_BUILD_ROOT %find_lang %{name} --all-name %clean rm -rf $RPM_BUILD_ROOT %post %gconf_schema_install gnome-power-manager.schemas %preun %gconf_schema_uninstall gnome-power-manager.schemas %files -f %{name}.lang %defattr(644,root,root,755) %doc AUTHORS ChangeLog NEWS README TODO %attr(755,root,root) %{_bindir}/* %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dbus-1/system.d/* %{_datadir}/dbus-1/services/*.service %{_mandir}/man1/* %{_datadir}/%{name} %{_desktopdir}/* %{_sysconfdir}/gconf/schemas/gnome-power-manager.schemas