11631
|
1 |
#
|
|
2 |
# spec file for package gnome-power-manager
|
|
3 |
#
|
11844
|
4 |
# Copyright (c) 2008 Sun Microsystems, Inc.
|
|
5 |
# This file and all modifications and additions to the pristine
|
|
6 |
# package are under the same license as the package itself.
|
11631
|
7 |
#
|
16434
|
8 |
%define owner jedy
|
11844
|
9 |
#
|
|
10 |
|
17852
|
11 |
%define OSR LFI#105446 (gnome Exec. summary):n/a
|
16429
|
12 |
|
14402
|
13 |
%include l10n.inc
|
11631
|
14 |
Name: gnome-power-manager
|
|
15 |
License: GPL
|
|
16 |
Group: X11/Applications
|
14647
|
17 |
#### DO NOT BUMP MODULE TO 2.24.x to 2.25.x AS IT DEPENDS ON DEVICEKIT-POWER
|
|
18 |
#### NOT YET READY FOR SOLARIS
|
15268
|
19 |
Version: 2.24.4
|
11631
|
20 |
Release: 2
|
|
21 |
Distribution: Java Desktop System
|
17864
|
22 |
Vendor: Gnome Community
|
11631
|
23 |
Summary: GNOME Power Manager
|
13729
|
24 |
Source0: http://ftp.gnome.org/pub/gnome/sources/gnome-power-manager/2.24/%{name}-%{version}.tar.bz2
|
12031
|
25 |
%if %build_l10n
|
12578
|
26 |
Source1: l10n-configure.sh
|
14402
|
27 |
Source2: %{name}-po-sun-%{po_sun_version}.tar.bz2
|
12031
|
28 |
%endif
|
14522
|
29 |
# date:2008-02-14 owner:jedy type:feature
|
12349
|
30 |
Patch1: gnome-power-manager-01-build.diff
|
14522
|
31 |
# date:2008-06-06 owner:jedy type:feature
|
12608
|
32 |
Patch2: gnome-power-manager-02-icon_plicy.diff
|
14522
|
33 |
# date:2008-02-14 owner:jedy type:feature
|
12349
|
34 |
Patch3: gnome-power-manager-03-disable-sleep-configration.diff
|
14522
|
35 |
# date:2008-04-06 owner:jedy type:feature
|
12608
|
36 |
Patch4: gnome-power-manager-04-authorization.diff
|
14522
|
37 |
# date:2008-06-06 owner:jedy type:feature
|
12608
|
38 |
Patch5: gnome-power-manager-05-disable-suspend-button.diff
|
14522
|
39 |
# date:2008-02-14 bugzilla:507391 owner:jedy type:bug
|
12259
|
40 |
Patch6: gnome-power-manager-06-interactive-dialog.diff
|
14522
|
41 |
# date:2008-02-14 owner:jedy type:feature
|
11632
|
42 |
Patch7: gnome-power-manager-07-screensaver.diff
|
14522
|
43 |
# date:2008-09-19 bugster:6750001 owner:jedy type:feature
|
13603
|
44 |
Patch8: gnome-power-manager-08-cpufreq.diff
|
13533
|
45 |
# date:2008-09-11 owner:jedy type:branding
|
|
46 |
Patch9: gnome-power-manager-09-menu-entry.diff
|
15783
|
47 |
# date:2009-03-24 owner:jedy type:branding
|
17124
|
48 |
Patch10: gnome-power-manager-10-no-dpms-sync.diff
|
15783
|
49 |
# date:2009-05-05 owner:jedy type:branding
|
19961
|
50 |
Patch11: gnome-power-manager-11-no-profile.diff
|
16521
|
51 |
# date:2009-09-10 doo:10224 owner:jedy type:bug
|
19961
|
52 |
Patch12: gnome-power-manager-12-help.diff
|
17643
|
53 |
# date:2010-03-08 owner:jedy type:branding
|
19961
|
54 |
Patch13: gnome-power-manager-13-session-management.diff
|
11631
|
55 |
BuildRequires: autoconf >= 2.52
|
|
56 |
BuildRequires: automake
|
|
57 |
BuildRequires: dbus-glib-devel >= 0.73
|
|
58 |
BuildRequires: docbook-dtd41-sgml
|
|
59 |
BuildRequires: docbook-utils
|
|
60 |
BuildRequires: gnome-common >= 2.12.0
|
|
61 |
BuildRequires: gnome-doc-utils
|
|
62 |
BuildRequires: gnome-keyring-devel >= 0.8
|
|
63 |
BuildRequires: gnome-panel-devel >= 2.18.0
|
|
64 |
BuildRequires: gtk+2-devel >= 1:2.10.10
|
|
65 |
BuildRequires: hal-devel >= 0.5.7.1
|
|
66 |
BuildRequires: intltool >= 0.35.5
|
|
67 |
BuildRequires: libglade2-devel >= 2.6.0
|
|
68 |
BuildRequires: libgnomeui-devel >= 2.18.0
|
|
69 |
BuildRequires: libnotify-devel >= 0.4.3
|
|
70 |
BuildRequires: libtool
|
|
71 |
BuildRequires: libwnck-devel >= 2.18.0
|
|
72 |
BuildRequires: pkgconfig
|
|
73 |
BuildRequires: rpmbuild(macros) >= 1.311
|
|
74 |
BuildRequires: scrollkeeper
|
|
75 |
Requires: GConf2
|
|
76 |
Requires: gtk+2
|
|
77 |
Requires: hicolor-icon-theme
|
|
78 |
Requires: scrollkeeper
|
|
79 |
Requires: gnome-session >= 2.18.0
|
|
80 |
Requires: notification-daemon >= 0.3.5
|
|
81 |
Obsoletes: gnome-power
|
|
82 |
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
|
|
83 |
|
|
84 |
%description
|
|
85 |
Uses of GNOME Power Manager infrastructure
|
|
86 |
- A dialogue that warns the user when on UPS power, that automatically
|
|
87 |
begins a kind shutdown when the power gets critically low.
|
|
88 |
- An icon that allows a user to dim the LCD screen with a slider, and
|
|
89 |
does do automatically when going from mains to battery power on a
|
|
90 |
laptop.
|
|
91 |
- An icon, that when an additional battery is inserted, updates it's
|
|
92 |
display to show two batteries and recalculates how much time
|
|
93 |
remaining. Would work for wireless mouse and keyboards, UPS's and
|
|
94 |
PDA's.
|
|
95 |
- A daemon that does a clean shutdown when the battery is critically
|
|
96 |
low or does a soft-suspend when you close the lid on your laptop (or
|
|
97 |
press the "suspend" button on your PC).
|
|
98 |
- Tell Totem to use a codec that does low quality processing to
|
|
99 |
conserve battery power.
|
|
100 |
- Postpone indexing of databases (e.g. up2date) or other heavy
|
|
101 |
operations until on mains power.
|
|
102 |
- Presentation programs / movie players don't want the screensaver
|
|
103 |
starting or screen blanking.
|
|
104 |
|
|
105 |
%prep
|
|
106 |
%setup -q
|
14402
|
107 |
%if %build_l10n
|
|
108 |
bzcat %SOURCE2 | tar xf -
|
|
109 |
cd po-sun; make; cd ..
|
|
110 |
%endif
|
|
111 |
|
11631
|
112 |
%patch1 -p1
|
11632
|
113 |
%patch2 -p0
|
12578
|
114 |
%patch3 -p0
|
13068
|
115 |
%patch4 -p0
|
12578
|
116 |
%patch5 -p0
|
11631
|
117 |
%patch6 -p0
|
|
118 |
%patch7 -p0
|
13603
|
119 |
%patch8 -p0
|
13279
|
120 |
%patch9 -p1
|
15268
|
121 |
%patch10 -p1
|
15483
|
122 |
%patch11 -p1
|
15664
|
123 |
%patch12 -p1
|
15720
|
124 |
%patch13 -p1
|
11631
|
125 |
|
|
126 |
%build
|
|
127 |
%ifos linux
|
|
128 |
if [ -x /usr/bin/getconf ]; then
|
|
129 |
CPUS=`getconf _NPROCESSORS_ONLN`
|
|
130 |
fi
|
|
131 |
%else
|
|
132 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
|
|
133 |
%endif
|
|
134 |
if test "x$CPUS" = "x" -o $CPUS = 0; then
|
|
135 |
CPUS=1
|
|
136 |
fi
|
|
137 |
|
11678
|
138 |
export CFLAGS="%optflags"
|
|
139 |
export LDFLAGS="%_ldflags"
|
12565
|
140 |
intltoolize --force
|
15268
|
141 |
libtoolize --copy --force
|
12565
|
142 |
aclocal $ACLOCAL_FLAGS -I .
|
12031
|
143 |
|
|
144 |
%if %build_l10n
|
|
145 |
bash -x %SOURCE1 --enable-copyright
|
|
146 |
%endif
|
|
147 |
|
11631
|
148 |
autoheader
|
12565
|
149 |
automake -a -c -f
|
11631
|
150 |
autoconf
|
|
151 |
./configure --prefix=%{_prefix} \
|
12041
|
152 |
--enable-policykit \
|
11631
|
153 |
--libexecdir=%{_libexecdir} \
|
|
154 |
--sysconfdir=%{_sysconfdir} \
|
|
155 |
--mandir=%{_mandir} \
|
|
156 |
--datadir=%{_datadir} \
|
11680
|
157 |
--infodir=%{_datadir}/info \
|
|
158 |
--disable-scrollkeeper
|
11631
|
159 |
|
|
160 |
make -j$CPUS
|
|
161 |
|
|
162 |
%install
|
|
163 |
rm -rf $RPM_BUILD_ROOT
|
12343
|
164 |
export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
|
|
165 |
make install DESTDIR=$RPM_BUILD_ROOT
|
11631
|
166 |
|
|
167 |
%clean
|
|
168 |
rm -rf $RPM_BUILD_ROOT
|
|
169 |
|
|
170 |
%post
|
|
171 |
%gconf_schema_install gnome-power-manager.schemas
|
|
172 |
%preun
|
|
173 |
%gconf_schema_uninstall gnome-power-manager.schemas
|
|
174 |
|
|
175 |
%postun
|
|
176 |
%scrollkeeper_update_postun
|
|
177 |
|
|
178 |
%files
|
|
179 |
%defattr(-,root,root)
|
|
180 |
%{_libdir}/bonobo/servers/GNOME_BrightnessApplet.server
|
|
181 |
%{_libdir}/bonobo/servers/GNOME_InhibitApplet.server
|
|
182 |
%{_datadir}/gnome/autostart/gnome-power-manager.desktop
|
|
183 |
%{_datadir}/dbus-1/services/gnome-power-manager.service
|
|
184 |
%{_datadir}/gnome-2.0/ui/GNOME_BrightnessApplet.xml
|
|
185 |
%{_datadir}/gnome-2.0/ui/GNOME_InhibitApplet.xml
|
|
186 |
%{_mandir}/man1/*.1*
|
|
187 |
%{_datadir}/gnome-power-manager/*
|
|
188 |
%{_sysconfdir}/gconf/schemas/gnome-power-manager.schemas
|
|
189 |
|
|
190 |
|
|
191 |
%changelog
|
19961
|
192 |
* Tue Aug 03 2010 - [email protected]
|
|
193 |
- Removed a redundant patch gnome-power-manager-11-autostart.diff.
|
17643
|
194 |
* Mon Mar 08 2009 - [email protected]
|
|
195 |
- Add 14-session-management.diff.
|
17124
|
196 |
* Fri Dec 04 2009 - [email protected]
|
|
197 |
- Remove patch gnome-power-manager-10-no-console-kit.diff since
|
|
198 |
ConsoleKit is integrating into build 130.
|
16521
|
199 |
* Thu Sep 10 2009 - [email protected]
|
|
200 |
- Add 14-help.diff.
|
15783
|
201 |
* Wed May 20 2009 - [email protected]
|
|
202 |
- Change patch 11 and 13 to branding patches.
|
15720
|
203 |
* Tue May 05 2009 - [email protected]
|
|
204 |
- Add 13-no-profile.diff.
|
15664
|
205 |
* Wed Apr 22 2009 - [email protected]
|
|
206 |
- Add 12-autorestart.diff.
|
|
207 |
* Tue Mar 24 2009 - [email protected]
|
15483
|
208 |
- Add 11-no-dpms-sync.diff.
|
15664
|
209 |
* Mon Feb 11 2009 - [email protected]
|
15268
|
210 |
- Bump to 2.24.4.
|
|
211 |
- Remove 10-brightness-progressbar.diff. The bug has been fixed in the
|
|
212 |
community.
|
|
213 |
- Add 10-no-console-kit.diff to disable console kit on Solaris.
|
15664
|
214 |
* Mon Jan 19 2009 - [email protected]
|
14929
|
215 |
- Bump to 2.24.3.
|
|
216 |
- Remove patch 11-no-daemon.diff.
|
14694
|
217 |
* Wed Dec 03 2008 - [email protected]
|
|
218 |
- Bump to 2.24.2.
|
14675
|
219 |
* Fri Nov 28 2008 - [email protected]
|
|
220 |
- Bump to 2.24.1.
|
14647
|
221 |
* Tue Nov 25 2008 - [email protected]
|
|
222 |
- Add "do not bump" comments.
|
14522
|
223 |
* Wed Oct 29 2008 - [email protected]
|
|
224 |
- Update patch owner.
|
14469
|
225 |
* Thu Oct 16 2008 - [email protected]
|
|
226 |
- Update patch comment.
|
14462
|
227 |
* Tue Oct 14 2008 - [email protected]
|
|
228 |
- Add 11-no-daemon.diff to fix doo 2929.
|
14402
|
229 |
* Wed Oct 01 2008 - [email protected]
|
|
230 |
- Add l10n tarball.
|
13729
|
231 |
* Tue Sep 23 2008 - [email protected]
|
|
232 |
- Bump to 2.24.0.
|
13671
|
233 |
* Fri Sep 19 2008 - [email protected]
|
|
234 |
- Rework 07-screensaver.diff to fix bugster #6750004.
|
|
235 |
- Add 10-brightness-progressbar.diff to fix bugzilla #552762.
|
13603
|
236 |
* Tue Sep 16 2008 - [email protected]
|
|
237 |
- Rework 08-cpufreq.diff to configure cpufreq policy.
|
13533
|
238 |
* Thu Sep 11 2008 - [email protected]
|
|
239 |
- Rename 09-disable-statis-menuitem.diff to 09-menu-entry.diff and set owner to
|
|
240 |
jedy.
|
13351
|
241 |
* Tue Sep 02 2008 - [email protected]
|
|
242 |
- Bump to 2.23.91.
|
|
243 |
- Rework 01-build.diff and 04-authorization.diff.
|
|
244 |
* Thu Aug 07 2008 - [email protected]
|
13068
|
245 |
- Bump to 2.23.6.
|
|
246 |
- Rework 01-build.diff.
|
|
247 |
- Rework 04-authorization.diff
|
|
248 |
- Rework 07-screensaver.diff.
|
|
249 |
- Removed upstream patch 09-xrandr.diff.
|
13052
|
250 |
* Wed Aug 06 2008- [email protected]
|
|
251 |
- Add patch 09-xrandr.diff to fix unable to startup on Sparc Solaris.
|
12751
|
252 |
* Wed Jul 02 2008 - [email protected]
|
|
253 |
- Bump to 2.23.3.
|
|
254 |
- Remove upstream 10-kstat-cpu.diff.
|
12608
|
255 |
* Fri Jun 06 2008 - [email protected]
|
|
256 |
- Rework 02-gnome-power-manager-02-icon_plicy.diff.
|
12578
|
257 |
* Wed Jun 04 2008 - [email protected]
|
|
258 |
- Rework 03-disable-sleep-configration.diff
|
|
259 |
- Rework 05-diable-suspend-button-configration.diff
|
|
260 |
- Rework 09-authorization.diff:
|
12565
|
261 |
* Tue Jun 03 2008 - [email protected]
|
12578
|
262 |
- Bump to 2.23.1, change intloolize and aclocal arguments.
|
|
263 |
- Remove upstream patch 04-scripts.diff.
|
|
264 |
- Rework 01-build.diff
|
12565
|
265 |
- Rework 07-screensaver.diff.
|
|
266 |
- Disable some patches for the time being. Need further work.
|
12343
|
267 |
* Fri May 23 2008 - [email protected]
|
|
268 |
- disable gconf schema install during make install to get rid of tons
|
|
269 |
of warning. Also delete extra \ at the end of the make install line
|
12320
|
270 |
* Sun May 18 2008 - [email protected]
|
|
271 |
- Add patch 10-kstat-cpu.diff because accuracy calculation
|
|
272 |
needs cpu load.
|
12259
|
273 |
* Wed May 07 2008 - [email protected]
|
|
274 |
- Rework patch 06-interactive-dialog.diff.
|
12041
|
275 |
* Fri Apr 04 2008 - [email protected]
|
|
276 |
- Rework 14-authorization-checking.diff as 09-authorization.diff.
|
|
277 |
Check cpu, brightness, shutdown, root, suspend, hibernate
|
|
278 |
libpolkit auths.
|
|
279 |
- Build with option --enable-policykit.
|
11962
|
280 |
* Sat Mar 29 2008 - [email protected]
|
|
281 |
- Bump to 2.22.1.
|
|
282 |
- Remove upstream patch 10-disable-lid-beeping.diff.
|
11924
|
283 |
* Thu Mar 27 2008 - [email protected]
|
|
284 |
- Rework 07-screensaver.diff. Add keyboard and point
|
|
285 |
grab checking and use xdg-screensaver instead of
|
|
286 |
xscreensaver.
|
11869
|
287 |
* Fri Mar 14 2008 - [email protected]
|
|
288 |
- Add 08-sync-cpufreq.diff to only allow user to change
|
|
289 |
cpufreq policy by hand.
|
11844
|
290 |
* Tue Mar 11 2008 - [email protected]
|
|
291 |
- Bump to 2.22.0.
|
11772
|
292 |
* Sat Mar 01 2008 - [email protected]
|
|
293 |
- Rework 04-script.diff to correct script path.
|
11678
|
294 |
* Thu Feb 21 2008 - [email protected]
|
|
295 |
- set CFLAGS and LDFLAGS
|
11680
|
296 |
- add --disable-scrollkeeper configure option
|
11658
|
297 |
* Mon Feb 18 2008 - [email protected]
|
|
298 |
- Bump to version 2.21.92.
|
|
299 |
- Remove upstream patch 08-debugging-crash.diff.
|
|
300 |
- Remove upstream patch 09-brightness-applet-install.diff.
|
|
301 |
- Remove upstream patch 11-beep-failure.diff.
|
|
302 |
- Remove upstream patch 12-lid-shutdown.diff.
|
|
303 |
- Remove upstream patch 13-brightness-reduction.diff.
|
|
304 |
- Rework 03-disable-sleep-configration.diff and 07-screensaver.diff.
|
11632
|
305 |
* Thu Feb 14 2008 - [email protected]
|
|
306 |
- Reorder the patches list and add bug comments.
|
|
307 |
- Add patch gnome-power-manager-07-screensaver.diff
|
|
308 |
- Disable gnome-power-manager-14-authorization-checking.diff,
|
|
309 |
and option "--enable-policykit". Will rework later.
|
11631
|
310 |
* Thu Feb 14 2008 - [email protected]
|
|
311 |
- Move to gnome spec repository from sourceforge
|
|
312 |
* Mon Jau 28 2008 - [email protected]
|
|
313 |
- Add patch gnome-power-manager-17-interactive-cmd.diff to
|
|
314 |
set gnome-sys-suspend as power button interactive policy.
|
|
315 |
* Fri Jau 25 2008 - [email protected]
|
|
316 |
- Enable configure option --enable-polkit.
|
|
317 |
* Mon Jau 21 2008 - [email protected]
|
|
318 |
- Add gnome-power-manager-16-brightness-reduction.diff to fix
|
|
319 |
bugzilla bug #510068.
|
|
320 |
- Rework gnome-power-manager-11-authrization-checking.diff to
|
|
321 |
add cpufreq policy auth checking.
|
|
322 |
* Mon Jau 14 2008 - [email protected]
|
|
323 |
- Add gnome-power-manager-14-lid-shutdown.diff.
|
|
324 |
- Add gnome-power-manager-15-inhibit-lid-beeping.diff to diable
|
|
325 |
beeping when lid id closed or opened.
|
|
326 |
* Mon Jau 07 2008 - [email protected]
|
|
327 |
- Add gnome-power-manager-13-beep.diff to bugzilla bug #507789.
|
|
328 |
* Thu Dec 20 2007 - [email protected]
|
|
329 |
- Rework gnome-power-manager-07-disable-sleep-configration.diff.
|
|
330 |
- Add gnome-power-manager-11-authorization-checking.diff
|
|
331 |
- Add gnome-power-manager-12-crash.diff
|
|
332 |
* Wed Dec 19 2007 - [email protected]
|
|
333 |
- Add gnome-power-manager-10-diable-suspend-button-configration.diff.
|
|
334 |
* Tue Dec 18 2007 - [email protected]
|
|
335 |
- Rework gnome-power-manager-07-disable-sleep-configration.diff.
|
|
336 |
- Rework gnome-power-manager-08-brightness-applet-install.diff.
|
|
337 |
- Add gnome-power-manager-09-scripts.diff.
|
|
338 |
* Mon Dec 17 2007 - [email protected]
|
|
339 |
- Bump to 2.21.1.
|
|
340 |
- Rework gnome-power-manager-01-build.diff.
|
|
341 |
- Remove gnome-power-manager-02-kstat.diff.
|
|
342 |
- Remove upstream patch gnome-power-manager-03-brightness-get-stuck.diff.
|
|
343 |
- Remove gnome-power-manager-04-display-sleep.diff.
|
|
344 |
- Remove gnome-power-manager-05-configure-power-conf.diff
|
|
345 |
- Add gnome-power-manager-07-disable-sleep-configration.diff.
|
|
346 |
- Add gnome-power-manager-08-brightness-applet-install.diff.
|
|
347 |
* Thu Dec 12 2007 - [email protected]
|
|
348 |
- Add patch gnome-power-manager-06-icon_plicy_and_cpufreq_show.diff,
|
|
349 |
set gconf key "cpufreq_show" as true by default and define
|
|
350 |
gconf key "icon_policy" as always by default.
|
|
351 |
* Fri Dec 07 2007 - [email protected]
|
|
352 |
- Update patch gnome-power-manager-05-configure-power-conf.diff.
|
|
353 |
* Thu Dec 06 2007 - [email protected]
|
|
354 |
- Add patch gnome-power-manager-05-configure-power-conf.diff
|
|
355 |
to make autoS3, autoshutdwon, disk powermanagement, autopm
|
|
356 |
work on Solaris.
|
|
357 |
* Wed Nov 28 2007 - [email protected]
|
|
358 |
- Add patch gnome-power-manager-04-display-sleep.diff, to
|
|
359 |
make display sleeping work.
|
|
360 |
* Fri Nov 17 2007 - [email protected]
|
|
361 |
- Bump to version 2.20.1
|
|
362 |
- Add patch gnome-power-manager-03-brightness-get-stuck.diff.
|
|
363 |
to fix bugzilla bug #497298,
|
|
364 |
* Wed Sep 19 2007 - [email protected]
|
|
365 |
- Add intltoolize to fix build
|
|
366 |
* Wed Sep 19 2007 - [email protected]
|
|
367 |
- Bump to version 2.20.0
|
|
368 |
* Tue Aug 28 2007 - [email protected]
|
|
369 |
- Bump to version 2.19.6.
|
|
370 |
* Tue May 15 2007 - [email protected]
|
|
371 |
- Bump to version 2.19.2.
|
|
372 |
* Mon May 14 2007 - [email protected]
|
|
373 |
- Add a patch gnome-power-manager-02-kstat.diff to
|
|
374 |
port cpu usage statistic to solaris.
|
|
375 |
* Tue May 08 2007 - [email protected]
|
|
376 |
- Bump to version 2.19.1
|
|
377 |
* Fri Apr 27 2007 - [email protected]
|
|
378 |
- Bump to version 2.18.2
|
|
379 |
* Tue Mar 28 2007 - [email protected]
|
|
380 |
- initial version for pkgbuild
|