diff --git a/gnome-panel.spec b/gnome-panel.spec index 2dc99b2..7de297a 100644 --- a/gnome-panel.spec +++ b/gnome-panel.spec @@ -16,13 +16,11 @@ Summary: GNOME panel Name: gnome-panel Version: 2.12.0 -Release: 2 +Release: 3 URL: http://www.gnome.org Source0: ftp://ftp.gnome.org/pub/GNOME/pre-gnome2/sources/gnome-panel/%{name}-%{version}.tar.bz2 Source1: redhat-panel-default-setup.entries -Source2: redhat-panel-default-setup-battstat.entries Source3: redhat-panel-backwards-compat-config.schemas -Source4: add-gimlet-for-cjk.xsl License: GPL Group: User Interface/Desktops BuildRoot: %{_tmppath}/%{name}-root @@ -101,10 +99,6 @@ perl -pi -e 's/PANEL_STOCK_GNOME_LOGO/PANEL_STOCK_MAIN_MENU/g' gnome-panel/menu. make -# Add GIMLET to the default panel in CJK -mv gnome-panel/panel-general.schemas gnome-panel/panel-general.schemas.tmp -xsltproc --nonet %{SOURCE4} gnome-panel/panel-general.schemas.tmp > gnome-panel/panel-general.schemas - %install rm -rf $RPM_BUILD_ROOT @@ -112,9 +106,6 @@ export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 make DESTDIR=$RPM_BUILD_ROOT install unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL -## install battstat schemas -install -m644 %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/gconf/schemas/panel-default-setup-battstat.entries - # # Create pager and tasklist schemas for compatibility with older # configurations which reference the old schema names @@ -137,26 +128,6 @@ if [ -x /usr/bin/gtk-update-icon-cache ]; then gtk-update-icon-cache -q %{_datadir}/icons/hicolor fi -# -# The applet needs apmd which is only build on ix86 -# -pm_available=false -%ifarch %{ix86} ppc -if [ -f /proc/acpi/event ] ; then - for battery in /proc/acpi/battery/*/state; do - if grep 'present: *yes' $battery >/dev/null 2>&1; then - pm_available=true - fi - done -elif [ -f /proc/apm ]; then - # Battery present if top bits are unset - flag=$(cat /proc/apm | cut -d ' ' -f 6 | sed 's/0x\([0-9a-f]\)[0-9a-f]/\1/') - if [ "$flag" == "0" ]; then - pm_available=true - fi -fi -%endif - export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` # @@ -179,11 +150,6 @@ done gconftool-2 --direct --config-source=$GCONF_CONFIG_SOURCE --load %{_sysconfdir}/gconf/schemas/panel-default-setup.entries > /dev/null gconftool-2 --direct --config-source=$GCONF_CONFIG_SOURCE --load %{_sysconfdir}/gconf/schemas/panel-default-setup.entries /apps/panel > /dev/null -if [ "$pm_available" = "true" ]; then - gconftool-2 --direct --config-source=$GCONF_CONFIG_SOURCE --load %{_sysconfdir}/gconf/schemas/panel-default-setup-battstat.entries > /dev/null - gconftool-2 --direct --config-source=$GCONF_CONFIG_SOURCE --load %{_sysconfdir}/gconf/schemas/panel-default-setup-battstat.entries /apps/panel/applets/battstat_applet > /dev/null -fi - /sbin/ldconfig %postun @@ -221,6 +187,10 @@ fi %{_datadir}/gtk-doc %changelog +* Fri Sep 30 2005 Mark McLoughlin 2.12.0-3 +- Remove hacks to add battery applet to default panel configuration + where ACPI/APM is available (#169621) and GIMLET in CJK locales (#169430) + * Wed Sep 14 2005 Jeremy Katz - 2.12.0-2 - we have mozilla (and e-d-s) on ppc64 now diff --git a/redhat-panel-default-setup.entries b/redhat-panel-default-setup.entries index e3942a1..ddc751e 100644 --- a/redhat-panel-default-setup.entries +++ b/redhat-panel-default-setup.entries @@ -53,11 +53,28 @@ general/applet_id_list /schemas/apps/panel/general/applet_id_list - - - + + + + mixer + + + clock + + + systray + + + show_desktop_button + + + window_list + + + workspace_switcher + + + @@ -644,60 +661,6 @@ applets/systray/launcher_location/schemas/apps/panel/objects/launcher_location applets/systray/action_type/schemas/apps/panel/objects/action_type - - - - applets/gimlet/object_type - /schemas/apps/panel/objects/object_type - - bonobo-applet - - - - applets/gimlet/toplevel_id - /schemas/apps/panel/objects/toplevel_id - - top_panel - - - - applets/gimlet/position - /schemas/apps/panel/objects/position - - 3 - - - - applets/gimlet/panel_right_stick - /schemas/apps/panel/objects/panel_right_stick - - true - - - - applets/gimlet/locked - /schemas/apps/panel/objects/locked - - true - - - - applets/gimlet/bonobo_iid - /schemas/apps/panel/objects/bonobo_iid - - OAFIID:GNOME_imswitcher - - - - applets/gimlet/attached_toplevel_id/schemas/apps/panel/objects/attached_toplevel_id - applets/gimlet/tooltip/schemas/apps/panel/objects/tooltip - applets/gimlet/use_custom_icon/schemas/apps/panel/objects/use_custom_icon - applets/gimlet/custom_icon/schemas/apps/panel/objects/custom_icon - applets/gimlet/use_menu_path/schemas/apps/panel/objects/use_menu_path - applets/gimlet/menu_path/schemas/apps/panel/objects/menu_path - applets/gimlet/launcher_location/schemas/apps/panel/objects/launcher_location - applets/gimlet/action_type/schemas/apps/panel/objects/action_type -