12373N/A#
12373N/A# spec file for package gnome-power-manager
12373N/A#
12586N/A# Copyright (c) 2008 Sun Microsystems, Inc.
12586N/A# This file and all modifications and additions to the pristine
12586N/A# package are under the same license as the package itself.
12373N/A#
17185N/A%define owner jedy
12586N/A#
12586N/A
18603N/A%define OSR LFI#105446 (gnome Exec. summary):n/a
17180N/A
15153N/A%include l10n.inc
12373N/AName: gnome-power-manager
12373N/ALicense: GPL
12373N/AGroup: X11/Applications
15398N/A#### DO NOT BUMP MODULE TO 2.24.x to 2.25.x AS IT DEPENDS ON DEVICEKIT-POWER
15398N/A#### NOT YET READY FOR SOLARIS
16019N/AVersion: 2.24.4
12373N/ARelease: 2
12373N/ADistribution: Java Desktop System
18615N/AVendor: Gnome Community
12373N/ASummary: GNOME Power Manager
14471N/ASource0: http://ftp.gnome.org/pub/gnome/sources/gnome-power-manager/2.24/%{name}-%{version}.tar.bz2
12773N/A%if %build_l10n
13320N/ASource1: l10n-configure.sh
15153N/ASource2: %{name}-po-sun-%{po_sun_version}.tar.bz2
12773N/A%endif
15273N/A# date:2008-02-14 owner:jedy type:feature
13091N/APatch1: gnome-power-manager-01-build.diff
15273N/A# date:2008-06-06 owner:jedy type:feature
13350N/APatch2: gnome-power-manager-02-icon_plicy.diff
15273N/A# date:2008-02-14 owner:jedy type:feature
13091N/APatch3: gnome-power-manager-03-disable-sleep-configration.diff
15273N/A# date:2008-04-06 owner:jedy type:feature
13350N/APatch4: gnome-power-manager-04-authorization.diff
15273N/A# date:2008-06-06 owner:jedy type:feature
13350N/APatch5: gnome-power-manager-05-disable-suspend-button.diff
15273N/A# date:2008-02-14 bugzilla:507391 owner:jedy type:bug
13001N/APatch6: gnome-power-manager-06-interactive-dialog.diff
15273N/A# date:2008-02-14 owner:jedy type:feature
12374N/APatch7: gnome-power-manager-07-screensaver.diff
15273N/A# date:2008-09-19 bugster:6750001 owner:jedy type:feature
14345N/APatch8: gnome-power-manager-08-cpufreq.diff
14275N/A# date:2008-09-11 owner:jedy type:branding
14275N/APatch9: gnome-power-manager-09-menu-entry.diff
16534N/A# date:2009-03-24 owner:jedy type:branding
17875N/APatch10: gnome-power-manager-10-no-dpms-sync.diff
16415N/A# date:2009-04-22 owner:jedy type:branding
17875N/APatch11: gnome-power-manager-11-autorestart.diff
16534N/A# date:2009-05-05 owner:jedy type:branding
17875N/APatch12: gnome-power-manager-12-no-profile.diff
17272N/A# date:2009-09-10 doo:10224 owner:jedy type:bug
17875N/APatch13: gnome-power-manager-13-help.diff
18394N/A# date:2010-03-08 owner:jedy type:branding
18394N/APatch14: gnome-power-manager-14-session-management.diff
12373N/ABuildRequires: autoconf >= 2.52
12373N/ABuildRequires: automake
12373N/ABuildRequires: dbus-glib-devel >= 0.73
12373N/ABuildRequires: docbook-dtd41-sgml
12373N/ABuildRequires: docbook-utils
12373N/ABuildRequires: gnome-common >= 2.12.0
12373N/ABuildRequires: gnome-doc-utils
12373N/ABuildRequires: gnome-keyring-devel >= 0.8
12373N/ABuildRequires: gnome-panel-devel >= 2.18.0
12373N/ABuildRequires: gtk+2-devel >= 1:2.10.10
12373N/ABuildRequires: hal-devel >= 0.5.7.1
12373N/ABuildRequires: intltool >= 0.35.5
12373N/ABuildRequires: libglade2-devel >= 2.6.0
12373N/ABuildRequires: libgnomeui-devel >= 2.18.0
12373N/ABuildRequires: libnotify-devel >= 0.4.3
12373N/ABuildRequires: libtool
12373N/ABuildRequires: libwnck-devel >= 2.18.0
12373N/ABuildRequires: pkgconfig
12373N/ABuildRequires: rpmbuild(macros) >= 1.311
12373N/ABuildRequires: scrollkeeper
12373N/ARequires: GConf2
12373N/ARequires: gtk+2
12373N/ARequires: hicolor-icon-theme
12373N/ARequires: scrollkeeper
12373N/ARequires: gnome-session >= 2.18.0
12373N/ARequires: notification-daemon >= 0.3.5
12373N/AObsoletes: gnome-power
12373N/ABuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
12373N/A
12373N/A%description
12373N/AUses of GNOME Power Manager infrastructure
12373N/A- A dialogue that warns the user when on UPS power, that automatically
12373N/A begins a kind shutdown when the power gets critically low.
12373N/A- An icon that allows a user to dim the LCD screen with a slider, and
12373N/A does do automatically when going from mains to battery power on a
12373N/A laptop.
12373N/A- An icon, that when an additional battery is inserted, updates it's
12373N/A display to show two batteries and recalculates how much time
12373N/A remaining. Would work for wireless mouse and keyboards, UPS's and
12373N/A PDA's.
12373N/A- A daemon that does a clean shutdown when the battery is critically
12373N/A low or does a soft-suspend when you close the lid on your laptop (or
12373N/A press the "suspend" button on your PC).
12373N/A- Tell Totem to use a codec that does low quality processing to
12373N/A conserve battery power.
12373N/A- Postpone indexing of databases (e.g. up2date) or other heavy
12373N/A operations until on mains power.
12373N/A- Presentation programs / movie players don't want the screensaver
12373N/A starting or screen blanking.
12373N/A
12373N/A%prep
12373N/A%setup -q
15153N/A%if %build_l10n
15153N/Abzcat %SOURCE2 | tar xf -
15153N/Acd po-sun; make; cd ..
15153N/A%endif
15153N/A
12373N/A%patch1 -p1
12374N/A%patch2 -p0
13320N/A%patch3 -p0
13810N/A%patch4 -p0
13320N/A%patch5 -p0
12373N/A%patch6 -p0
12373N/A%patch7 -p0
14345N/A%patch8 -p0
14021N/A%patch9 -p1
16019N/A%patch10 -p1
16234N/A%patch11 -p1
16415N/A%patch12 -p1
16471N/A%patch13 -p1
18394N/A%patch14 -p1
12373N/A
12373N/A%build
12373N/A%ifos linux
12373N/Aif [ -x /usr/bin/getconf ]; then
12373N/A CPUS=`getconf _NPROCESSORS_ONLN`
12373N/Afi
12373N/A%else
12373N/A CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
12373N/A%endif
12373N/Aif test "x$CPUS" = "x" -o $CPUS = 0; then
12373N/A CPUS=1
12373N/Afi
12373N/A
12420N/Aexport CFLAGS="%optflags"
12420N/Aexport LDFLAGS="%_ldflags"
13307N/Aintltoolize --force
16019N/Alibtoolize --copy --force
13307N/Aaclocal $ACLOCAL_FLAGS -I .
12773N/A
12773N/A%if %build_l10n
12773N/Abash -x %SOURCE1 --enable-copyright
12773N/A%endif
12773N/A
12373N/Aautoheader
13307N/Aautomake -a -c -f
12373N/Aautoconf
12373N/A./configure --prefix=%{_prefix} \
12783N/A --enable-policykit \
12373N/A --libexecdir=%{_libexecdir} \
12373N/A --sysconfdir=%{_sysconfdir} \
12373N/A --mandir=%{_mandir} \
12373N/A --datadir=%{_datadir} \
12422N/A --infodir=%{_datadir}/info \
12422N/A --disable-scrollkeeper
12373N/A
12373N/Amake -j$CPUS
12373N/A
12373N/A%install
12373N/Arm -rf $RPM_BUILD_ROOT
13085N/Aexport GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
13085N/Amake install DESTDIR=$RPM_BUILD_ROOT
12373N/A
12373N/A%clean
12373N/Arm -rf $RPM_BUILD_ROOT
12373N/A
12373N/A%post
12373N/A%gconf_schema_install gnome-power-manager.schemas
12373N/A%preun
12373N/A%gconf_schema_uninstall gnome-power-manager.schemas
12373N/A
12373N/A%postun
12373N/A%scrollkeeper_update_postun
12373N/A
12373N/A%files
12373N/A%defattr(-,root,root)
12373N/A%{_libdir}/bonobo/servers/GNOME_BrightnessApplet.server
12373N/A%{_libdir}/bonobo/servers/GNOME_InhibitApplet.server
12373N/A%{_datadir}/gnome/autostart/gnome-power-manager.desktop
12373N/A%{_datadir}/dbus-1/services/gnome-power-manager.service
12373N/A%{_datadir}/gnome-2.0/ui/GNOME_BrightnessApplet.xml
12373N/A%{_datadir}/gnome-2.0/ui/GNOME_InhibitApplet.xml
12373N/A%{_mandir}/man1/*.1*
12373N/A%{_datadir}/gnome-power-manager/*
12373N/A%{_sysconfdir}/gconf/schemas/gnome-power-manager.schemas
12373N/A
12373N/A
12373N/A%changelog
18394N/A* Mon Mar 08 2009 - jedy.wang@sun.com
18394N/A- Add 14-session-management.diff.
17875N/A* Fri Dec 04 2009 - brian.cameron@sun.com
17875N/A- Remove patch gnome-power-manager-10-no-console-kit.diff since
17875N/A ConsoleKit is integrating into build 130.
17272N/A* Thu Sep 10 2009 - jedy.wang@sun.com
17272N/A- Add 14-help.diff.
16534N/A* Wed May 20 2009 - jedy.wang@sun.com
16534N/A- Change patch 11 and 13 to branding patches.
16471N/A* Tue May 05 2009 - jedy.wang@sun.com
16471N/A- Add 13-no-profile.diff.
16415N/A* Wed Apr 22 2009 - jedy.wang@sun.com
16415N/A- Add 12-autorestart.diff.
16415N/A* Tue Mar 24 2009 - jedy.wang@sun.com
16234N/A- Add 11-no-dpms-sync.diff.
16415N/A* Mon Feb 11 2009 - jedy.wang@sun.com
16019N/A- Bump to 2.24.4.
16019N/A- Remove 10-brightness-progressbar.diff. The bug has been fixed in the
16019N/A community.
16019N/A- Add 10-no-console-kit.diff to disable console kit on Solaris.
16415N/A* Mon Jan 19 2009 - jedy.wang@sun.com
15680N/A- Bump to 2.24.3.
15680N/A- Remove patch 11-no-daemon.diff.
15445N/A* Wed Dec 03 2008 - jedy.wang@sun.com
15445N/A- Bump to 2.24.2.
15426N/A* Fri Nov 28 2008 - jedy.wang@sun.com
15426N/A- Bump to 2.24.1.
15398N/A* Tue Nov 25 2008 - jedy.wang@sun.com
15398N/A- Add "do not bump" comments.
15273N/A* Wed Oct 29 2008 - jedy.wang@sun.com
15273N/A- Update patch owner.
15220N/A* Thu Oct 16 2008 - jedy.wang@sun.com
15220N/A- Update patch comment.
15213N/A* Tue Oct 14 2008 - jedy.wang@sun.com
15213N/A- Add 11-no-daemon.diff to fix doo 2929.
15153N/A* Wed Oct 01 2008 - takao.fujiwara@sun.com
15153N/A- Add l10n tarball.
14471N/A* Tue Sep 23 2008 - simon.zheng@sun.com
14471N/A- Bump to 2.24.0.
14413N/A* Fri Sep 19 2008 - simon.zheng@sun.com
14413N/A- Rework 07-screensaver.diff to fix bugster #6750004.
14413N/A- Add 10-brightness-progressbar.diff to fix bugzilla #552762.
14345N/A* Tue Sep 16 2008 - simon.zheng@sun.com
14345N/A- Rework 08-cpufreq.diff to configure cpufreq policy.
14275N/A* Thu Sep 11 2008 - jedy.wang@sun.com
14275N/A- Rename 09-disable-statis-menuitem.diff to 09-menu-entry.diff and set owner to
14275N/A jedy.
14093N/A* Tue Sep 02 2008 - simon.zheng@sun.com
14093N/A- Bump to 2.23.91.
14093N/A- Rework 01-build.diff and 04-authorization.diff.
14093N/A* Thu Aug 07 2008 - simon.zheng@sun.com
13810N/A- Bump to 2.23.6.
13810N/A- Rework 01-build.diff.
13810N/A- Rework 04-authorization.diff
13810N/A- Rework 07-screensaver.diff.
13810N/A- Removed upstream patch 09-xrandr.diff.
13794N/A* Wed Aug 06 2008- simon.zheng@sun.com
13794N/A- Add patch 09-xrandr.diff to fix unable to startup on Sparc Solaris.
13493N/A* Wed Jul 02 2008 - simon.zheng@sun.com
13493N/A- Bump to 2.23.3.
13493N/A- Remove upstream 10-kstat-cpu.diff.
13350N/A* Fri Jun 06 2008 - simon.zheng@sun.com
13350N/A- Rework 02-gnome-power-manager-02-icon_plicy.diff.
13320N/A* Wed Jun 04 2008 - simon.zheng@sun.com
13320N/A- Rework 03-disable-sleep-configration.diff
13320N/A- Rework 05-diable-suspend-button-configration.diff
13320N/A- Rework 09-authorization.diff:
13307N/A* Tue Jun 03 2008 - simon.zheng@sun.com
13320N/A- Bump to 2.23.1, change intloolize and aclocal arguments.
13320N/A- Remove upstream patch 04-scripts.diff.
13320N/A- Rework 01-build.diff
13307N/A- Rework 07-screensaver.diff.
13307N/A- Disable some patches for the time being. Need further work.
13085N/A* Fri May 23 2008 - laca@sun.com
13085N/A- disable gconf schema install during make install to get rid of tons
13085N/A of warning. Also delete extra \ at the end of the make install line
13062N/A* Sun May 18 2008 - simon.zheng@sun.com
13062N/A- Add patch 10-kstat-cpu.diff because accuracy calculation
13062N/A needs cpu load.
13001N/A* Wed May 07 2008 - simon.zheng@sun.com
13001N/A- Rework patch 06-interactive-dialog.diff.
12783N/A* Fri Apr 04 2008 - simon.zheng@sun.com
12783N/A- Rework 14-authorization-checking.diff as 09-authorization.diff.
12783N/A Check cpu, brightness, shutdown, root, suspend, hibernate
12783N/A libpolkit auths.
12783N/A- Build with option --enable-policykit.
12704N/A* Sat Mar 29 2008 - simon.zheng@sun.com
12704N/A- Bump to 2.22.1.
12704N/A- Remove upstream patch 10-disable-lid-beeping.diff.
12666N/A* Thu Mar 27 2008 - simon.zheng@sun.com
12666N/A- Rework 07-screensaver.diff. Add keyboard and point
12666N/A grab checking and use xdg-screensaver instead of
12666N/A xscreensaver.
12611N/A* Fri Mar 14 2008 - simon.zheng@sun.com
12611N/A- Add 08-sync-cpufreq.diff to only allow user to change
12611N/A cpufreq policy by hand.
12586N/A* Tue Mar 11 2008 - damien.carbery@sun.com
12586N/A- Bump to 2.22.0.
12514N/A* Sat Mar 01 2008 - siomon.zheng@sun.com
12514N/A- Rework 04-script.diff to correct script path.
12420N/A* Thu Feb 21 2008 - laca@sun.com
12420N/A- set CFLAGS and LDFLAGS
12422N/A- add --disable-scrollkeeper configure option
12400N/A* Mon Feb 18 2008 - simon.zheng@sun.com
12400N/A- Bump to version 2.21.92.
12400N/A- Remove upstream patch 08-debugging-crash.diff.
12400N/A- Remove upstream patch 09-brightness-applet-install.diff.
12400N/A- Remove upstream patch 11-beep-failure.diff.
12400N/A- Remove upstream patch 12-lid-shutdown.diff.
12400N/A- Remove upstream patch 13-brightness-reduction.diff.
12400N/A- Rework 03-disable-sleep-configration.diff and 07-screensaver.diff.
12374N/A* Thu Feb 14 2008 - simon.zheng@sun.com
12374N/A- Reorder the patches list and add bug comments.
12374N/A- Add patch gnome-power-manager-07-screensaver.diff
12374N/A- Disable gnome-power-manager-14-authorization-checking.diff,
12374N/A and option "--enable-policykit". Will rework later.
12373N/A* Thu Feb 14 2008 - jeff.cai@sun.com
12373N/A- Move to gnome spec repository from sourceforge
12373N/A* Mon Jau 28 2008 - simon.zheng@sun.com
12373N/A- Add patch gnome-power-manager-17-interactive-cmd.diff to
12373N/A set gnome-sys-suspend as power button interactive policy.
12373N/A* Fri Jau 25 2008 - simon.zheng@sun.com
12373N/A- Enable configure option --enable-polkit.
12373N/A* Mon Jau 21 2008 - simon.zheng@sun.com
12373N/A- Add gnome-power-manager-16-brightness-reduction.diff to fix
12373N/A bugzilla bug #510068.
12373N/A- Rework gnome-power-manager-11-authrization-checking.diff to
12373N/A add cpufreq policy auth checking.
12373N/A* Mon Jau 14 2008 - simon.zheng@sun.com
12373N/A- Add gnome-power-manager-14-lid-shutdown.diff.
12373N/A- Add gnome-power-manager-15-inhibit-lid-beeping.diff to diable
12373N/A beeping when lid id closed or opened.
12373N/A* Mon Jau 07 2008 - simon.zheng@sun.com
12373N/A- Add gnome-power-manager-13-beep.diff to bugzilla bug #507789.
12373N/A* Thu Dec 20 2007 - simon.zheng@sun.com
12373N/A- Rework gnome-power-manager-07-disable-sleep-configration.diff.
12373N/A- Add gnome-power-manager-11-authorization-checking.diff
12373N/A- Add gnome-power-manager-12-crash.diff
12373N/A* Wed Dec 19 2007 - simon.zheng@sun.com
12373N/A- Add gnome-power-manager-10-diable-suspend-button-configration.diff.
12373N/A* Tue Dec 18 2007 - simon.zheng@sun.com
12373N/A- Rework gnome-power-manager-07-disable-sleep-configration.diff.
12373N/A- Rework gnome-power-manager-08-brightness-applet-install.diff.
12373N/A- Add gnome-power-manager-09-scripts.diff.
12373N/A* Mon Dec 17 2007 - simon.zheng@sun.com
12373N/A- Bump to 2.21.1.
12373N/A- Rework gnome-power-manager-01-build.diff.
12373N/A- Remove gnome-power-manager-02-kstat.diff.
12373N/A- Remove upstream patch gnome-power-manager-03-brightness-get-stuck.diff.
12373N/A- Remove gnome-power-manager-04-display-sleep.diff.
12373N/A- Remove gnome-power-manager-05-configure-power-conf.diff
12373N/A- Add gnome-power-manager-07-disable-sleep-configration.diff.
12373N/A- Add gnome-power-manager-08-brightness-applet-install.diff.
12373N/A* Thu Dec 12 2007 - simon.zheng@sun.com
12373N/A- Add patch gnome-power-manager-06-icon_plicy_and_cpufreq_show.diff,
12373N/A set gconf key "cpufreq_show" as true by default and define
12373N/A gconf key "icon_policy" as always by default.
12373N/A* Fri Dec 07 2007 - simon.zheng@sun.com
12373N/A- Update patch gnome-power-manager-05-configure-power-conf.diff.
12373N/A* Thu Dec 06 2007 - simon.zheng@sun.com
12373N/A- Add patch gnome-power-manager-05-configure-power-conf.diff
12373N/A to make autoS3, autoshutdwon, disk powermanagement, autopm
12373N/A work on Solaris.
12373N/A* Wed Nov 28 2007 - simon.zheng@sun.com
12373N/A- Add patch gnome-power-manager-04-display-sleep.diff, to
12373N/A make display sleeping work.
12373N/A* Fri Nov 17 2007 - simon.zheng@sun.com
12373N/A- Bump to version 2.20.1
12373N/A- Add patch gnome-power-manager-03-brightness-get-stuck.diff.
12373N/A to fix bugzilla bug #497298,
12373N/A* Wed Sep 19 2007 - trisk@acm.jhu.edu
12373N/A- Add intltoolize to fix build
12373N/A* Wed Sep 19 2007 - simon.zheng@sun.com
12373N/A- Bump to version 2.20.0
12373N/A* Tue Aug 28 2007 - jeff.cai@sun.com
12373N/A- Bump to version 2.19.6.
12373N/A* Tue May 15 2007 - simon.zheng@sun.com
12373N/A- Bump to version 2.19.2.
12373N/A* Mon May 14 2007 - simon.zheng@sun.com
12373N/A- Add a patch gnome-power-manager-02-kstat.diff to
12373N/A port cpu usage statistic to solaris.
12373N/A* Tue May 08 2007 - simon.zheng@sun.com
12373N/A- Bump to version 2.19.1
12373N/A* Fri Apr 27 2007 - simon.zheng@sun.com
12373N/A- Bump to version 2.18.2
12373N/A* Tue Mar 28 2007 - simon.zheng@sun.com
12373N/A- initial version for pkgbuild