]>
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 |
25def5aa | 4 | Version: 2.20.0 |
1c427b77 | 5 | Release: 1 |
4ee363c4 | 6 | License: GPL v2+ |
8f1be8ad | 7 | Group: X11/Applications |
25def5aa PZ |
8 | Source0: http://ftp.gnome.org/pub/GNOME/sources/gnome-power-manager/2.20/%{name}-%{version}.tar.bz2 |
9 | # Source0-md5: 881f012dcbdff38a85603393cb9d39bb | |
5f131a8b | 10 | Patch0: %{name}-desktop.patch |
25def5aa | 11 | Patch1: %{name}-popt.patch |
e1eaa80a | 12 | URL: http://www.gnome.org/projects/gnome-power-manager/ |
4b45a495 | 13 | BuildRequires: autoconf >= 2.52 |
1c6db289 | 14 | BuildRequires: automake |
be7520ad | 15 | BuildRequires: dbus-glib-devel >= 0.73 |
a20f602c PZ |
16 | BuildRequires: docbook-dtd41-sgml |
17 | BuildRequires: docbook-utils | |
1c427b77 | 18 | BuildRequires: gnome-common >= 2.18.0 |
12457caf | 19 | BuildRequires: gnome-doc-utils |
25def5aa PZ |
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 | |
be7520ad | 29 | BuildRequires: libnotify-devel >= 0.4.3 |
1c6db289 | 30 | BuildRequires: libtool |
25def5aa | 31 | BuildRequires: libwnck-devel >= 2.20.0 |
4b45a495 | 32 | BuildRequires: pkgconfig |
6d8d60f1 | 33 | BuildRequires: rpmbuild(macros) >= 1.311 |
bc190274 | 34 | BuildRequires: scrollkeeper |
bafb93b8 | 35 | Requires(post,preun): GConf2 |
68e32423 | 36 | Requires(post,postun): gtk+2 |
ea4ca042 | 37 | Requires(post,postun): hicolor-icon-theme |
bc190274 | 38 | Requires(post,postun): scrollkeeper |
25def5aa | 39 | Requires: gnome-session >= 2.19.90 |
2737b3e0 | 40 | Requires: notification-daemon >= 0.3.5 |
be7520ad | 41 | Obsoletes: gnome-power |
8f1be8ad | 42 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
43 | ||
44 | %description | |
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. | |
28180d2b | 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 | |
50 | laptop. | |
8f1be8ad | 51 | - An icon, that when an additional battery is inserted, updates it's |
28180d2b | 52 | display to show two batteries and recalculates how much time |
53 | remaining. Would work for wireless mouse and keyboards, UPS's and | |
54 | PDA's. | |
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. | |
8f1be8ad | 64 | |
609b91e5 JR |
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 | |
8af6a889 | 69 | zasilanie jest w stanie krytycznym |
609b91e5 JR |
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 | |
8af6a889 | 79 | "suspend") |
609b91e5 JR |
80 | - informowanie Totema, aby używał kodeka o niższej jakości w celu |
81 | zaoszczędzenia energii baterii | |
8af6a889 | 82 | - wstrzymywanie indeksowania baz danych (np. up2date) i innych |
609b91e5 JR |
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 | |
8af6a889 | 86 | |
8f1be8ad | 87 | %prep |
74149ab2 | 88 | %setup -q |
1c6db289 | 89 | %patch0 -p1 |
25def5aa | 90 | %patch1 -p1 |
8f1be8ad | 91 | |
92 | %build | |
1c6db289 | 93 | %{__libtoolize} |
25def5aa | 94 | %{__intltoolize} |
1c6db289 | 95 | %{__aclocal} |
96 | %{__autoheader} | |
97 | %{__automake} | |
98 | %{__autoconf} | |
ea69bb5b | 99 | %configure \ |
25def5aa | 100 | --enable-xevents \ |
bc190274 | 101 | --disable-schemas-install \ |
8d06b8fc | 102 | --disable-scrollkeeper |
8f1be8ad | 103 | %{__make} |
104 | ||
105 | %install | |
106 | rm -rf $RPM_BUILD_ROOT | |
107 | ||
108 | %{__make} install \ | |
bc190274 | 109 | DESTDIR=$RPM_BUILD_ROOT \ |
110 | autostartdir=%{_datadir}/gnome/autostart | |
8f1be8ad | 111 | |
bc190274 | 112 | %find_lang %{name} --all-name --with-gnome |
1c6db289 | 113 | |
8f1be8ad | 114 | %clean |
115 | rm -rf $RPM_BUILD_ROOT | |
116 | ||
117 | %post | |
34b2ae29 | 118 | %gconf_schema_install gnome-power-manager.schemas |
bc190274 | 119 | %scrollkeeper_update_post |
6d8d60f1 | 120 | %update_icon_cache hicolor |
8f1be8ad | 121 | |
122 | %preun | |
34b2ae29 | 123 | %gconf_schema_uninstall gnome-power-manager.schemas |
8f1be8ad | 124 | |
bc190274 | 125 | %postun |
126 | %scrollkeeper_update_postun | |
6d8d60f1 | 127 | %update_icon_cache hicolor |
bc190274 | 128 | |
5f131a8b | 129 | %files -f %{name}.lang |
8f1be8ad | 130 | %defattr(644,root,root,755) |
131 | %doc AUTHORS ChangeLog NEWS README TODO | |
be7520ad MB |
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 | |
68e32423 MB |
136 | %attr(755,root,root) %{_bindir}/gnome-power-manager |
137 | %attr(755,root,root) %{_bindir}/gnome-power-preferences | |
be7520ad | 138 | %attr(755,root,root) %{_bindir}/gnome-power-statistics |
be7520ad MB |
139 | %{_libdir}/bonobo/servers/GNOME_BrightnessApplet.server |
140 | %{_libdir}/bonobo/servers/GNOME_InhibitApplet.server | |
bc190274 | 141 | %{_datadir}/gnome/autostart/gnome-power-manager.desktop |
68e32423 | 142 | %{_datadir}/dbus-1/services/gnome-power-manager.service |
be7520ad MB |
143 | %{_datadir}/gnome-2.0/ui/GNOME_BrightnessApplet.xml |
144 | %{_datadir}/gnome-2.0/ui/GNOME_InhibitApplet.xml | |
68e32423 MB |
145 | %{_mandir}/man1/*.1* |
146 | %{_datadir}/gnome-power-manager | |
147 | %{_desktopdir}/gnome-power-preferences.desktop | |
be7520ad | 148 | %{_desktopdir}/gnome-power-statistics.desktop |
fc1c9954 | 149 | %{_iconsdir}/hicolor/*/*/* |
150 | %dir %{_omf_dest_dir}/gnome-power-manager | |
bc190274 | 151 | %{_omf_dest_dir}/gnome-power-manager/gnome-power-manager-C.omf |
25def5aa | 152 | %lang(ca) %{_omf_dest_dir}/gnome-power-manager/gnome-power-manager-ca.omf |
be7520ad MB |
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 | |
25def5aa PZ |
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 | |
be7520ad | 158 | %lang(pa) %{_omf_dest_dir}/gnome-power-manager/gnome-power-manager-pa.omf |
fdd192a3 | 159 | %lang(ru) %{_omf_dest_dir}/gnome-power-manager/gnome-power-manager-ru.omf |
8d06b8fc | 160 | %lang(sv) %{_omf_dest_dir}/gnome-power-manager/gnome-power-manager-sv.omf |
feb3b367 | 161 | %{_sysconfdir}/gconf/schemas/gnome-power-manager.schemas |