gnome-power-manager.spec revision 12666
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#
15170N/A# Owner: SimonZheng
12586N/A#
12586N/A
15153N/AName: gnome-power-manager
12373N/ALicense: GPL
12373N/AGroup: X11/Applications
12373N/AVersion: 2.22.0
15398N/ARelease: 2
15398N/ADistribution: Java Desktop System
16019N/AVendor: Sun Microsystems, Inc.
12373N/ASummary: GNOME Power Manager
12373N/ASource0: http://ftp.gnome.org/pub/gnome/sources/gnome-power-manager/2.22/%{name}-%{version}.tar.bz2
12373N/A# date:2008-02-14 owner:xz159989 type:branding
12373N/APatch1: gnome-power-manager-01-build.diff
14471N/A# date:2008-02-14 owner:xz159989 type:branding
12773N/APatch2: gnome-power-manager-02-icon_plicy_and_cpufreq_show.diff
13320N/A# date:2008-02-14 owner:xz159989 type:branding
15153N/APatch3: gnome-power-manager-03-disable-sleep-configration.diff
12773N/A# date:2008-02-14 owner:xz159989 type:branding
15273N/APatch4: gnome-power-manager-04-scripts.diff
13091N/A# date:2008-02-14 owner:xz159989 type:branding
15273N/APatch5: gnome-power-manager-05-diable-suspend-button-configration.diff
13350N/A# date:2008-02-14 owner:xz159989 type:branding
15273N/APatch6: gnome-power-manager-06-interactive-cmd.diff
13091N/A# date:2008-02-14 owner:xz159989 type:branding
15273N/APatch7: gnome-power-manager-07-screensaver.diff
13350N/A# date:2008-03-14 owner:xz159989 type:branding
15273N/APatch8: gnome-power-manager-08-sync-cpufreq.diff
13350N/A# date:2008-02-14 bugzilla:508254 owner:xz159989 type:bug
15273N/APatch10: gnome-power-manager-10-disable-lid-beeping.diff
13001N/AURL: http://www.gnome.org/projects/gnome-power-manager/
15273N/ABuildRequires: autoconf >= 2.52
12374N/ABuildRequires: automake
15273N/ABuildRequires: dbus-glib-devel >= 0.73
14345N/ABuildRequires: docbook-dtd41-sgml
14275N/ABuildRequires: docbook-utils
14275N/ABuildRequires: gnome-common >= 2.12.0
16019N/ABuildRequires: gnome-doc-utils
16019N/ABuildRequires: gnome-keyring-devel >= 0.8
16234N/ABuildRequires: gnome-panel-devel >= 2.18.0
16234N/ABuildRequires: gtk+2-devel >= 1:2.10.10
16415N/ABuildRequires: hal-devel >= 0.5.7.1
16415N/ABuildRequires: intltool >= 0.35.5
16471N/ABuildRequires: libglade2-devel >= 2.6.0
16471N/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
12373N/A%patch1 -p1
12373N/A%patch2 -p0
12373N/A%patch3 -p0
12373N/A%patch4 -p0
12373N/A%patch5 -p0
12373N/A%patch6 -p0
12373N/A%patch7 -p0
12373N/A%patch8 -p0
12373N/A%patch10 -p0
12373N/A
12373N/A%build
12373N/A%ifos linux
12373N/Aif [ -x /usr/bin/getconf ]; then
12373N/A CPUS=`getconf _NPROCESSORS_ONLN`
15153N/Afi
15153N/A%else
15153N/A CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
15153N/A%endif
15153N/Aif test "x$CPUS" = "x" -o $CPUS = 0; then
12373N/A CPUS=1
12374N/Afi
13320N/A
13810N/Aexport CFLAGS="%optflags"
13320N/Aexport LDFLAGS="%_ldflags"
12373N/Aintltoolize --copy --force --automake
12373N/Aautoheader
14345N/Aautoconf
14021N/A./configure --prefix=%{_prefix} \
16019N/A --libexecdir=%{_libexecdir} \
16234N/A --sysconfdir=%{_sysconfdir} \
16415N/A --mandir=%{_mandir} \
16471N/A --datadir=%{_datadir} \
12373N/A --infodir=%{_datadir}/info \
12373N/A --disable-scrollkeeper
12373N/A
12373N/Amake -j$CPUS
12373N/A
12373N/A%install
12373N/Arm -rf $RPM_BUILD_ROOT
12373N/Amake install DESTDIR=$RPM_BUILD_ROOT \
12373N/A
12373N/A%clean
12373N/Arm -rf $RPM_BUILD_ROOT
12373N/A
12373N/A%post
12420N/A%gconf_schema_install gnome-power-manager.schemas
12420N/A%preun
13307N/A%gconf_schema_uninstall gnome-power-manager.schemas
16019N/A
13307N/A%postun
12773N/A%scrollkeeper_update_postun
12773N/A
12773N/A%files
12773N/A%defattr(-,root,root)
12773N/A%{_libdir}/bonobo/servers/GNOME_BrightnessApplet.server
12373N/A%{_libdir}/bonobo/servers/GNOME_InhibitApplet.server
13307N/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
12783N/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
12422N/A
12422N/A%changelog
12373N/A* Thu Mar 27 2008 - simon.zheng@sun.com
12373N/A- Rework 07-screensaver.diff. Add keyboard and point
12373N/A grab checking and use xdg-screensaver instead of
12373N/A xscreensaver.
12373N/A* Fri Mar 14 2008 - simon.zheng@sun.com
13085N/A- Add 08-sync-cpufreq.diff to only allow user to change
13085N/A cpufreq policy by hand.
12373N/A* Tue Mar 11 2008 - damien.carbery@sun.com
12373N/A- Bump to 2.22.0.
12373N/A* Sat Mar 01 2008 - siomon.zheng@sun.com
12373N/A- Rework 04-script.diff to correct script path.
12373N/A* Thu Feb 21 2008 - laca@sun.com
12373N/A- set CFLAGS and LDFLAGS
12373N/A- add --disable-scrollkeeper configure option
12373N/A* Mon Feb 18 2008 - simon.zheng@sun.com
12373N/A- Bump to version 2.21.92.
12373N/A- Remove upstream patch 08-debugging-crash.diff.
12373N/A- Remove upstream patch 09-brightness-applet-install.diff.
12373N/A- Remove upstream patch 11-beep-failure.diff.
12373N/A- Remove upstream patch 12-lid-shutdown.diff.
12373N/A- Remove upstream patch 13-brightness-reduction.diff.
12373N/A- Rework 03-disable-sleep-configration.diff and 07-screensaver.diff.
12373N/A* Thu Feb 14 2008 - simon.zheng@sun.com
12373N/A- Reorder the patches list and add bug comments.
12373N/A- Add patch gnome-power-manager-07-screensaver.diff
12373N/A- Disable gnome-power-manager-14-authorization-checking.diff,
12373N/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
16471N/A- Enable configure option --enable-polkit.
16471N/A* Mon Jau 21 2008 - simon.zheng@sun.com
16415N/A- Add gnome-power-manager-16-brightness-reduction.diff to fix
16415N/A bugzilla bug #510068.
16415N/A- Rework gnome-power-manager-11-authrization-checking.diff to
16234N/A add cpufreq policy auth checking.
16415N/A* Mon Jau 14 2008 - simon.zheng@sun.com
16019N/A- Add gnome-power-manager-14-lid-shutdown.diff.
16019N/A- Add gnome-power-manager-15-inhibit-lid-beeping.diff to diable
16019N/A beeping when lid id closed or opened.
16019N/A* Mon Jau 07 2008 - simon.zheng@sun.com
16415N/A- Add gnome-power-manager-13-beep.diff to bugzilla bug #507789.
15680N/A* Thu Dec 20 2007 - simon.zheng@sun.com
15680N/A- Rework gnome-power-manager-07-disable-sleep-configration.diff.
15445N/A- Add gnome-power-manager-11-authorization-checking.diff
15445N/A- Add gnome-power-manager-12-crash.diff
15426N/A* Wed Dec 19 2007 - simon.zheng@sun.com
15426N/A- Add gnome-power-manager-10-diable-suspend-button-configration.diff.
15398N/A* Tue Dec 18 2007 - simon.zheng@sun.com
15398N/A- Rework gnome-power-manager-07-disable-sleep-configration.diff.
15273N/A- Rework gnome-power-manager-08-brightness-applet-install.diff.
15273N/A- Add gnome-power-manager-09-scripts.diff.
15220N/A* Mon Dec 17 2007 - simon.zheng@sun.com
15220N/A- Bump to 2.21.1.
15213N/A- Rework gnome-power-manager-01-build.diff.
15213N/A- Remove gnome-power-manager-02-kstat.diff.
15153N/A- Remove upstream patch gnome-power-manager-03-brightness-get-stuck.diff.
15153N/A- Remove gnome-power-manager-04-display-sleep.diff.
14471N/A- Remove gnome-power-manager-05-configure-power-conf.diff
14471N/A- Add gnome-power-manager-07-disable-sleep-configration.diff.
14413N/A- Add gnome-power-manager-08-brightness-applet-install.diff.
14413N/A* Thu Dec 12 2007 - simon.zheng@sun.com
14413N/A- Add patch gnome-power-manager-06-icon_plicy_and_cpufreq_show.diff,
14345N/A set gconf key "cpufreq_show" as true by default and define
14345N/A gconf key "icon_policy" as always by default.
14275N/A* Fri Dec 07 2007 - simon.zheng@sun.com
14275N/A- Update patch gnome-power-manager-05-configure-power-conf.diff.
14275N/A* Thu Dec 06 2007 - simon.zheng@sun.com
14093N/A- Add patch gnome-power-manager-05-configure-power-conf.diff
14093N/A to make autoS3, autoshutdwon, disk powermanagement, autopm
14093N/A work on Solaris.
14093N/A* Wed Nov 28 2007 - simon.zheng@sun.com
13810N/A- Add patch gnome-power-manager-04-display-sleep.diff, to
13810N/A make display sleeping work.
13810N/A* Fri Nov 17 2007 - simon.zheng@sun.com
13810N/A- Bump to version 2.20.1
13810N/A- Add patch gnome-power-manager-03-brightness-get-stuck.diff.
13794N/A to fix bugzilla bug #497298,
13794N/A* Wed Sep 19 2007 - trisk@acm.jhu.edu
13493N/A- Add intltoolize to fix build
13493N/A* Wed Sep 19 2007 - simon.zheng@sun.com
13493N/A- Bump to version 2.20.0
13350N/A* Tue Aug 28 2007 - jeff.cai@sun.com
13350N/A- Bump to version 2.19.6.
13320N/A* Tue May 15 2007 - simon.zheng@sun.com
13320N/A- Bump to version 2.19.2.
13320N/A* Mon May 14 2007 - simon.zheng@sun.com
13320N/A- Add a patch gnome-power-manager-02-kstat.diff to
13307N/A port cpu usage statistic to solaris.
13320N/A* Tue May 08 2007 - simon.zheng@sun.com
13320N/A- Bump to version 2.19.1
13320N/A* Fri Apr 27 2007 - simon.zheng@sun.com
13307N/A- Bump to version 2.18.2
13307N/A* Tue Mar 28 2007 - simon.zheng@sun.com
13085N/A- initial version for pkgbuild
13085N/A