diff --git a/GConf2.spec b/GConf2.spec index a82aa23..7a1b994 100644 --- a/GConf2.spec +++ b/GConf2.spec @@ -5,7 +5,7 @@ Summary: A process-transparent configuration system Name: GConf2 Version: 2.20.1 -Release: 1%{?dist} +Release: 2%{?dist} License: LGPLv2+ Group: System Environment/Base Source: http://download.gnome.org/sources/GConf/2.20/GConf-%{version}.tar.bz2 @@ -34,6 +34,9 @@ Patch2: sync-leak.patch Patch3: dir-leak.patch Patch4: dead-leak.patch +# Add system-wide settings location +Patch5: system-settings.patch + %description GConf is a process-transparent configuration database API used to store user preferences. It has pluggable backends and features to @@ -72,6 +75,7 @@ which require GTK+. %patch2 -p1 -b .sync-leak %patch3 -p1 -b .dir-leak %patch4 -p1 -b .dead-leak +%patch5 -p1 -b .system-settings %build rm -f libtool @@ -84,8 +88,8 @@ make rm -fr $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT -chmod 755 $RPM_BUILD_ROOT/%{_sysconfdir}/gconf/gconf.xml.defaults -chmod 755 $RPM_BUILD_ROOT/%{_sysconfdir}/gconf/gconf.xml.mandatory +#chmod 755 $RPM_BUILD_ROOT/%{_sysconfdir}/gconf/gconf.xml.defaults +#chmod 755 $RPM_BUILD_ROOT/%{_sysconfdir}/gconf/gconf.xml.mandatory mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/gconf/schemas @@ -110,6 +114,7 @@ rm -rf $RPM_BUILD_ROOT %dir %{_sysconfdir}/gconf/2 %dir %{_sysconfdir}/gconf/gconf.xml.defaults %dir %{_sysconfdir}/gconf/gconf.xml.mandatory +%dir %{_sysconfdir}/gconf/gconf.xml.system %dir %{_sysconfdir}/gconf/schemas %{_bindir}/* %{_libexecdir}/gconfd-2 @@ -133,6 +138,9 @@ rm -rf $RPM_BUILD_ROOT %{_libdir}/pkgconfig/* %changelog +* Sun Nov 3 2007 Matthias Clasen - 2.20.1-2 +- Add a location for system-wide settings + * Mon Oct 15 2007 Matthias Clasen - 2.20.1-1 - 2.20.1 (translation and documentation updates) diff --git a/system-settings.patch b/system-settings.patch new file mode 100644 index 0000000..7836e7a --- /dev/null +++ b/system-settings.patch @@ -0,0 +1,25 @@ +diff -up GConf-2.20.1/Makefile.am.system-settings GConf-2.20.1/Makefile.am +--- GConf-2.20.1/Makefile.am.system-settings 2007-11-03 16:00:34.000000000 -0400 ++++ GConf-2.20.1/Makefile.am 2007-11-03 16:01:13.000000000 -0400 +@@ -21,6 +21,8 @@ install-data-local: + -chmod 755 $(DESTDIR)$(sysgconfdir)/gconf.xml.defaults + -mkdir -p $(DESTDIR)$(sysgconfdir)/gconf.xml.mandatory + -chmod 755 $(DESTDIR)$(sysgconfdir)/gconf.xml.mandatory ++ -mkdir -p $(DESTDIR)$(sysgconfdir)/gconf.xml.system ++ -chmod 755 $(DESTDIR)$(sysgconfdir)/gconf.xml.system + + pkgconfigdir = $(libdir)/pkgconfig + pkgconfig_DATA = gconf-2.0.pc +diff -up GConf-2.20.1/gconf/default.path.in.system-settings GConf-2.20.1/gconf/default.path.in +--- GConf-2.20.1/gconf/default.path.in.system-settings 2007-11-03 15:57:35.000000000 -0400 ++++ GConf-2.20.1/gconf/default.path.in 2007-11-03 15:59:04.000000000 -0400 +@@ -20,6 +20,9 @@ include "$(HOME)/.gconf.path" + # Give users a default storage location, ~/.gconf + xml:readwrite:$(HOME)/.gconf + ++# Location for system-wide settings. ++xml:readonly:@sysgconfdir@/gconf.xml.system ++ + # 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.