gnome-power-manager.spec revision 12374
1842N/A#
1842N/A# spec file for package gnome-power-manager
1842N/A#
1842N/A#
1842N/AName: gnome-power-manager
1842N/ALicense: GPL
1842N/AGroup: X11/Applications
1842N/AVersion: 2.21.1
1842N/ARelease: 2
1842N/ADistribution: Java Desktop System
1842N/AVendor: Sun Microsystems, Inc.
1842N/ASummary: GNOME Power Manager
1842N/ASource0: http://ftp.gnome.org/pub/gnome/sources/gnome-power-manager/2.21/%{name}-%{version}.tar.bz2
1842N/A# date:2008-02-14 owner:xz159989 type:branding
1842N/APatch1: gnome-power-manager-01-build.diff
1842N/A# date:2008-02-14 owner:xz159989 type:branding
1842N/APatch2: gnome-power-manager-02-icon_plicy_and_cpufreq_show.diff
1842N/A# date:2008-02-14 owner:xz159989 type:branding
1842N/APatch3: gnome-power-manager-03-disable-sleep-configration.diff
1842N/A# date:2008-02-14 owner:xz159989 type:branding
1842N/APatch4: gnome-power-manager-04-scripts.diff
1842N/A# date:2008-02-14 owner:xz159989 type:branding
1842N/APatch5: gnome-power-manager-05-diable-suspend-button-configration.diff
1842N/A# date:2008-02-14 owner:xz159989 type:branding
3215N/APatch6: gnome-power-manager-06-interactive-cmd.diff
1842N/A# date:2008-02-14 owner:xz159989 type:branding
1842N/APatch7: gnome-power-manager-07-screensaver.diff
2086N/A# date:2008-02-14 bugzilla:504620 owner:xz159989 type:bug
1842N/APatch8: gnome-power-manager-08-debugging-crash.diff
1842N/A# date:2008-02-14 bugzilla:505684 owner:xz159989 type:bug
1842N/APatch9: gnome-power-manager-09-brightness-applet-install.diff
1842N/A# date:2008-02-14 bugzilla:508254 owner:xz159989 type:bug
1842N/APatch10: gnome-power-manager-10-disable-lid-beeping.diff
2086N/A# date:2008-02-14 bugzilla:507789 owner:xz159989 type:bug
1842N/APatch11: gnome-power-manager-11-beep-failure.diff
1842N/A# date:2008-02-14 bugzilla:507789 owner:xz159989 type:bug
1842N/APatch12: gnome-power-manager-12-lid-shutdown.diff
1842N/A# date:2008-02-14 bugzilla:510068 owner:xz159989 type:bug
1842N/APatch13: gnome-power-manager-13-brightness-reduction.diff
3352N/AURL: http://www.gnome.org/projects/gnome-power-manager/
3853N/ABuildRequires: autoconf >= 2.52
1842N/ABuildRequires: automake
1842N/ABuildRequires: dbus-glib-devel >= 0.73
1842N/ABuildRequires: docbook-dtd41-sgml
3352N/ABuildRequires: docbook-utils
1842N/ABuildRequires: gnome-common >= 2.12.0
1842N/ABuildRequires: gnome-doc-utils
1842N/ABuildRequires: gnome-keyring-devel >= 0.8
1842N/ABuildRequires: gnome-panel-devel >= 2.18.0
1842N/ABuildRequires: gtk+2-devel >= 1:2.10.10
1842N/ABuildRequires: hal-devel >= 0.5.7.1
1842N/ABuildRequires: intltool >= 0.35.5
1842N/ABuildRequires: libglade2-devel >= 2.6.0
1842N/ABuildRequires: libgnomeui-devel >= 2.18.0
1842N/ABuildRequires: libnotify-devel >= 0.4.3
1842N/ABuildRequires: libtool
1842N/ABuildRequires: libwnck-devel >= 2.18.0
1842N/ABuildRequires: pkgconfig
1842N/ABuildRequires: rpmbuild(macros) >= 1.311
1842N/ABuildRequires: scrollkeeper
1842N/ARequires: GConf2
1842N/ARequires: gtk+2
1842N/ARequires: hicolor-icon-theme
1842N/ARequires: scrollkeeper
1842N/ARequires: gnome-session >= 2.18.0
1842N/ARequires: notification-daemon >= 0.3.5
1842N/AObsoletes: gnome-power
1842N/ABuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
1842N/A
1842N/A%description
1842N/AUses of GNOME Power Manager infrastructure
1842N/A- A dialogue that warns the user when on UPS power, that automatically
1842N/A begins a kind shutdown when the power gets critically low.
1842N/A- An icon that allows a user to dim the LCD screen with a slider, and
1842N/A does do automatically when going from mains to battery power on a
1842N/A laptop.
1842N/A- An icon, that when an additional battery is inserted, updates it's
1842N/A display to show two batteries and recalculates how much time
1842N/A remaining. Would work for wireless mouse and keyboards, UPS's and
1842N/A PDA's.
1842N/A- A daemon that does a clean shutdown when the battery is critically
1842N/A low or does a soft-suspend when you close the lid on your laptop (or
1842N/A press the "suspend" button on your PC).
1842N/A- Tell Totem to use a codec that does low quality processing to
1842N/A conserve battery power.
1842N/A- Postpone indexing of databases (e.g. up2date) or other heavy
1842N/A operations until on mains power.
1842N/A- Presentation programs / movie players don't want the screensaver
1842N/A starting or screen blanking.
1842N/A
1842N/A%prep
1842N/A%setup -q
1842N/A%patch1 -p1
1842N/A%patch2 -p0
1842N/A%patch3 -p0
1842N/A%patch4 -p0
1842N/A%patch5 -p0
1842N/A%patch6 -p0
1842N/A%patch7 -p0
1842N/A%patch8 -p0
1842N/A%patch9 -p0
1842N/A%patch10 -p0
1842N/A%patch11 -p0
1842N/A%patch12 -p0
1842N/A%patch13 -p0
1842N/A
1842N/A%build
1842N/A%ifos linux
1842N/Aif [ -x /usr/bin/getconf ]; then
1842N/A CPUS=`getconf _NPROCESSORS_ONLN`
1842N/Afi
1842N/A%else
1842N/A CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
1842N/A%endif
1842N/Aif test "x$CPUS" = "x" -o $CPUS = 0; then
1842N/A CPUS=1
1842N/Afi
1842N/A
1842N/Aintltoolize --copy --force --automake
1842N/Aautoheader
1842N/Aautoconf
1842N/A./configure --prefix=%{_prefix} \
1842N/A --libexecdir=%{_libexecdir} \
1842N/A --sysconfdir=%{_sysconfdir} \
1842N/A --mandir=%{_mandir} \
1842N/A --datadir=%{_datadir} \
1842N/A --infodir=%{_datadir}/info
1842N/A
1842N/Amake -j$CPUS
1842N/A
1842N/A%install
1842N/Arm -rf $RPM_BUILD_ROOT
1842N/Amake install DESTDIR=$RPM_BUILD_ROOT \
1842N/A
1842N/A%clean
1842N/Arm -rf $RPM_BUILD_ROOT
1842N/A
1842N/A%post
1842N/A%gconf_schema_install gnome-power-manager.schemas
1842N/A%preun
1842N/A%gconf_schema_uninstall gnome-power-manager.schemas
1842N/A
1842N/A%postun
1842N/A%scrollkeeper_update_postun
1842N/A
1842N/A%files
1842N/A%defattr(-,root,root)
1842N/A%{_libdir}/bonobo/servers/GNOME_BrightnessApplet.server
1842N/A%{_libdir}/bonobo/servers/GNOME_InhibitApplet.server
1842N/A%{_datadir}/gnome/autostart/gnome-power-manager.desktop
1842N/A%{_datadir}/dbus-1/services/gnome-power-manager.service
1842N/A%{_datadir}/gnome-2.0/ui/GNOME_BrightnessApplet.xml
1842N/A%{_datadir}/gnome-2.0/ui/GNOME_InhibitApplet.xml
1842N/A%{_mandir}/man1/*.1*
1842N/A%{_datadir}/gnome-power-manager/*
1842N/A%{_sysconfdir}/gconf/schemas/gnome-power-manager.schemas
1842N/A
1842N/A
1842N/A%changelog
1842N/A* Thu Feb 14 2008 - simon.zheng@sun.com
1842N/A- Reorder the patches list and add bug comments.
1842N/A- Add patch gnome-power-manager-07-screensaver.diff
1842N/A- Disable gnome-power-manager-14-authorization-checking.diff,
1842N/A and option "--enable-policykit". Will rework later.
1842N/A
1842N/A* Thu Feb 14 2008 - jeff.cai@sun.com
1842N/A- Move to gnome spec repository from sourceforge
1842N/A
1842N/A* Mon Jau 28 2008 - simon.zheng@sun.com
1842N/A- Add patch gnome-power-manager-17-interactive-cmd.diff to
1842N/A set gnome-sys-suspend as power button interactive policy.
1842N/A
1842N/A* Fri Jau 25 2008 - simon.zheng@sun.com
1842N/A- Enable configure option --enable-polkit.
1842N/A
1842N/A* Mon Jau 21 2008 - simon.zheng@sun.com
1842N/A- Add gnome-power-manager-16-brightness-reduction.diff to fix
1842N/A bugzilla bug #510068.
1842N/A- Rework gnome-power-manager-11-authrization-checking.diff to
1842N/A add cpufreq policy auth checking.
1842N/A
1842N/A* Mon Jau 14 2008 - simon.zheng@sun.com
1842N/A- Add gnome-power-manager-14-lid-shutdown.diff.
1842N/A- Add gnome-power-manager-15-inhibit-lid-beeping.diff to diable
1842N/A beeping when lid id closed or opened.
1842N/A
1842N/A* Mon Jau 07 2008 - simon.zheng@sun.com
1842N/A- Add gnome-power-manager-13-beep.diff to bugzilla bug #507789.
1842N/A
1842N/A* Thu Dec 20 2007 - simon.zheng@sun.com
1842N/A- Rework gnome-power-manager-07-disable-sleep-configration.diff.
1842N/A- Add gnome-power-manager-11-authorization-checking.diff
1842N/A- Add gnome-power-manager-12-crash.diff
1842N/A
1842N/A* Wed Dec 19 2007 - simon.zheng@sun.com
1842N/A- Add gnome-power-manager-10-diable-suspend-button-configration.diff.
1842N/A
1842N/A* Tue Dec 18 2007 - simon.zheng@sun.com
1842N/A- Rework gnome-power-manager-07-disable-sleep-configration.diff.
1842N/A- Rework gnome-power-manager-08-brightness-applet-install.diff.
1842N/A- Add gnome-power-manager-09-scripts.diff.
1842N/A
1842N/A* Mon Dec 17 2007 - simon.zheng@sun.com
1842N/A- Bump to 2.21.1.
1842N/A- Rework gnome-power-manager-01-build.diff.
1842N/A- Remove gnome-power-manager-02-kstat.diff.
1842N/A- Remove upstream patch gnome-power-manager-03-brightness-get-stuck.diff.
1842N/A- Remove gnome-power-manager-04-display-sleep.diff.
1842N/A- Remove gnome-power-manager-05-configure-power-conf.diff
1842N/A- Add gnome-power-manager-07-disable-sleep-configration.diff.
1842N/A- Add gnome-power-manager-08-brightness-applet-install.diff.
1842N/A
1842N/A* Thu Dec 12 2007 - simon.zheng@sun.com
1842N/A- Add patch gnome-power-manager-06-icon_plicy_and_cpufreq_show.diff,
1842N/A set gconf key "cpufreq_show" as true by default and define
1842N/A gconf key "icon_policy" as always by default.
1842N/A
1842N/A* Fri Dec 07 2007 - simon.zheng@sun.com
1842N/A- Update patch gnome-power-manager-05-configure-power-conf.diff.
1842N/A
1842N/A* Thu Dec 06 2007 - simon.zheng@sun.com
1842N/A- Add patch gnome-power-manager-05-configure-power-conf.diff
1842N/A to make autoS3, autoshutdwon, disk powermanagement, autopm
1842N/A work on Solaris.
1842N/A
1842N/A* Wed Nov 28 2007 - simon.zheng@sun.com
1842N/A- Add patch gnome-power-manager-04-display-sleep.diff, to
1842N/A make display sleeping work.
1842N/A
1842N/A* Fri Nov 17 2007 - simon.zheng@sun.com
1842N/A- Bump to version 2.20.1
1842N/A- Add patch gnome-power-manager-03-brightness-get-stuck.diff.
1842N/A to fix bugzilla bug #497298,
1842N/A
1842N/A* Wed Sep 19 2007 - trisk@acm.jhu.edu
1842N/A- Add intltoolize to fix build
1842N/A
1842N/A* Wed Sep 19 2007 - simon.zheng@sun.com
1842N/A- Bump to version 2.20.0
1842N/A
1842N/A* Tue Aug 28 2007 - jeff.cai@sun.com
1842N/A- Bump to version 2.19.6.
1842N/A
1842N/A* Tue May 15 2007 - simon.zheng@sun.com
1842N/A- Bump to version 2.19.2.
1842N/A
1842N/A* Mon May 14 2007 - simon.zheng@sun.com
1842N/A- Add a patch gnome-power-manager-02-kstat.diff to
1842N/A port cpu usage statistic to solaris.
1842N/A
1842N/A* Tue May 08 2007 - simon.zheng@sun.com
1842N/A- Bump to version 2.19.1
1842N/A
1842N/A* Fri Apr 27 2007 - simon.zheng@sun.com
1842N/A- Bump to version 2.18.2
1842N/A
1842N/A* Tue Mar 28 2007 - simon.zheng@sun.com
1842N/A- initial version for pkgbuild
1842N/A