]>
Commit | Line | Data |
---|---|---|
8f1be8ad | 1 | Summary: GNOME Power Manager |
ebfb48be | 2 | Summary(pl.UTF-8): Zarządca energii dla GNOME |
e98fe81b | 3 | Name: gnome-power-manager |
68e32423 | 4 | Version: 2.16.3 |
6d8d60f1 | 5 | Release: 1 |
8f1be8ad | 6 | License: GPL v2 |
7 | Group: X11/Applications | |
9bbc48b7 | 8 | Source0: ftp://ftp.gnome.org/pub/gnome/sources/gnome-power-manager/2.16/%{name}-%{version}.tar.bz2 |
68e32423 | 9 | # Source0-md5: 48166c6aaf41f2225090517ae655d05d |
5f131a8b | 10 | Patch0: %{name}-desktop.patch |
e1eaa80a | 11 | URL: http://www.gnome.org/projects/gnome-power-manager/ |
4b45a495 | 12 | BuildRequires: autoconf >= 2.52 |
1c6db289 | 13 | BuildRequires: automake |
8d06b8fc | 14 | BuildRequires: dbus-glib-devel >= 0.71 |
a20f602c PZ |
15 | BuildRequires: docbook-dtd41-sgml |
16 | BuildRequires: docbook-utils | |
68e32423 | 17 | BuildRequires: glib2-devel >= 1:2.12.9 |
12457caf | 18 | BuildRequires: gnome-doc-utils |
8d06b8fc | 19 | BuildRequires: hal-devel >= 0.5.7.1 |
ea4ca042 | 20 | BuildRequires: libgnomeui-devel >= 2.16.1 |
fdd192a3 | 21 | BuildRequires: libnotify-devel >= 0.4.2 |
1c6db289 | 22 | BuildRequires: libtool |
68e32423 | 23 | BuildRequires: libwnck-devel >= 2.16.3 |
4b45a495 | 24 | BuildRequires: pkgconfig |
6d8d60f1 | 25 | BuildRequires: rpmbuild(macros) >= 1.311 |
bc190274 | 26 | BuildRequires: scrollkeeper |
27 | Obsoletes: gnome-power | |
bafb93b8 | 28 | Requires(post,preun): GConf2 |
68e32423 | 29 | Requires(post,postun): gtk+2 |
ea4ca042 | 30 | Requires(post,postun): hicolor-icon-theme |
bc190274 | 31 | Requires(post,postun): scrollkeeper |
68e32423 | 32 | Requires: gnome-session >= 2.16.3 |
2737b3e0 | 33 | Requires: notification-daemon >= 0.3.5 |
8f1be8ad | 34 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
35 | ||
36 | %description | |
37 | Uses of GNOME Power Manager infrastructure | |
38 | - A dialogue that warns the user when on UPS power, that automatically | |
39 | begins a kind shutdown when the power gets critically low. | |
28180d2b | 40 | - An icon that allows a user to dim the LCD screen with a slider, and |
41 | does do automatically when going from mains to battery power on a | |
42 | laptop. | |
8f1be8ad | 43 | - An icon, that when an additional battery is inserted, updates it's |
28180d2b | 44 | display to show two batteries and recalculates how much time |
45 | remaining. Would work for wireless mouse and keyboards, UPS's and | |
46 | PDA's. | |
47 | - A daemon that does a clean shutdown when the battery is critically | |
48 | low or does a soft-suspend when you close the lid on your laptop (or | |
49 | press the "suspend" button on your PC). | |
50 | - Tell Totem to use a codec that does low quality processing to | |
51 | conserve battery power. | |
52 | - Postpone indexing of databases (e.g. up2date) or other heavy | |
53 | operations until on mains power. | |
54 | - Presentation programs / movie players don't want the screensaver | |
55 | starting or screen blanking. | |
8f1be8ad | 56 | |
609b91e5 JR |
57 | %description -l pl.UTF-8 |
58 | Zastosowania infrastruktury zarządcy energii GNOME: | |
59 | - okno dialogowe ostrzegające użytkownika o zasilaniu z UPS-a, | |
60 | automatycznie rozpoczynające uprzejme zamykanie systemu, kiedy | |
8af6a889 | 61 | zasilanie jest w stanie krytycznym |
609b91e5 JR |
62 | - ikona umożliwiająca użytkownikowi przyciemnienie ekranu LCD przy |
63 | użyciu suwaka i robi to automatycznie przy przełączaniu z głównego | |
64 | źródła zasilania na baterie w laptopie | |
65 | - ikona, która po dołożeniu dodatkowej baterii uaktualnia wskaźnik, | |
66 | aby pokazywał dwie baterie i przelicza ilość pozostałego czasu; | |
67 | powinna działać dla bezprzewodowych myszy i klawiatur, UPS-ów i PDA | |
68 | - demon wykonujący czyste zamknięcie systemu kiedy bateria jest w | |
69 | stanie krytycznym i wykonujący zamrożenie systemu (soft-suspend) | |
70 | przy zamykaniu pokrywy laptopa (albo naciśnięciu przycisku | |
8af6a889 | 71 | "suspend") |
609b91e5 JR |
72 | - informowanie Totema, aby używał kodeka o niższej jakości w celu |
73 | zaoszczędzenia energii baterii | |
8af6a889 | 74 | - wstrzymywanie indeksowania baz danych (np. up2date) i innych |
609b91e5 JR |
75 | ciężkich operacji do czasu podłączenia głównego źródła zasilania |
76 | - zapobieganie uruchomienia screensaverów i wygaszaniu ekranu podczas | |
77 | działania programów prezentacyjnych i odtwarzaczy filmów | |
8af6a889 | 78 | |
8f1be8ad | 79 | %prep |
74149ab2 | 80 | %setup -q |
1c6db289 | 81 | %patch0 -p1 |
8f1be8ad | 82 | |
83 | %build | |
1c6db289 | 84 | %{__libtoolize} |
85 | %{__aclocal} | |
86 | %{__autoheader} | |
87 | %{__automake} | |
88 | %{__autoconf} | |
ea69bb5b | 89 | %configure \ |
bc190274 | 90 | --disable-schemas-install \ |
8d06b8fc | 91 | --disable-scrollkeeper |
8f1be8ad | 92 | %{__make} |
93 | ||
94 | %install | |
95 | rm -rf $RPM_BUILD_ROOT | |
96 | ||
97 | %{__make} install \ | |
bc190274 | 98 | DESTDIR=$RPM_BUILD_ROOT \ |
99 | autostartdir=%{_datadir}/gnome/autostart | |
8f1be8ad | 100 | |
bc190274 | 101 | %find_lang %{name} --all-name --with-gnome |
1c6db289 | 102 | |
8f1be8ad | 103 | %clean |
104 | rm -rf $RPM_BUILD_ROOT | |
105 | ||
106 | %post | |
34b2ae29 | 107 | %gconf_schema_install gnome-power-manager.schemas |
bc190274 | 108 | %scrollkeeper_update_post |
6d8d60f1 | 109 | %update_icon_cache hicolor |
8f1be8ad | 110 | |
111 | %preun | |
34b2ae29 | 112 | %gconf_schema_uninstall gnome-power-manager.schemas |
8f1be8ad | 113 | |
bc190274 | 114 | %postun |
115 | %scrollkeeper_update_postun | |
6d8d60f1 | 116 | %update_icon_cache hicolor |
bc190274 | 117 | |
5f131a8b | 118 | %files -f %{name}.lang |
8f1be8ad | 119 | %defattr(644,root,root,755) |
120 | %doc AUTHORS ChangeLog NEWS README TODO | |
68e32423 MB |
121 | %attr(755,root,root) %{_bindir}/gnome-power-inhibit-test |
122 | %attr(755,root,root) %{_bindir}/gnome-power-manager | |
123 | %attr(755,root,root) %{_bindir}/gnome-power-preferences | |
124 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dbus-1/system.d/gnome-power-manager.conf | |
bc190274 | 125 | %{_datadir}/gnome/autostart/gnome-power-manager.desktop |
68e32423 MB |
126 | %{_datadir}/dbus-1/services/gnome-power-manager.service |
127 | %{_mandir}/man1/*.1* | |
128 | %{_datadir}/gnome-power-manager | |
129 | %{_desktopdir}/gnome-power-preferences.desktop | |
fc1c9954 | 130 | %{_iconsdir}/hicolor/*/*/* |
131 | %dir %{_omf_dest_dir}/gnome-power-manager | |
bc190274 | 132 | %{_omf_dest_dir}/gnome-power-manager/gnome-power-manager-C.omf |
fdd192a3 | 133 | %lang(ru) %{_omf_dest_dir}/gnome-power-manager/gnome-power-manager-ru.omf |
8d06b8fc | 134 | %lang(sv) %{_omf_dest_dir}/gnome-power-manager/gnome-power-manager-sv.omf |
feb3b367 | 135 | %{_sysconfdir}/gconf/schemas/gnome-power-manager.schemas |