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