]> git.pld-linux.org Git - packages/gnome-power-manager.git/blame - gnome-power-manager.spec
- merge from DEVEL
[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
0eb2dea1 4Version: 2.24.0
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
9# Source0-md5: 074d67b0c229ba0f792bcac6dd775d11
5f131a8b 10Patch0: %{name}-desktop.patch
e1eaa80a 11URL: http://www.gnome.org/projects/gnome-power-manager/
3e58b895 12BuildRequires: GConf2-devel >= 2.22.0
4b45a495 13BuildRequires: autoconf >= 2.52
1c6db289 14BuildRequires: automake
3e58b895 15BuildRequires: dbus-glib-devel >= 0.74
a20f602c
PZ
16BuildRequires: docbook-dtd41-sgml
17BuildRequires: docbook-utils
3e58b895 18BuildRequires: gettext-devel
074d5767 19BuildRequires: gnome-common >= 2.20.0
3e58b895
PZ
20BuildRequires: gnome-doc-utils >= 0.12.1
21BuildRequires: gnome-keyring-devel >= 2.22.0
22BuildRequires: gnome-panel-devel >= 2.22.0
23BuildRequires: gtk+2-devel >= 1:2.12.8
25def5aa 24BuildRequires: gstreamer-devel >= 0.10.14
3e58b895
PZ
25BuildRequires: hal-devel >= 0.5.10
26BuildRequires: intltool >= 0.37.0
25def5aa 27BuildRequires: libglade2-devel >= 1:2.6.2
3e58b895 28BuildRequires: libgnomeui-devel >= 2.22.0
be7520ad 29BuildRequires: libnotify-devel >= 0.4.3
1c6db289 30BuildRequires: libtool
3e58b895 31BuildRequires: libwnck-devel >= 2.22.0
4b45a495 32BuildRequires: pkgconfig
b3084a74 33BuildRequires: rpmbuild(find_lang) >= 1.23
6d8d60f1 34BuildRequires: rpmbuild(macros) >= 1.311
bc190274 35BuildRequires: scrollkeeper
b3084a74 36BuildRequires: sed >= 4.0
bafb93b8 37Requires(post,preun): GConf2
68e32423 38Requires(post,postun): gtk+2
ea4ca042 39Requires(post,postun): hicolor-icon-theme
bc190274 40Requires(post,postun): scrollkeeper
3e58b895 41Requires: gnome-session >= 2.22.0
2737b3e0 42Requires: notification-daemon >= 0.3.5
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
1c6db289 93%patch0 -p1
074d5767 94
8f1be8ad 95%build
1c6db289 96%{__libtoolize}
25def5aa 97%{__intltoolize}
1c6db289 98%{__aclocal}
1c6db289 99%{__automake}
3e58b895 100%{__autoheader}
1c6db289 101%{__autoconf}
ea69bb5b 102%configure \
25def5aa 103 --enable-xevents \
bc190274 104 --disable-schemas-install \
8d06b8fc 105 --disable-scrollkeeper
8f1be8ad 106%{__make}
107
108%install
109rm -rf $RPM_BUILD_ROOT
110
111%{__make} install \
bc190274 112 DESTDIR=$RPM_BUILD_ROOT \
113 autostartdir=%{_datadir}/gnome/autostart
8f1be8ad 114
074d5767 115%find_lang %{name} --with-gnome --with-omf --all-name
1c6db289 116
8f1be8ad 117%clean
118rm -rf $RPM_BUILD_ROOT
119
120%post
34b2ae29 121%gconf_schema_install gnome-power-manager.schemas
bc190274 122%scrollkeeper_update_post
6d8d60f1 123%update_icon_cache hicolor
8f1be8ad 124
125%preun
34b2ae29 126%gconf_schema_uninstall gnome-power-manager.schemas
8f1be8ad 127
bc190274 128%postun
129%scrollkeeper_update_postun
6d8d60f1 130%update_icon_cache hicolor
bc190274 131
5f131a8b 132%files -f %{name}.lang
8f1be8ad 133%defattr(644,root,root,755)
134%doc AUTHORS ChangeLog NEWS README TODO
be7520ad
MB
135%attr(755,root,root) %{_bindir}/gnome-power-bugreport.sh
136%attr(755,root,root) %{_bindir}/gnome-power-cmd.sh
68e32423
MB
137%attr(755,root,root) %{_bindir}/gnome-power-manager
138%attr(755,root,root) %{_bindir}/gnome-power-preferences
be7520ad 139%attr(755,root,root) %{_bindir}/gnome-power-statistics
3e58b895
PZ
140%attr(755,root,root) %{_libdir}/gnome-brightness-applet
141%attr(755,root,root) %{_libdir}/gnome-inhibit-applet
be7520ad
MB
142%{_libdir}/bonobo/servers/GNOME_BrightnessApplet.server
143%{_libdir}/bonobo/servers/GNOME_InhibitApplet.server
bc190274 144%{_datadir}/gnome/autostart/gnome-power-manager.desktop
68e32423 145%{_datadir}/dbus-1/services/gnome-power-manager.service
be7520ad
MB
146%{_datadir}/gnome-2.0/ui/GNOME_BrightnessApplet.xml
147%{_datadir}/gnome-2.0/ui/GNOME_InhibitApplet.xml
68e32423
MB
148%{_mandir}/man1/*.1*
149%{_datadir}/gnome-power-manager
150%{_desktopdir}/gnome-power-preferences.desktop
be7520ad 151%{_desktopdir}/gnome-power-statistics.desktop
fc1c9954 152%{_iconsdir}/hicolor/*/*/*
feb3b367 153%{_sysconfdir}/gconf/schemas/gnome-power-manager.schemas
This page took 0.049137 seconds and 4 git commands to generate.