]> git.pld-linux.org Git - packages/gnome-power-manager.git/blame - gnome-power-manager.spec
- updated to 2.28.2
[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
19713cde 4Version: 2.28.2
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
19713cde 9# Source0-md5: 76c00e82ba3ab1cd748dd981dc7af2eb
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
PZ
16BuildRequires: docbook-dtd41-sgml
17BuildRequires: docbook-utils
3e58b895 18BuildRequires: gettext-devel
05931d5c
MB
19BuildRequires: gnome-common >= 2.24.0
20BuildRequires: gnome-doc-utils >= 0.14.0
ded55ac4
MB
21BuildRequires: gnome-keyring-devel >= 2.26.0
22BuildRequires: gnome-panel-devel >= 2.26.0
19713cde 23BuildRequires: gtk+2-devel >= 2:2.18.0
3e58b895 24BuildRequires: hal-devel >= 0.5.10
05931d5c 25BuildRequires: intltool >= 0.40.0
ded55ac4 26BuildRequires: libcanberra-gtk-devel >= 0.10
05931d5c 27BuildRequires: libnotify-devel >= 0.4.4
1c6db289 28BuildRequires: libtool
543470a3 29BuildRequires: libunique-devel >= 0.9.4
ded55ac4 30BuildRequires: libwnck-devel >= 2.26.0
4b45a495 31BuildRequires: pkgconfig
b3084a74 32BuildRequires: rpmbuild(find_lang) >= 1.23
6d8d60f1 33BuildRequires: rpmbuild(macros) >= 1.311
bc190274 34BuildRequires: scrollkeeper
543470a3 35BuildRequires: udev-glib-devel
68e32423 36Requires(post,postun): gtk+2
bc190274 37Requires(post,postun): scrollkeeper
05931d5c 38Requires(post,preun): GConf2
543470a3 39Requires: DeviceKit-power >= 008
7230b856 40Requires: dbus(org.freedesktop.Notifications)
3e58b895 41Requires: gnome-session >= 2.22.0
ded55ac4 42Requires: hicolor-icon-theme
be7520ad 43Obsoletes: gnome-power
ea676186 44# sr@Latn vs. sr@latin
45Conflicts: glibc-misc < 6:2.7
8f1be8ad 46BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
47
48%description
49Uses 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
70Zastosowania 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
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.101343 seconds and 4 git commands to generate.