]> git.pld-linux.org Git - packages/gnome-power-manager.git/blame - gnome-power-manager.spec
- updated to 2.24.4
[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
a5ce72a3 4Version: 2.24.4
074d5767 5Release: 1
4ee363c4 6License: GPL v2+
8f1be8ad 7Group: X11/Applications
0eb2dea1 8Source0: http://ftp.gnome.org/pub/GNOME/sources/gnome-power-manager/2.24/%{name}-%{version}.tar.bz2
a5ce72a3 9# Source0-md5: bad8bba644d31f88d92a11d8880feada
5f131a8b 10Patch0: %{name}-desktop.patch
e1eaa80a 11URL: http://www.gnome.org/projects/gnome-power-manager/
05931d5c 12BuildRequires: GConf2-devel >= 2.24.0
8e2ef050 13BuildRequires: PolicyKit-gnome-devel
4b45a495 14BuildRequires: autoconf >= 2.52
1c6db289 15BuildRequires: automake
3e58b895 16BuildRequires: dbus-glib-devel >= 0.74
a20f602c
PZ
17BuildRequires: docbook-dtd41-sgml
18BuildRequires: docbook-utils
3e58b895 19BuildRequires: gettext-devel
05931d5c
MB
20BuildRequires: gnome-common >= 2.24.0
21BuildRequires: gnome-doc-utils >= 0.14.0
22BuildRequires: gnome-keyring-devel >= 2.24.0
23BuildRequires: gnome-panel-devel >= 2.24.0
25def5aa 24BuildRequires: gstreamer-devel >= 0.10.14
05931d5c 25BuildRequires: gtk+2-devel >= 1:2.12.8
3e58b895 26BuildRequires: hal-devel >= 0.5.10
05931d5c 27BuildRequires: intltool >= 0.40.0
25def5aa 28BuildRequires: libglade2-devel >= 1:2.6.2
05931d5c
MB
29BuildRequires: libgnomeui-devel >= 2.24.0
30BuildRequires: libnotify-devel >= 0.4.4
1c6db289 31BuildRequires: libtool
05931d5c 32BuildRequires: libwnck-devel >= 2.24.0
4b45a495 33BuildRequires: pkgconfig
b3084a74 34BuildRequires: rpmbuild(find_lang) >= 1.23
6d8d60f1 35BuildRequires: rpmbuild(macros) >= 1.311
bc190274 36BuildRequires: scrollkeeper
05931d5c 37BuildRequires: unique-devel >= 0.9.4
68e32423 38Requires(post,postun): gtk+2
ea4ca042 39Requires(post,postun): hicolor-icon-theme
bc190274 40Requires(post,postun): scrollkeeper
05931d5c 41Requires(post,preun): GConf2
3e58b895 42Requires: gnome-session >= 2.22.0
2737b3e0 43Requires: notification-daemon >= 0.3.5
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
82 stanie krytycznym i wykonujący zamrożenie systemu (soft-suspend)
83 przy zamykaniu pokrywy laptopa (albo naciśnięciu przycisku
8af6a889 84 "suspend")
609b91e5
JR
85- informowanie Totema, aby używał kodeka o niższej jakości w celu
86 zaoszczędzenia energii baterii
8af6a889 87- wstrzymywanie indeksowania baz danych (np. up2date) i innych
609b91e5
JR
88 ciężkich operacji do czasu podłączenia głównego źródła zasilania
89- zapobieganie uruchomienia screensaverów i wygaszaniu ekranu podczas
90 działania programów prezentacyjnych i odtwarzaczy filmów
8af6a889 91
8f1be8ad 92%prep
74149ab2 93%setup -q
1c6db289 94%patch0 -p1
074d5767 95
8f1be8ad 96%build
1c6db289 97%{__libtoolize}
25def5aa 98%{__intltoolize}
1c6db289 99%{__aclocal}
1c6db289 100%{__automake}
3e58b895 101%{__autoheader}
1c6db289 102%{__autoconf}
ea69bb5b 103%configure \
25def5aa 104 --enable-xevents \
bc190274 105 --disable-schemas-install \
8d06b8fc 106 --disable-scrollkeeper
8f1be8ad 107%{__make}
108
109%install
110rm -rf $RPM_BUILD_ROOT
111
112%{__make} install \
bc190274 113 DESTDIR=$RPM_BUILD_ROOT \
114 autostartdir=%{_datadir}/gnome/autostart
8f1be8ad 115
074d5767 116%find_lang %{name} --with-gnome --with-omf --all-name
1c6db289 117
8f1be8ad 118%clean
119rm -rf $RPM_BUILD_ROOT
120
121%post
34b2ae29 122%gconf_schema_install gnome-power-manager.schemas
bc190274 123%scrollkeeper_update_post
6d8d60f1 124%update_icon_cache hicolor
8f1be8ad 125
126%preun
34b2ae29 127%gconf_schema_uninstall gnome-power-manager.schemas
8f1be8ad 128
bc190274 129%postun
130%scrollkeeper_update_postun
6d8d60f1 131%update_icon_cache hicolor
bc190274 132
5f131a8b 133%files -f %{name}.lang
8f1be8ad 134%defattr(644,root,root,755)
135%doc AUTHORS ChangeLog NEWS README TODO
be7520ad
MB
136%attr(755,root,root) %{_bindir}/gnome-power-bugreport.sh
137%attr(755,root,root) %{_bindir}/gnome-power-cmd.sh
68e32423
MB
138%attr(755,root,root) %{_bindir}/gnome-power-manager
139%attr(755,root,root) %{_bindir}/gnome-power-preferences
be7520ad 140%attr(755,root,root) %{_bindir}/gnome-power-statistics
3e58b895
PZ
141%attr(755,root,root) %{_libdir}/gnome-brightness-applet
142%attr(755,root,root) %{_libdir}/gnome-inhibit-applet
be7520ad
MB
143%{_libdir}/bonobo/servers/GNOME_BrightnessApplet.server
144%{_libdir}/bonobo/servers/GNOME_InhibitApplet.server
bc190274 145%{_datadir}/gnome/autostart/gnome-power-manager.desktop
68e32423 146%{_datadir}/dbus-1/services/gnome-power-manager.service
be7520ad
MB
147%{_datadir}/gnome-2.0/ui/GNOME_BrightnessApplet.xml
148%{_datadir}/gnome-2.0/ui/GNOME_InhibitApplet.xml
68e32423
MB
149%{_mandir}/man1/*.1*
150%{_datadir}/gnome-power-manager
151%{_desktopdir}/gnome-power-preferences.desktop
be7520ad 152%{_desktopdir}/gnome-power-statistics.desktop
fc1c9954 153%{_iconsdir}/hicolor/*/*/*
feb3b367 154%{_sysconfdir}/gconf/schemas/gnome-power-manager.schemas
This page took 0.096374 seconds and 4 git commands to generate.