]> git.pld-linux.org Git - packages/gnome-power-manager.git/blame - gnome-power-manager.spec
- updated to 2.28.3
[packages/gnome-power-manager.git] / gnome-power-manager.spec
CommitLineData
8f1be8ad 1Summary: GNOME Power Manager
ebfb48be 2Summary(pl.UTF-8): Zarządca energii dla GNOME
e98fe81b 3Name: gnome-power-manager
6b85e2ec 4Version: 2.28.3
e50fcf81 5Release: 1
4ee363c4 6License: GPL v2+
8f1be8ad 7Group: X11/Applications
543470a3 8Source0: http://ftp.gnome.org/pub/GNOME/sources/gnome-power-manager/2.28/%{name}-%{version}.tar.bz2
6b85e2ec 9# Source0-md5: 1fb329b8a6e9c63f46df1ea4bf3bb275
e1eaa80a 10URL: http://www.gnome.org/projects/gnome-power-manager/
543470a3 11BuildRequires: DeviceKit-power-devel >= 008
ded55ac4 12BuildRequires: GConf2-devel >= 2.26.0
ded55ac4 13BuildRequires: autoconf >= 2.60
1c6db289 14BuildRequires: automake
3e58b895 15BuildRequires: dbus-glib-devel >= 0.74
a20f602c 16BuildRequires: docbook-dtd41-sgml
2ba5b714 17BuildRequires: docbook-dtd43-xml
a20f602c 18BuildRequires: docbook-utils
3e58b895 19BuildRequires: gettext-devel
05931d5c
MB
20BuildRequires: gnome-common >= 2.24.0
21BuildRequires: gnome-doc-utils >= 0.14.0
ded55ac4
MB
22BuildRequires: gnome-keyring-devel >= 2.26.0
23BuildRequires: gnome-panel-devel >= 2.26.0
19713cde 24BuildRequires: gtk+2-devel >= 2:2.18.0
3e58b895 25BuildRequires: hal-devel >= 0.5.10
05931d5c 26BuildRequires: intltool >= 0.40.0
ded55ac4 27BuildRequires: libcanberra-gtk-devel >= 0.10
05931d5c 28BuildRequires: libnotify-devel >= 0.4.4
1c6db289 29BuildRequires: libtool
543470a3 30BuildRequires: libunique-devel >= 0.9.4
ded55ac4 31BuildRequires: libwnck-devel >= 2.26.0
4b45a495 32BuildRequires: pkgconfig
b3084a74 33BuildRequires: rpmbuild(find_lang) >= 1.23
6d8d60f1 34BuildRequires: rpmbuild(macros) >= 1.311
bc190274 35BuildRequires: scrollkeeper
543470a3 36BuildRequires: udev-glib-devel
68e32423 37Requires(post,postun): gtk+2
bc190274 38Requires(post,postun): scrollkeeper
05931d5c 39Requires(post,preun): GConf2
543470a3 40Requires: DeviceKit-power >= 008
7230b856 41Requires: dbus(org.freedesktop.Notifications)
3e58b895 42Requires: gnome-session >= 2.22.0
ded55ac4 43Requires: hicolor-icon-theme
be7520ad 44Obsoletes: gnome-power
ea676186 45# sr@Latn vs. sr@latin
46Conflicts: glibc-misc < 6:2.7
8f1be8ad 47BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
48
49%description
50Uses of GNOME Power Manager infrastructure
51- A dialogue that warns the user when on UPS power, that automatically
52 begins a kind shutdown when the power gets critically low.
28180d2b 53- An icon that allows a user to dim the LCD screen with a slider, and
54 does do automatically when going from mains to battery power on a
55 laptop.
8f1be8ad 56- An icon, that when an additional battery is inserted, updates it's
28180d2b 57 display to show two batteries and recalculates how much time
58 remaining. Would work for wireless mouse and keyboards, UPS's and
59 PDA's.
60- A daemon that does a clean shutdown when the battery is critically
61 low or does a soft-suspend when you close the lid on your laptop (or
62 press the "suspend" button on your PC).
63- Tell Totem to use a codec that does low quality processing to
64 conserve battery power.
65- Postpone indexing of databases (e.g. up2date) or other heavy
66 operations until on mains power.
67- Presentation programs / movie players don't want the screensaver
68 starting or screen blanking.
8f1be8ad 69
609b91e5
JR
70%description -l pl.UTF-8
71Zastosowania infrastruktury zarządcy energii GNOME:
72- okno dialogowe ostrzegające użytkownika o zasilaniu z UPS-a,
73 automatycznie rozpoczynające uprzejme zamykanie systemu, kiedy
8af6a889 74 zasilanie jest w stanie krytycznym
609b91e5
JR
75- ikona umożliwiająca użytkownikowi przyciemnienie ekranu LCD przy
76 użyciu suwaka i robi to automatycznie przy przełączaniu z głównego
77 źródła zasilania na baterie w laptopie
78- ikona, która po dołożeniu dodatkowej baterii uaktualnia wskaźnik,
79 aby pokazywał dwie baterie i przelicza ilość pozostałego czasu;
80 powinna działać dla bezprzewodowych myszy i klawiatur, UPS-ów i PDA
81- demon wykonujący czyste zamknięcie systemu kiedy bateria jest w
2ba5b714 82 stanie krytycznym i wykonujący zamrożenie systemu (soft-suspend) przy
83 zamykaniu pokrywy laptopa (albo naciśnięciu przycisku "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
108rm -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
116rm -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
This page took 0.098843 seconds and 4 git commands to generate.