]> git.pld-linux.org Git - packages/gnome-power-manager.git/blob - gnome-power-manager.spec
80d1dbee4bbaac6acc8fdac7236f756a5b07aea2
[packages/gnome-power-manager.git] / gnome-power-manager.spec
1 Summary:        GNOME Power Manager
2 Summary(pl):    Zarz±dca energii dla GNOME
3 Name:           gnome-power-manager
4 Version:        2.14.3
5 Release:        3
6 License:        GPL v2
7 Group:          X11/Applications
8 Source0:        ftp://ftp.gnome.org/pub/gnome/sources/gnome-power-manager/2.14/%{name}-%{version}.tar.bz2
9 # Source0-md5:  431448b680b47df68a42f233cc2699fe
10 Patch0:         %{name}-desktop.patch
11 URL:            http://www.gnome.org/projects/gnome-power-manager/
12 BuildRequires:  autoconf >= 2.52
13 BuildRequires:  automake
14 BuildRequires:  dbus-devel >= 0.60
15 BuildRequires:  dbus-glib-devel >= 0.60
16 BuildRequires:  docbook-dtd41-sgml
17 BuildRequires:  docbook-utils
18 BuildRequires:  glib2-devel
19 BuildRequires:  hal-devel >= 0.5.6
20 BuildRequires:  libgnomeui-devel >= 2.14.0
21 BuildRequires:  libnotify-devel >= 0.4.0
22 BuildRequires:  libtool
23 BuildRequires:  libwnck-devel >= 2.14.0
24 BuildRequires:  pkgconfig
25 BuildRequires:  rpmbuild(macros) >= 1.197
26 BuildRequires:  scrollkeeper
27 Obsoletes:      gnome-power
28 Requires(post,preun):   GConf2
29 Requires(post,postun):  scrollkeeper
30 Requires:       dbus-X11 >= 0.60
31 Requires:       gnome-session >= 2.14.0
32 Requires:       notification-daemon >= 0.3.5
33 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
34
35 %description
36 Uses of GNOME Power Manager infrastructure
37 - A dialogue that warns the user when on UPS power, that automatically
38   begins a kind shutdown when the power gets critically low.
39 - An icon that allows a user to dim the LCD screen with a slider, and
40   does do automatically when going from mains to battery power on a
41   laptop.
42 - An icon, that when an additional battery is inserted, updates it's
43   display to show two batteries and recalculates how much time
44   remaining. Would work for wireless mouse and keyboards, UPS's and
45   PDA's.
46 - A daemon that does a clean shutdown when the battery is critically
47   low or does a soft-suspend when you close the lid on your laptop (or
48   press the "suspend" button on your PC).
49 - Tell Totem to use a codec that does low quality processing to
50   conserve battery power.
51 - Postpone indexing of databases (e.g. up2date) or other heavy
52   operations until on mains power.
53 - Presentation programs / movie players don't want the screensaver
54   starting or screen blanking.
55
56 %description -l pl
57 Zastosowania infrastruktury zarz±dcy energii GNOME:
58 - okno dialogowe ostrzegaj±ce u¿ytkownika o zasilaniu z UPS-a,
59   automatycznie rozpoczynaj±ce uprzejme zamykanie systemu, kiedy
60   zasilanie jest w stanie krytycznym
61 - ikona umo¿liwiaj±ca u¿ytkownikowi przyciemnienie ekranu LCD przy
62   u¿yciu suwaka i robi to automatycznie przy prze³±czaniu z g³ównego
63   ¼ród³a zasilania na baterie w laptopie
64 - ikona, która po do³o¿eniu dodatkowej baterii uaktualnia wska¼nik,
65   aby pokazywa³ dwie baterie i przelicza ilo¶æ pozosta³ego czasu;
66   powinna dzia³aæ dla bezprzewodowych myszy i klawiatur, UPS-ów i PDA
67 - demon wykonuj±cy czyste zamkniêcie systemu kiedy bateria jest w
68   stanie krytycznym i wykonuj±cy zamro¿enie systemu (soft-suspend)
69   przy zamykaniu pokrywy laptopa (albo naci¶niêciu przycisku
70   "suspend")
71 - informowanie Totema, aby u¿ywa³ kodeka o ni¿szej jako¶ci w celu
72   zaoszczêdzenia energii baterii
73 - wstrzymywanie indeksowania baz danych (np. up2date) i innych
74   ciê¿kich operacji do czasu pod³±czenia g³ównego ¼ród³a zasilania
75 - zapobieganie uruchomienia screensaverów i wygaszaniu ekranu podczas
76   dzia³ania programów prezentacyjnych i odtwarzaczy filmów
77
78 %prep
79 %setup -q
80 %patch0 -p1
81
82 %build
83 %{__libtoolize}
84 %{__aclocal}
85 %{__autoheader}
86 %{__automake}
87 %{__autoconf}
88 %configure \
89         --disable-schemas-install \
90         --disable-scrollkeeper
91 %{__make}
92
93 %install
94 rm -rf $RPM_BUILD_ROOT
95
96 %{__make} install \
97         DESTDIR=$RPM_BUILD_ROOT \
98         autostartdir=%{_datadir}/gnome/autostart
99
100 rm -r $RPM_BUILD_ROOT%{_datadir}/locale/no
101
102 %find_lang %{name} --all-name --with-gnome
103
104 %clean
105 rm -rf $RPM_BUILD_ROOT
106
107 %post
108 %gconf_schema_install gnome-power-manager.schemas
109 %scrollkeeper_update_post
110
111 %preun
112 %gconf_schema_uninstall gnome-power-manager.schemas
113
114 %postun
115 %scrollkeeper_update_postun
116
117 %files -f %{name}.lang
118 %defattr(644,root,root,755)
119 %doc AUTHORS ChangeLog NEWS README TODO
120 %attr(755,root,root) %{_bindir}/*
121 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dbus-1/system.d/*
122 %{_datadir}/gnome/autostart/gnome-power-manager.desktop
123 %{_datadir}/dbus-1/services/*.service
124 %{_mandir}/man1/*
125 %{_datadir}/%{name}
126 %{_desktopdir}/*
127 %{_omf_dest_dir}/gnome-power-manager/gnome-power-manager-C.omf
128 %{_sysconfdir}/gconf/schemas/gnome-power-manager.schemas
This page took 0.060568 seconds and 2 git commands to generate.