Hello community,
here is the log from the commit of package gconf2.1294 for openSUSE:12.1:Update checked in at 2013-02-11 14:40:23
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:12.1:Update/gconf2.1294 (Old)
and /work/SRC/openSUSE:12.1:Update/.gconf2.1294.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "gconf2.1294", Maintainer is ""
Changes:
--------
New Changes file:
--- /dev/null 2013-02-09 11:18:20.872010756 +0100
+++ /work/SRC/openSUSE:12.1:Update/.gconf2.1294.new/gconf2.changes 2013-02-11 14:40:25.000000000 +0100
@@ -0,0 +1,1125 @@
+-------------------------------------------------------------------
+Tue Nov 15 10:10:45 UTC 2011 - vuntz@opensuse.org
+
+- Update to version 3.2.3:
+ + Fix assert introduced in 3.2.2 (bgo#662991).
+- Changes from version 3.2.2:
+ + Avoid crash when there is no reply to messages in
+ gconf_engine_notify_remove (bgo#661372).
+ + Clean-up ORBit vs DBus logic.
+- Changes from version 3.2.1:
+ + Fix "Configuration server couldn't be contacted" errors
+ (bgo#659835).
+ + Build fix for -Werror=format-security.
+ + Updated translations.
+- Drop gconf2-no-wrong-drop-db.patch: fixed upstream
+- Fixes a bug where window from a different workspace would peek
+ up behind current workspace window in the current workspace
+ activities overview (bnc#731663).
+
+-------------------------------------------------------------------
+Thu Oct 20 08:18:40 UTC 2011 - vuntz@opensuse.org
+
+- Add gconf2-no-wrong-drop-db.patch: partial fix gconf server not
+ correctly answering to clients after a while, because it believes
+ it can drop databases while they're being used. This is only a
+ partial fix, as there's another patch to fix a similar issue on
+ SIGHUP. It's safer to take just this part, as it's not intrusive
+ at all while the other one can be risky without more testing.
+
+-------------------------------------------------------------------
+Mon Sep 26 19:43:37 UTC 2011 - vuntz@opensuse.org
+
+- Update to version 3.2.0:
+ + Updated translations.
+
+-------------------------------------------------------------------
+Tue Sep 20 07:11:02 UTC 2011 - vuntz@opensuse.org
+
+- Update to version 3.1.92:
+ + bgo#655954: allow setting gconf values to the schema defaults
+ + Updated translations.
+- Drop gconf2-fix-default-mandatory.patch: fixed upstream.
+
+-------------------------------------------------------------------
+Tue Sep 6 18:04:29 UTC 2011 - vuntz@opensuse.org
+
+- Add gconf2-fix-default-mandatory.patch: fix setting default or
+ mandatory values for key, after dbus migration. Fix bnc#705409.
+ Patch by Joey Zheng .
+
+-------------------------------------------------------------------
+Thu Sep 1 16:17:56 UTC 2011 - vuntz@opensuse.org
+
+- Update to version 3.1.90:
+ + bgo#656262: Support for conversion files from user specified
+ and XDG data directories
+ + Updated translations.
+- Changes from version 3.1.6:
+ + Fixes on the distcheck fixes
+ + bgo#655656: Use "o" for the D-BUS object path rather than "s"
+ (this changes the internal D-BUS API but for now we have a
+ compatability bit that should avoid too much pain.)
+- Drop pkgconfig(ORBit-2.0) BuildRequires: we do not build with the
+ orbit backend.
+- Drop explicit Requires from devel packages that will
+ automatically be added the pkg-config way: dbus-1-glib-devel,
+ glib2-devel, orbit2-devel.
+
+-------------------------------------------------------------------
+Mon Aug 15 09:01:26 CEST 2011 - dimstar@opensuse.org
+
+- Update to version 3.1.5:
+ + gsettings-convert: convert to unsigned int correctly
+ + Distcheck fixes
+ + bgo#656248: Handle messages that don't have interface set
+ + bgo#654801: Export pkg-config file and C include details in GIR
+ file
+ + Updated translations.
+- Add pkgconfig(ORBit-2.0) BuildRequires.
+
+-------------------------------------------------------------------
+Mon Jul 25 16:39:17 CEST 2011 - vuntz@opensuse.org
+
+- Update to version 3.1.4:
+ + gsettings-data-convert: Call g_type_init()
+ + ensure_database: don't free the reply til we've finished with
+ its args
+ + build: Filter out generated corba code when building .gir
+ + Updated translations.
+
+-------------------------------------------------------------------
+Sat Jul 2 08:56:54 CEST 2011 - vuntz@opensuse.org
+
+- Update to version 3.1.3:
+ + This is version 2.32.5, re-released with the right version.
+- Pass --disable-orbit to configure to not depend on ORBit2, and
+ use dbus as IPC. Remove orbit2-devel BuildRequires.
+- Change --with-gtk=2.0 configure option to --with-gtk=3.0, and
+ change gtk2-devel BuildRequires to gtk3-devel.
+
+-------------------------------------------------------------------
+Fri Jul 1 16:37:33 CEST 2011 - dimstar@opensuse.org
+
+- Update to version 2.32.5:
+ + Add optional and disabled by default port to DBus.
+ + Use the cache when looking for keys we know we don't have
+ locally.
+ + Updated translations.
+
+-------------------------------------------------------------------
+Thu Jun 16 18:39:18 CEST 2011 - dimstar@opensuse.org
+
+- Update to version 2.32.4:
+ + Fix distcheck.
+ + Remove glib and gtk+ deprecations from the example app.
+ + Updated translations.
+
+-------------------------------------------------------------------
+Wed Apr 27 09:51:32 UTC 2011 - fcrozat@novell.com
+
+- Update to version 2.32.3:
+ + Updated translations.
+
+-------------------------------------------------------------------
+Mon Apr 4 13:29:55 UTC 2011 - fcrozat@novell.com
+
+- Update to version 2.32.2:
+ + bgo#644662: default GConf path includes hard-coded reference to
+ /etc/gconf.
+ + bgo#638679: Please make gsettings-data-convert.desktop
+ translatable.
+ + Updated translations.
+- Rebase patch gconf2-schemas-path.patch.
+
+-------------------------------------------------------------------
+Mon Nov 29 13:57:27 UTC 2010 - fcrozat@novell.com
+
+- Ensure gconf2 macros are using absolute paths when possible
+
+-------------------------------------------------------------------
+Mon Nov 15 11:31:39 CET 2010 - dimstar@opensuse.org
+
+- Update to version 2.32.1:
+ + Allow building against GTK+ 3
+ + Make gsettings-data-convert deal better with enums and flags
+ + bgo#631250: Remove an obsolete error message
+ + Updated translations.
+- Pass --with-gtk=2.0 to configure.
+
+-------------------------------------------------------------------
+Mon Sep 27 22:20:53 CEST 2010 - vuntz@opensuse.org
+
+- Update to version 2.32.0:
+ + Make ref() function return the passed object (bgo#629984)
+ + Updated translations.
+
+-------------------------------------------------------------------
+Tue Aug 31 09:37:57 UTC 2010 - aj@suse.de
+
+- Recommend instead of require lang package since it's not mandatory.
+
+-------------------------------------------------------------------
+Mon Aug 30 21:34:55 CEST 2010 - dimstar@opensuse.org
+
+- Update to version 2.31.91:
+ + libgconf-2 was ported to the DBus bindings in gio, and no
+ longer links to libdbus.
+
+-------------------------------------------------------------------
+Thu Aug 5 23:48:38 CEST 2010 - vuntz@opensuse.org
+
+- Update to version 2.31.7:
+ + gsettings-data-convert: Realloc the correct amount of memory
+ + Update GSettings backend to follow API changes
+ + Build fix
+ + Updated translations.
+
+-------------------------------------------------------------------
+Fri Jul 23 08:31:28 CEST 2010 - vuntz@opensuse.org
+
+- Update to version 2.31.6:
+ + Features and fixes in gsettings-schema-convert:
+ - always add gettext domain
+ - convert 0/1 to false/true
+ - convert underscores to dashes
+ - convert to xml by default
+ - fix crash when lxml is missing
+ - don't crash on unknown types
+ - accept GConf schemas without defaults
+ - fix --help error
+
+-------------------------------------------------------------------
+Thu Jul 22 12:41:14 CEST 2010 - vuntz@opensuse.org
+
+- Add gobject-introspection-devel BuildRequires to get
+ introspection support.
+- Call %suse_update_desktop_file for
++++ 928 more lines (skipped)
++++ between /dev/null
++++ and /work/SRC/openSUSE:12.1:Update/.gconf2.1294.new/gconf2.changes
New:
----
GConf-3.2.3.tar.bz2
baselibs.conf
gconf2-gconftool-reload.patch
gconf2-pk-default-path.patch
gconf2-sabayon.patch
gconf2-schemas-path.patch
gconf2.changes
gconf2.spec
gconftool-rebuild
macros.gconf2
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ gconf2.spec ++++++
#
# spec file for package gconf2
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: gconf2
BuildRequires: dbus-1-glib-devel
BuildRequires: gobject-introspection-devel
BuildRequires: gtk3-devel
BuildRequires: intltool
BuildRequires: libidl-devel
BuildRequires: libxml2-devel
BuildRequires: polkit-devel
BuildRequires: translation-update-upstream
BuildRequires: update-desktop-files
Url: http://www.gnome.org/
%define _name GConf
Version: 3.2.3
Release: 0
Summary: GNOME Configuration Database System
License: GPL-2.0+ ; LGPL-2.1+
Group: System/GUI/GNOME
Source: http://download.gnome.org/sources/GConf/3.2/%{_name}-%{version}.tar.bz2
# Generic tool, not upstreamed:
Source1: gconftool-rebuild
# RPM specific macros:
Source2: macros.gconf2
Source99: baselibs.conf
# PATCH-FIX-OPENSUSE gconf2-gconftool-reload.patch -- Include sabayon paths to the default configuration. Simplifies scriptlets:
Patch2: gconf2-gconftool-reload.patch
# PATCH-FIX-OPENSUSE gconf2-schemas-path.patch
Patch3: gconf2-schemas-path.patch
# PATCH-FIX-OPENSUSE gconf2-sabayon.patch
Patch4: gconf2-sabayon.patch
# PATCH-FIX-OPENSUSE gconf2-pk-default-path.patch vuntz@novell.com -- Use the right gconf path for the defaults in the pk helper
Patch5: gconf2-pk-default-path.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Recommends: %{name}-lang = %{version}
%description
GConf is a configuration database system for storing application
preferences. It supports default or mandatory settings set by the
administrator, and changes to the database are instantly applied to all
running applications. It is written for the GNOME desktop but doesn't
require it.
%package -n gconf-sanity-check
Summary: GNOME Configuration Database System - Sanity Check Tool
Group: System/GUI/GNOME
Requires: %{name} = %{version}
%description -n gconf-sanity-check
GConf is a configuration database system for storing application
preferences. It supports default or mandatory settings set by the
administrator, and changes to the database are instantly applied to all
running applications. It is written for the GNOME desktop but doesn't
require it.
This package contains a tool to check that the GConf setup is sane.
%package -n gconf-polkit
Summary: GNOME Configuration Database System - PolicyKit service
Group: System/GUI/GNOME
Requires: %{name} = %{version}
Supplements: packageand(%{name}:polkit}
%description -n gconf-polkit
GConf is a configuration database system for storing application
preferences. It supports default or mandatory settings set by the
administrator, and changes to the database are instantly applied to all
running applications. It is written for the GNOME desktop but doesn't
require it.
This package contains the PolicyKit service that allows to edit the
system-wide defaults from a user session.
%package devel
Summary: Include files and libraries mandatory for development
Group: Development/Libraries/GNOME
Requires: %{name} = %{version}
# For gsettings-schema-convert:
Requires: python
Recommends: python-lxml
Provides: gconf2-doc = %{version}
Obsoletes: gconf2-doc < %{version}
%description devel
This package contains all necessary include files and libraries needed
to develop applications that require these.
%lang_package
%prep
%setup -q -n %{_name}-%{version}
translation-update-upstream
%patch2 -p0
%patch3
%patch4
%patch5 -p1
cp -a %{S:1} %{S:2} .
%build
%configure --with-pic\
--libexecdir=%{_libexecdir}/GConf/2\
--disable-static \
--with-gtk=3.0 \
--disable-orbit
make %{?jobs:-j%jobs}
%install
%makeinstall
%if 0%{?suse_version} <= 1120
%{__rm} %{buildroot}%{_datadir}/locale/en@shaw/LC_MESSAGES/*
%endif
find %{buildroot} -name '*.la' -delete -print
%find_lang %{_name}2
%suse_update_desktop_file gsettings-data-convert
# Empty dir for schemas.
mkdir -p %{buildroot}%{_datadir}/GConf/schemas
mkdir -p %{buildroot}%{_sysconfdir}/gconf/gconf.xml.mandatory
mkdir -p %{buildroot}%{_sysconfdir}/gconf/gconf.xml.schemas
mkdir -p %{buildroot}%{_sysconfdir}/gconf/gconf.xml.system
mkdir -p %{buildroot}%{_sysconfdir}/gconf/gconf.xml.vendor
mkdir -p %{buildroot}%{_sysconfdir}/gconf/gconf.xml.defaults
# Directory for gsettings-data-convert
mkdir -p %{buildroot}%{_datadir}/GConf/gsettings
# Install gconftool-rebuild
install gconftool-rebuild %{buildroot}%{_bindir}
echo xml:merged:%{_sysconfdir}/gconf/gconf.xml.schemas >%{buildroot}%{_sysconfdir}/gconf/schema-install-source
# Install rpm macros
mkdir -p %{buildroot}%{_sysconfdir}/rpm
cp macros.gconf2 %{buildroot}%{_sysconfdir}/rpm
%pre
# FIXME: We should probably remove this entire section for 11.3 (Checked my mboman@suse.de, 2009-02-21)
# Remove probably obsolete /etc/opt/gnome/gconf/schemas and above.
# Needed only for old->10.3->11.x update scenario (now fixed in opt_gnome-compat).
rmdir --ignore-fail-on-non-empty etc/opt/gnome/gconf/schemas 2>/dev/null || :
rmdir --ignore-fail-on-non-empty etc/opt/gnome/gconf 2>/dev/null || :
rmdir --ignore-fail-on-non-empty etc/opt/gnome 2>/dev/null || :
# FIXME: remove this section for 12.2 (we deprecated /etc/gconf/schemas in favor if /usr/share/gconf/schemas during development of 11.2)
rmdir --ignore-fail-on-non-empty etc/gconf/schemas 2>/dev/null || :
# FIXME: remove this section for 11.4+3 (we deprecated /usr/share/gconf/schemas in favor if /usr/share/GConf/schemas during development of 11.4)
rmdir --ignore-fail-on-non-empty usr/share/gconf/schemas 2>/dev/null || :
%post
/sbin/ldconfig
# FIXME: Consider removing the rest of this section for 12.2:
# If it is an update from SuSE Linux version causing orphan files,
# avoid orphan GConf database keys. (#48114).
# Worked-around by database rebuild from scratch after each update of
# gconf2 package at the cost of extra time.
# http://bugzilla.gnome.org/show_bug.cgi?id=306924
# Since SuSE Linux 10.3, scriptlets are correct, but we have to provide
# upgrade protection for third party packages with broken scriptlets
# for a long time.
# During openSUSE 11.2 development, we moved to a merged xml file.
usr/bin/gconftool-rebuild
%postun
/sbin/ldconfig
# No other gconf instance exist and schemas directory, too.
# Delete gconf.xml.schemas and keep others (they can contain local
# customization).
# WARNING: If this package will be renamed to gconf and upgraded from <=9.0,
# the directory /etc/opt/gnome/gconf will be deleted by mistake.
# FIXME: remove test for etc/gconf/schemas for 12.2
if test $1 = 0 -a ! \( -d etc/gconf/schemas -o -d usr/share/gconf/schemas \) ; then
rm -rf etc/gconf/gconf.xml.schemas
fi
%clean
rm -rf %{buildroot}
%files
%defattr(-, root, root)
%doc AUTHORS COPYING ChangeLog NEWS README
%{_bindir}/gconf-merge-tree
%{_bindir}/gconftool-2
%{_bindir}/gconftool-rebuild
%{_bindir}/gsettings-data-convert
%doc %{_mandir}/man1/gconftool-2.1*
%doc %{_mandir}/man1/gsettings-data-convert.1*
%{_datadir}/dbus-1/services/org.gnome.GConf.service
%{_libdir}/girepository-1.0/GConf-2.0.typelib
%{_datadir}/sgml/gconf
%{_libdir}/*.so.*
%dir %{_libdir}/GConf
%dir %{_libdir}/GConf/2
%{_libdir}/GConf/2/*.so*
%if "%{_libdir}" != "%{_libexecdir}"
%dir %{_libexecdir}/GConf
%dir %{_libexecdir}/GConf/2
%endif
%{_libexecdir}/GConf/2/gconfd-2
%{_libdir}/gio/modules/libgsettingsgconfbackend.so
%dir %{_datadir}/GConf
%dir %{_datadir}/GConf/gsettings
%dir %{_datadir}/GConf/schemas
%dir %{_sysconfdir}/gconf
%dir %{_sysconfdir}/gconf/gconf.xml.defaults
%dir %{_sysconfdir}/gconf/gconf.xml.mandatory
%dir %{_sysconfdir}/gconf/gconf.xml.vendor
%dir %{_sysconfdir}/gconf/gconf.xml.system
%dir %{_sysconfdir}/gconf/gconf.xml.schemas
%{_sysconfdir}/gconf/schema-install-source
%config %{_sysconfdir}/gconf/2/
%{_sysconfdir}/xdg/autostart/gsettings-data-convert.desktop
%files -n gconf-sanity-check
%defattr(-, root, root)
%{_libexecdir}/GConf/2/gconf-sanity-check-2
%files -n gconf-polkit
%defattr(-, root, root)
%{_libexecdir}/GConf/2/gconf-defaults-mechanism
%{_datadir}/dbus-1/system-services/org.gnome.GConf.Defaults.service
%{_datadir}/polkit-1/actions/org.gnome.gconf.defaults.policy
%{_sysconfdir}/dbus-1/system.d/org.gnome.GConf.Defaults.conf
%files lang -f %{_name}2.lang
%files devel
%defattr(-, root, root)
%doc %{_datadir}/gtk-doc/html/gconf/
%{_datadir}/aclocal/gconf-2.m4
%{_datadir}/gir-1.0/GConf-2.0.gir
%{_includedir}/gconf/
%{_libdir}/*.so
%{_libdir}/pkgconfig/gconf-2.0.pc
%{_bindir}/gsettings-schema-convert
%{_mandir}/man1/gsettings-schema-convert.1*
%{_sysconfdir}/rpm/macros.gconf2
%changelog
++++++ baselibs.conf ++++++
gconf2
++++++ gconf2-gconftool-reload.patch ++++++
--- gconf/gconftool.c
+++ gconf/gconftool.c
@@ -888,6 +888,8 @@
gconf_engine_unref (conf);
+ g_spawn_command_line_sync ("/usr/bin/killall -q -HUP " GCONF_SERVERDIR "/" GCONFD, NULL, NULL, NULL, NULL);
+
return retval;
}
@@ -901,6 +903,8 @@
gconf_engine_unref (conf);
+ g_spawn_command_line_sync ("/usr/bin/killall -q -HUP " GCONF_SERVERDIR "/" GCONFD, NULL, NULL, NULL, NULL);
+
return retval;
}
++++++ gconf2-pk-default-path.patch ++++++
diff -pur GConf-2.26.2/defaults/gconf-defaults.c GConf-2.26.2.patched/defaults/gconf-defaults.c
--- GConf-2.26.2/defaults/gconf-defaults.c 2009-08-11 22:00:25.000000000 +0200
+++ GConf-2.26.2.patched/defaults/gconf-defaults.c 2009-08-11 22:01:13.000000000 +0200
@@ -797,7 +797,7 @@ do_copy (GConfDefaults *mechani
else {
adata->annotation_key = "org.gnome.gconf.defaults.set-system.prefix";
adata->default_action = "org.gnome.gconf.defaults.set-system";
- cdata->dest_address = "xml:merged:" SYSGCONFDIR "/gconf.xml.system";
+ cdata->dest_address = "xml:merged:" SYSGCONFDIR "/gconf.xml.defaults";
}
polkit_authority_enumerate_actions (mechanism->priv->auth,
++++++ gconf2-sabayon.patch ++++++
Index: gconf/default.path.in
===================================================================
--- gconf/default.path.in.orig
+++ gconf/default.path.in
@@ -13,6 +13,9 @@ xml:readonly:@sysgconfdir@/gconf.xml.man
# wide sources in this file.
include @sysgconfdir@/2/local-mandatory.path
+# Sabayon mandatory path
+include "$(HOME)/.gconf.path.mandatory"
+
# Now see where users want us to look - basically the user can stick arbitrary
# sources in a ~/.gconf.path file and they're inserted here
include "$(HOME)/.gconf.path"
@@ -23,6 +26,9 @@ xml:readwrite:$(HOME)/.gconf
# Then look at the systemwide customizations
xml:readonly:@sysgconfdir@/gconf.xml.defaults
+# Sabayon optional path
+include "$(HOME)/.gconf.path.defaults"
+
# To read in any defaults settings that the Sys Admin may have created
# prior to a desktop system upgrade. The SysAdmin can stick default values
# system-wide in this file.
++++++ gconf2-schemas-path.patch ++++++
Index: gconf/default.path.in
===================================================================
--- gconf/default.path.in.orig
+++ gconf/default.path.in
@@ -20,16 +20,17 @@ include "$(HOME)/.gconf.path"
# Give users a default storage location, ~/.gconf
xml:readwrite:$(HOME)/.gconf
-# Location for system-wide settings that are set by the defaults mechanism
-xml:readonly:@sysgconfdir@/gconf.xml.system
+# Then look at the systemwide customizations
+xml:readonly:@sysgconfdir@/gconf.xml.defaults
# To read in any defaults settings that the Sys Admin may have created
# prior to a desktop system upgrade. The SysAdmin can stick default values
# system-wide in this file.
include @sysgconfdir@/2/local-defaults.path
-# Finally, look at the systemwide defaults
-xml:readonly:@sysgconfdir@/gconf.xml.defaults
-
+# Then check vendor preferences
+xml:readonly:@sysgconfdir@/gconf.xml.vendor
+# And finally look at the defaults defined by installed schemas
+xml:readonly:@sysgconfdir@/gconf.xml.schemas
++++++ gconftool-rebuild ++++++
#! /bin/bash
if test "$1" = --help ; then
echo "Usage: $0"
echo "Rebuilds gconf schemas database from installed schemas."
echo "or: $0 OPTION"
echo ""
echo "Needs root privileges."
echo ""
echo "These option names may not be abbreviated."
echo " --verbose explain what is being done"
echo " --help display this help and exit"
echo " --version output version information and exit"
echo ""
echo "Report bugs to http://bugzilla.novell.com/."
exit
fi
if test "$1" = --version ; then
echo "gconftool-rebuild 2.1"
exit
fi
if test "$1" = --verbose ; then
function vecho {
echo "$@"
}
VERBOSE=" --verbose"
UNVERBOSE=""
else
function vecho {
:
}
VERBOSE=""
UNVERBOSE=" >/dev/null"
fi
if test "$UID" != 0 -a "$USER" != root; then
echo "You must be root to start $0." >&2
exit 1
fi
vecho "Rebuilding GConf database from scratch..."
export GCONF_CONFIG_SOURCE=`/usr/bin/gconftool-2 --get-default-source`
GCONF_SCHEMAS_DIR=${GCONF_CONFIG_SOURCE#*:*:}
vecho ""
vecho "Removing old database..."
rm$VERBOSE -rf $GCONF_SCHEMAS_DIR
vecho ""
vecho "Setting default source..."
umask 0022
mkdir$VERBOSE $GCONF_SCHEMAS_DIR
shopt -s nullglob
cd /usr/share/GConf/schemas
vecho ""
vecho "Installing database entries from schemas..."
eval "(/bin/ls /usr/share/GConf/schemas/*.schemas | xargs /usr/bin/gconftool-2 --makefile-install-rule) $UNVERBOSE"
vecho ""
vecho "Installing database entries from entries..."
for SCHEMAS in /usr/share/GConf/schemas/*.entries ; do
eval /usr/bin/gconftool-2 --direct --config-source=$GCONF_CONFIG_SOURCE --load $SCHEMAS$UNVERBOSE
done
# /usr/share/gconf/schemas for compatibility with old packages (<=openSUSE 11.3 and SLED11), can be removed for 11.4+3
if test -d /usr/share/gconf/schemas ; then
cd /usr/share/gconf/schemas
vecho ""
vecho "Installing database entries from schemas..."
eval "(/bin/ls /usr/share/gconf/schemas/*.schemas | xargs /usr/bin/gconftool-2 --makefile-install-rule) $UNVERBOSE"
vecho ""
vecho "Installing database entries from entries..."
for SCHEMAS in /usr/share/gconf/schemas/*.entries ; do
eval /usr/bin/gconftool-2 --direct --config-source=$GCONF_CONFIG_SOURCE --load $SCHEMAS$UNVERBOSE
done
fi
# /etc/gconf/schemas for compatibility with old packages (<=openSUSE 11.1 and SLED11), can be removed for 12.2
if test -d /etc/gconf/schemas ; then
cd /etc/gconf/schemas
vecho ""
vecho "Installing database entries from schemas..."
eval "(/bin/ls /etc/gconf/schemas/*.schemas | xargs /usr/bin/gconftool-2 --makefile-install-rule) $UNVERBOSE"
vecho ""
vecho "Installing database entries from entries..."
for SCHEMAS in /etc/gconf/schemas/*.entries ; do
eval /usr/bin/gconftool-2 --direct --config-source=$GCONF_CONFIG_SOURCE --load $SCHEMAS$UNVERBOSE
done
fi
# /opt/gnome for compatibility with old packages (<=OpenSUSE 10.2 and SLED10), can be removed for 11.3
if test -d /etc/opt/gnome/gconf/schemas ; then
cd /etc/opt/gnome/gconf/schemas
vecho ""
vecho "Installing database entries from schemas in /etc/opt/gnome..."
for SCHEMAS in /etc/opt/gnome/gconf/schemas/*.schemas ; do
eval /usr/bin/gconftool-2 --makefile-install-rule $SCHEMAS$UNVERBOSE
done
vecho ""
vecho "Installing database entries from entries in /etc/opt/gnome..."
for SCHEMAS in /etc/opt/gnome/gconf/schemas/*.entries ; do
eval /usr/bin/gconftool-2 --direct --config-source=$GCONF_CONFIG_SOURCE --load $SCHEMAS$UNVERBOSE
done
fi
if test -d /usr/local/etc/gconf/schemas ; then
cd /usr/local/etc/gconf/schemas
vecho ""
vecho "Installing database entries from schemas in /usr/local..."
for SCHEMAS in /usr/local/etc/gconf/schemas/*.schemas ; do
eval /usr/bin/gconftool-2 --makefile-install-rule $SCHEMAS$UNVERBOSE
done
vecho ""
vecho "Installing database entries from entries in /usr/local..."
for SCHEMAS in /usr/local/etc/gconf/schemas/*.entries ; do
eval /usr/bin/gconftool-2 --direct --config-source=$GCONF_CONFIG_SOURCE --load $SCHEMAS$UNVERBOSE
done
fi
vecho ""
vecho "Done."
++++++ macros.gconf2 ++++++
#
# RPM macros for gconf applications.
#
# (c) 2006-2007 SUSE LINUX
# Author: Stanislav Brabec
#
# Usage:
#
# Preamble:
# %gconf_schemas_requires
# (note: %gconf_schemas_prereq works, but is deprecated)
#
# %install
# ...
# %find_gconf_schemas
# or
# %def_gconf_schemas subpackage1
# %add_gconf_schemas schemas_name1
# %add_gconf_schemas schemas_name2
# %def_gconf_schemas subpackage2
# %add_gconf_schemas schemas_name3
# %add_gconf_schemas schemas_name4
# %end_gconf_schemas
# schemas names are without path and suffix
#
# %pre -f %{name}.schemas_pre
#
# %preun -f %{name}.schemas_preun
#
# %posttrans -f %{name}.schemas_posttrans
#
# %files -f %{name}.schemas_list
# or
# %files -f subpackage.schemas_list
#
#
# In case of more -f needed for one %files:
#
# %install
# ...
# %find_gconf_schemas
# %find_lang %{name}
#
# %files -f %{name}.schemas_list -f %{name}.lang
#
%gconf_schemas_requires \
Requires(pre): /usr/bin/gconftool-2 coreutils diffutils \
Requires(preun): /usr/bin/gconftool-2 coreutils diffutils \
Requires(posttrans): /usr/bin/gconftool-2 coreutils diffutils
# This macro is deprecated. Use %gconf_schemas_requires instead.
%gconf_schemas_prereq PreReq: /usr/bin/gconftool-2 coreutils diffutils
%end_gconf_schemas() \
echo 'if test "x$UNINSTALL_SCHEMA_FILES" != "x"; then\
/usr/bin/gconftool-2 --makefile-uninstall-rule $UNINSTALL_SCHEMA_FILES >/dev/null\
rm -f $UNINSTALL_SCHEMA_FILES\
fi\
if test "x$INSTALL_SCHEMA_FILES" != "x"; then\
/usr/bin/gconftool-2 --makefile-install-rule $INSTALL_SCHEMA_FILES >/dev/null\
fi\
rmdir /usr/share/GConf/schemas/outdated 2>/dev/null || true' >>$GCONF_SCHEMAS_NAME.schemas_posttrans\
echo ' rmdir /usr/share/GConf/schemas/outdated 2>/dev/null || true\
fi' >>$GCONF_SCHEMAS_NAME.schemas_preun\
%{nil}
%def_gconf_schemas() \
if test -n "$GCONF_SCHEMAS_NAME" ; then\
%end_gconf_schemas\
fi\
GCONF_SCHEMAS_NAME=%1\
echo '%defattr (644, root, root, 755)' >%1.schemas_list\
echo 'mkdir -p /usr/share/GConf/schemas/outdated' >%1.schemas_pre\
echo 'export GCONF_CONFIG_SOURCE=`/usr/bin/gconftool-2 --get-default-source`\
INSTALL_SCHEMA_FILES=\
UNINSTALL_SCHEMA_FILES=' >%1.schemas_posttrans\
echo 'if test "$1" == "0"; then\
if test -x /usr/bin/gconftool-2 ; then\
export GCONF_CONFIG_SOURCE=`/usr/bin/gconftool-2 --get-default-source`\
fi' >%1.schemas_preun\
%{nil}
%_add_gconf_schemas() \
echo $SCHEMAS >>$GCONF_SCHEMAS_NAME.schemas_list\
echo "if test -f ${SCHEMAS#/} ; then\
cp -f ${SCHEMAS#/} /usr/share/GConf/schemas/outdated/\
elif test -f /usr/share/gconf/schemas/${SCHEMAS#/usr/share/GConf/schemas/} ; then\
# Migration from /usr/share/gconf/schemas to /usr/share/GConf/schemas. Can be removed for openSUSE 11.4+3\
cp -f /usr/share/gconf/schemas/${SCHEMAS#/usr/share/GConf/schemas/} /usr/share/GConf/schemas/outdated/\
elif test -f /etc/gconf/schemas/${SCHEMAS#/usr/share/GConf/schemas/} ; then\
# Migration from /etc/gconf/schemas to /usr/share/GConf/schemas. Can be removed for openSUSE 12.2\
cp -f /etc/gconf/schemas/${SCHEMAS#/usr/share/GConf/schemas/} /usr/share/GConf/schemas/outdated/\
fi" >>$GCONF_SCHEMAS_NAME.schemas_pre\
echo "if test -f /usr/share/GConf/schemas/outdated/${SCHEMAS#/usr/share/GConf/schemas/}; then\
cmp --quiet /usr/share/GConf/schemas/outdated/${SCHEMAS#/usr/share/GConf/schemas/} ${SCHEMAS#/}\
if test \\\$? != 0; then\
UNINSTALL_SCHEMA_FILES=\\\"\\\$UNINSTALL_SCHEMA_FILES /usr/share/GConf/schemas/outdated/${SCHEMAS#/usr/share/GConf/schemas/}\\\"\
INSTALL_SCHEMA_FILES=\\\"\\\$INSTALL_SCHEMA_FILES ${SCHEMAS#/}\\\"\
else\
rm -f /usr/share/GConf/schemas/outdated/${SCHEMAS#/usr/share/GConf/schemas/}\
fi\
else\
INSTALL_SCHEMA_FILES=\\\"\\\$INSTALL_SCHEMA_FILES ${SCHEMAS#/}\\\"\
fi" >>$GCONF_SCHEMAS_NAME.schemas_posttrans\
echo " if test -x /usr/bin/gconftool-2 ; then\
if test -f /usr/share/GConf/schemas/outdated/${SCHEMAS#/usr/share/GConf/schemas/} ; then\
/usr/bin/gconftool-2 --makefile-uninstall-rule /usr/share/GConf/schemas/outdated/${SCHEMAS#/usr/share/GConf/schemas/} >/dev/null\
elif test -f ${SCHEMAS#/} ; then\
/usr/bin/gconftool-2 --makefile-uninstall-rule ${SCHEMAS#/} >/dev/null\
fi\
fi\
rm -f /usr/share/GConf/schemas/outdated/${SCHEMAS#/usr/share/GConf/schemas/}" >>$GCONF_SCHEMAS_NAME.schemas_preun\
%{nil}
%add_gconf_schemas() \
mkdir -p $RPM_BUILD_ROOT/usr/share/GConf/schemas\
SCHEMAS=/usr/share/GConf/schemas/%1.schemas\
mv $RPM_BUILD_ROOT/etc/gconf/schemas/%1.schemas ${RPM_BUILD_ROOT}${SCHEMAS}\
%_add_gconf_schemas\
%{nil}
%find_gconf_schemas() \
test -d $RPM_BUILD_ROOT/etc/gconf/schemas\
mkdir -p $RPM_BUILD_ROOT/usr/share/GConf/schemas\
%def_gconf_schemas %{name}\
for SCHEMAS in $RPM_BUILD_ROOT/etc/gconf/schemas/*.schemas ; do\
test -f $SCHEMAS\
SCHEMASFILENAME=${SCHEMAS#$RPM_BUILD_ROOT/etc/gconf/schemas/}\
NEWSCHEMAS=/usr/share/GConf/schemas/$SCHEMASFILENAME\
mv $SCHEMAS ${RPM_BUILD_ROOT}${NEWSCHEMAS}\
SCHEMAS=$NEWSCHEMAS\
%_add_gconf_schemas\
done\
%end_gconf_schemas\
%{nil}
--
To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org
For additional commands, e-mail: opensuse-commit+help@opensuse.org