]>
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 |
be7520ad | 4 | Version: 2.18.0 |
6d8d60f1 | 5 | Release: 1 |
8f1be8ad | 6 | License: GPL v2 |
7 | Group: X11/Applications | |
be7520ad MB |
8 | Source0: ftp://ftp.gnome.org/pub/gnome/sources/gnome-power-manager/2.18/%{name}-%{version}.tar.bz2 |
9 | # Source0-md5: 089cfb86af712cacce16ac9617ab2b1c | |
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 |
be7520ad | 14 | BuildRequires: dbus-glib-devel >= 0.73 |
a20f602c PZ |
15 | BuildRequires: docbook-dtd41-sgml |
16 | BuildRequires: docbook-utils | |
be7520ad | 17 | BuildRequires: gnome-common >= 2.12.0 |
12457caf | 18 | BuildRequires: gnome-doc-utils |
be7520ad MB |
19 | BuildRequires: gnome-keyring-devel >= 0.8 |
20 | BuildRequires: gnome-panel-devel >= 2.18.0 | |
21 | BuildRequires: gtk+2-devel >= 1:2.10.10 | |
8d06b8fc | 22 | BuildRequires: hal-devel >= 0.5.7.1 |
be7520ad MB |
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 | |
1c6db289 | 27 | BuildRequires: libtool |
be7520ad | 28 | BuildRequires: libwnck-devel >= 2.18.0 |
4b45a495 | 29 | BuildRequires: pkgconfig |
6d8d60f1 | 30 | BuildRequires: rpmbuild(macros) >= 1.311 |
bc190274 | 31 | BuildRequires: scrollkeeper |
bafb93b8 | 32 | Requires(post,preun): GConf2 |
68e32423 | 33 | Requires(post,postun): gtk+2 |
ea4ca042 | 34 | Requires(post,postun): hicolor-icon-theme |
bc190274 | 35 | Requires(post,postun): scrollkeeper |
be7520ad | 36 | Requires: gnome-session >= 2.18.0 |
2737b3e0 | 37 | Requires: notification-daemon >= 0.3.5 |
be7520ad | 38 | Obsoletes: gnome-power |
8f1be8ad | 39 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
40 | ||
41 | %description | |
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. | |
28180d2b | 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 | |
47 | laptop. | |
8f1be8ad | 48 | - An icon, that when an additional battery is inserted, updates it's |
28180d2b | 49 | display to show two batteries and recalculates how much time |
50 | remaining. Would work for wireless mouse and keyboards, UPS's and | |
51 | PDA's. | |
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. | |
8f1be8ad | 61 | |
609b91e5 JR |
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 | |
8af6a889 | 66 | zasilanie jest w stanie krytycznym |
609b91e5 JR |
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 | |
8af6a889 | 76 | "suspend") |
609b91e5 JR |
77 | - informowanie Totema, aby używał kodeka o niższej jakości w celu |
78 | zaoszczędzenia energii baterii | |
8af6a889 | 79 | - wstrzymywanie indeksowania baz danych (np. up2date) i innych |
609b91e5 JR |
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 | |
8af6a889 | 83 | |
8f1be8ad | 84 | %prep |
74149ab2 | 85 | %setup -q |
1c6db289 | 86 | %patch0 -p1 |
8f1be8ad | 87 | |
88 | %build | |
1c6db289 | 89 | %{__libtoolize} |
90 | %{__aclocal} | |
91 | %{__autoheader} | |
92 | %{__automake} | |
93 | %{__autoconf} | |
ea69bb5b | 94 | %configure \ |
bc190274 | 95 | --disable-schemas-install \ |
8d06b8fc | 96 | --disable-scrollkeeper |
8f1be8ad | 97 | %{__make} |
98 | ||
99 | %install | |
100 | rm -rf $RPM_BUILD_ROOT | |
101 | ||
102 | %{__make} install \ | |
bc190274 | 103 | DESTDIR=$RPM_BUILD_ROOT \ |
104 | autostartdir=%{_datadir}/gnome/autostart | |
8f1be8ad | 105 | |
bc190274 | 106 | %find_lang %{name} --all-name --with-gnome |
1c6db289 | 107 | |
8f1be8ad | 108 | %clean |
109 | rm -rf $RPM_BUILD_ROOT | |
110 | ||
111 | %post | |
34b2ae29 | 112 | %gconf_schema_install gnome-power-manager.schemas |
bc190274 | 113 | %scrollkeeper_update_post |
6d8d60f1 | 114 | %update_icon_cache hicolor |
8f1be8ad | 115 | |
116 | %preun | |
34b2ae29 | 117 | %gconf_schema_uninstall gnome-power-manager.schemas |
8f1be8ad | 118 | |
bc190274 | 119 | %postun |
120 | %scrollkeeper_update_postun | |
6d8d60f1 | 121 | %update_icon_cache hicolor |
bc190274 | 122 | |
5f131a8b | 123 | %files -f %{name}.lang |
8f1be8ad | 124 | %defattr(644,root,root,755) |
125 | %doc AUTHORS ChangeLog NEWS README TODO | |
be7520ad MB |
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 | |
68e32423 MB |
130 | %attr(755,root,root) %{_bindir}/gnome-power-manager |
131 | %attr(755,root,root) %{_bindir}/gnome-power-preferences | |
be7520ad | 132 | %attr(755,root,root) %{_bindir}/gnome-power-statistics |
68e32423 | 133 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dbus-1/system.d/gnome-power-manager.conf |
be7520ad MB |
134 | %{_libdir}/bonobo/servers/GNOME_BrightnessApplet.server |
135 | %{_libdir}/bonobo/servers/GNOME_InhibitApplet.server | |
bc190274 | 136 | %{_datadir}/gnome/autostart/gnome-power-manager.desktop |
68e32423 | 137 | %{_datadir}/dbus-1/services/gnome-power-manager.service |
be7520ad MB |
138 | %{_datadir}/gnome-2.0/ui/GNOME_BrightnessApplet.xml |
139 | %{_datadir}/gnome-2.0/ui/GNOME_InhibitApplet.xml | |
68e32423 MB |
140 | %{_mandir}/man1/*.1* |
141 | %{_datadir}/gnome-power-manager | |
142 | %{_desktopdir}/gnome-power-preferences.desktop | |
be7520ad | 143 | %{_desktopdir}/gnome-power-statistics.desktop |
fc1c9954 | 144 | %{_iconsdir}/hicolor/*/*/* |
145 | %dir %{_omf_dest_dir}/gnome-power-manager | |
bc190274 | 146 | %{_omf_dest_dir}/gnome-power-manager/gnome-power-manager-C.omf |
be7520ad MB |
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 | |
fdd192a3 | 151 | %lang(ru) %{_omf_dest_dir}/gnome-power-manager/gnome-power-manager-ru.omf |
8d06b8fc | 152 | %lang(sv) %{_omf_dest_dir}/gnome-power-manager/gnome-power-manager-sv.omf |
feb3b367 | 153 | %{_sysconfdir}/gconf/schemas/gnome-power-manager.schemas |