]>
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 |
19713cde | 4 | Version: 2.28.2 |
e50fcf81 | 5 | Release: 1 |
4ee363c4 | 6 | License: GPL v2+ |
8f1be8ad | 7 | Group: X11/Applications |
543470a3 | 8 | Source0: http://ftp.gnome.org/pub/GNOME/sources/gnome-power-manager/2.28/%{name}-%{version}.tar.bz2 |
19713cde | 9 | # Source0-md5: 76c00e82ba3ab1cd748dd981dc7af2eb |
e1eaa80a | 10 | URL: http://www.gnome.org/projects/gnome-power-manager/ |
543470a3 | 11 | BuildRequires: DeviceKit-power-devel >= 008 |
ded55ac4 | 12 | BuildRequires: GConf2-devel >= 2.26.0 |
ded55ac4 | 13 | BuildRequires: autoconf >= 2.60 |
1c6db289 | 14 | BuildRequires: automake |
3e58b895 | 15 | BuildRequires: dbus-glib-devel >= 0.74 |
a20f602c PZ |
16 | BuildRequires: docbook-dtd41-sgml |
17 | BuildRequires: docbook-utils | |
3e58b895 | 18 | BuildRequires: gettext-devel |
05931d5c MB |
19 | BuildRequires: gnome-common >= 2.24.0 |
20 | BuildRequires: gnome-doc-utils >= 0.14.0 | |
ded55ac4 MB |
21 | BuildRequires: gnome-keyring-devel >= 2.26.0 |
22 | BuildRequires: gnome-panel-devel >= 2.26.0 | |
19713cde | 23 | BuildRequires: gtk+2-devel >= 2:2.18.0 |
3e58b895 | 24 | BuildRequires: hal-devel >= 0.5.10 |
05931d5c | 25 | BuildRequires: intltool >= 0.40.0 |
ded55ac4 | 26 | BuildRequires: libcanberra-gtk-devel >= 0.10 |
05931d5c | 27 | BuildRequires: libnotify-devel >= 0.4.4 |
1c6db289 | 28 | BuildRequires: libtool |
543470a3 | 29 | BuildRequires: libunique-devel >= 0.9.4 |
ded55ac4 | 30 | BuildRequires: libwnck-devel >= 2.26.0 |
4b45a495 | 31 | BuildRequires: pkgconfig |
b3084a74 | 32 | BuildRequires: rpmbuild(find_lang) >= 1.23 |
6d8d60f1 | 33 | BuildRequires: rpmbuild(macros) >= 1.311 |
bc190274 | 34 | BuildRequires: scrollkeeper |
543470a3 | 35 | BuildRequires: udev-glib-devel |
68e32423 | 36 | Requires(post,postun): gtk+2 |
bc190274 | 37 | Requires(post,postun): scrollkeeper |
05931d5c | 38 | Requires(post,preun): GConf2 |
543470a3 | 39 | Requires: DeviceKit-power >= 008 |
7230b856 | 40 | Requires: dbus(org.freedesktop.Notifications) |
3e58b895 | 41 | Requires: gnome-session >= 2.22.0 |
ded55ac4 | 42 | Requires: hicolor-icon-theme |
be7520ad | 43 | Obsoletes: gnome-power |
ea676186 | 44 | # sr@Latn vs. sr@latin |
45 | Conflicts: glibc-misc < 6:2.7 | |
8f1be8ad | 46 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
47 | ||
48 | %description | |
49 | Uses of GNOME Power Manager infrastructure | |
50 | - A dialogue that warns the user when on UPS power, that automatically | |
51 | begins a kind shutdown when the power gets critically low. | |
28180d2b | 52 | - An icon that allows a user to dim the LCD screen with a slider, and |
53 | does do automatically when going from mains to battery power on a | |
54 | laptop. | |
8f1be8ad | 55 | - An icon, that when an additional battery is inserted, updates it's |
28180d2b | 56 | display to show two batteries and recalculates how much time |
57 | remaining. Would work for wireless mouse and keyboards, UPS's and | |
58 | PDA's. | |
59 | - A daemon that does a clean shutdown when the battery is critically | |
60 | low or does a soft-suspend when you close the lid on your laptop (or | |
61 | press the "suspend" button on your PC). | |
62 | - Tell Totem to use a codec that does low quality processing to | |
63 | conserve battery power. | |
64 | - Postpone indexing of databases (e.g. up2date) or other heavy | |
65 | operations until on mains power. | |
66 | - Presentation programs / movie players don't want the screensaver | |
67 | starting or screen blanking. | |
8f1be8ad | 68 | |
609b91e5 JR |
69 | %description -l pl.UTF-8 |
70 | Zastosowania infrastruktury zarządcy energii GNOME: | |
71 | - okno dialogowe ostrzegające użytkownika o zasilaniu z UPS-a, | |
72 | automatycznie rozpoczynające uprzejme zamykanie systemu, kiedy | |
8af6a889 | 73 | zasilanie jest w stanie krytycznym |
609b91e5 JR |
74 | - ikona umożliwiająca użytkownikowi przyciemnienie ekranu LCD przy |
75 | użyciu suwaka i robi to automatycznie przy przełączaniu z głównego | |
76 | źródła zasilania na baterie w laptopie | |
77 | - ikona, która po dołożeniu dodatkowej baterii uaktualnia wskaźnik, | |
78 | aby pokazywał dwie baterie i przelicza ilość pozostałego czasu; | |
79 | powinna działać dla bezprzewodowych myszy i klawiatur, UPS-ów i PDA | |
80 | - demon wykonujący czyste zamknięcie systemu kiedy bateria jest w | |
81 | stanie krytycznym i wykonujący zamrożenie systemu (soft-suspend) | |
82 | przy zamykaniu pokrywy laptopa (albo naciśnięciu przycisku | |
8af6a889 | 83 | "suspend") |
609b91e5 JR |
84 | - informowanie Totema, aby używał kodeka o niższej jakości w celu |
85 | zaoszczędzenia energii baterii | |
8af6a889 | 86 | - wstrzymywanie indeksowania baz danych (np. up2date) i innych |
609b91e5 JR |
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 | |
8af6a889 | 90 | |
8f1be8ad | 91 | %prep |
74149ab2 | 92 | %setup -q |
074d5767 | 93 | |
8f1be8ad | 94 | %build |
1c6db289 | 95 | %{__libtoolize} |
25def5aa | 96 | %{__intltoolize} |
1c6db289 | 97 | %{__aclocal} |
1c6db289 | 98 | %{__automake} |
3e58b895 | 99 | %{__autoheader} |
1c6db289 | 100 | %{__autoconf} |
ea69bb5b | 101 | %configure \ |
bc190274 | 102 | --disable-schemas-install \ |
543470a3 | 103 | --enable-policykit \ |
8d06b8fc | 104 | --disable-scrollkeeper |
8f1be8ad | 105 | %{__make} |
106 | ||
107 | %install | |
108 | rm -rf $RPM_BUILD_ROOT | |
109 | ||
110 | %{__make} install \ | |
ded55ac4 | 111 | DESTDIR=$RPM_BUILD_ROOT |
8f1be8ad | 112 | |
074d5767 | 113 | %find_lang %{name} --with-gnome --with-omf --all-name |
1c6db289 | 114 | |
8f1be8ad | 115 | %clean |
116 | rm -rf $RPM_BUILD_ROOT | |
117 | ||
118 | %post | |
34b2ae29 | 119 | %gconf_schema_install gnome-power-manager.schemas |
bc190274 | 120 | %scrollkeeper_update_post |
6d8d60f1 | 121 | %update_icon_cache hicolor |
8f1be8ad | 122 | |
123 | %preun | |
34b2ae29 | 124 | %gconf_schema_uninstall gnome-power-manager.schemas |
8f1be8ad | 125 | |
bc190274 | 126 | %postun |
127 | %scrollkeeper_update_postun | |
6d8d60f1 | 128 | %update_icon_cache hicolor |
bc190274 | 129 | |
5f131a8b | 130 | %files -f %{name}.lang |
8f1be8ad | 131 | %defattr(644,root,root,755) |
132 | %doc AUTHORS ChangeLog NEWS README TODO | |
be7520ad | 133 | %attr(755,root,root) %{_bindir}/gnome-power-bugreport.sh |
68e32423 MB |
134 | %attr(755,root,root) %{_bindir}/gnome-power-manager |
135 | %attr(755,root,root) %{_bindir}/gnome-power-preferences | |
be7520ad | 136 | %attr(755,root,root) %{_bindir}/gnome-power-statistics |
3e58b895 PZ |
137 | %attr(755,root,root) %{_libdir}/gnome-brightness-applet |
138 | %attr(755,root,root) %{_libdir}/gnome-inhibit-applet | |
be7520ad MB |
139 | %{_libdir}/bonobo/servers/GNOME_BrightnessApplet.server |
140 | %{_libdir}/bonobo/servers/GNOME_InhibitApplet.server | |
ded55ac4 | 141 | %{_sysconfdir}/xdg/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/*/*/* |
feb3b367 | 150 | %{_sysconfdir}/gconf/schemas/gnome-power-manager.schemas |