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