File gnome-settings-daemon.spec of Package gnome-settings-daemon

#
# spec file for package gnome-settings-daemon (Version 2.24.0)
#
# Copyright (c) 2009 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/
#

# norootforbuild


Name:           gnome-settings-daemon
%define _name gnome-settings-daemon
BuildRequires:  fdupes gnome-common gnome-desktop-devel gnome-patch-translation gstreamer-0_10-plugins-base-devel intltool libglade2-devel libgnomekbd-devel libnotify-devel update-desktop-files xorg-x11
License:        GPL v2 or later
Group:          System/GUI/GNOME
Version:        2.24.0
Release:        3.<RELEASE21>
Summary:        Settings daemon for the GNOME desktop
Source:         %{_name}-%{version}.tar.bz2
# PATCH-FEATURE-OPENSUSE gnome-settings-daemon-system-proxy-configuration.diff
Patch2:         gnome-settings-daemon-system-proxy-configuration.diff
# PATCH-FIX-UPSTREAM gnome-settings-daemon-bnc369263-broken-xkb-layout.patch bnc369263 bfo16105 vuntz@novell.com -- This is a hack to fix a major bug.
Patch4:         gnome-settings-daemon-bnc369263-broken-xkb-layout.patch
# PATCH-FIX-UPSTREAM gnome-settings-daemon-bnc427745-force-dpi.patch bnc427745 bgo553652 vuntz@novell.com -- Force the DPI to 96 right now to avoid big fonts.
Patch6:         gnome-settings-daemon-bnc427745-force-dpi.patch
# PATCH-FEATURE-UPSTREAM gnome-settings-daemon-low-disk-space.patch bgo557647 vuntz@novell.com -- Show low disk space notifications
Patch7:         gnome-settings-daemon-low-disk-space.patch
# PATCH-FEATURE-UPSTREAM gnome-settings-daemon-apport-monitor.patch bnc439203 jblunck@novell.com -- Add apport monitoring plugin
Patch8:         gnome-settings-daemon-apport-monitor.patch
# PATCH-FEATURE-UPSTREAM gnome-settings-daemon-randr-gerror.diff federico@novell.com - Add GError reporting to the GnomeRR API for RANDR
Patch9:         gnome-settings-daemon-randr-gerror.diff
# PATCH-FEATURE-UPSTREAM gnome-settings-daemon-bnc467558-bgo545115-confirmation.diff bnc467558 bgo545115 federico@novell.com - Timeout-confirmation dialog when changing the RANDR configuration
Patch11:        gnome-settings-daemon-bnc467558-bgo545115-randr-confirmation.diff
# PATCH-FEATURE-OPENSUSE gnome-settings-daemon-bnc461755-randr-rotate-wacom.diff bnc461755 federico@novell.com - Add the option of rotating a Wacom tablet when rotating the monitor with RANDR
Patch12:        gnome-settings-daemon-bnc461755-randr-rotate-wacom.diff
# PATCH-FIX-UPSTREAM gnome-settings-daemon-bnc486019-confirmation-dialog-transient.diff bnc486019 federico@novell.com - Make the RANDR confirmation dialog not appear below its parent window
Patch13:        gnome-settings-daemon-bnc486019-confirmation-dialog-transient.diff
# PATCH-FIX-UPSTREAM gnome-settings-daemon-bnc486093-centralize-no-matching-config.diff bnc486093 federico@novell.com - Fix spurious errors about not finding a matching RANDR configuration
Patch14:        gnome-settings-daemon-bnc486093-centralize-no-matching-config.diff
# PATCH-FIX-OPENSUSE gnome-settings-daemon-bnc478772-ignore-user-if-xorg-conf-is-newer.diff bnc478772 federico@novell.com - Let Sax2 override the user's RANDR configuration if Sax's is newer
Patch15:        gnome-settings-daemon-bnc478772-ignore-user-if-xorg-conf-is-newer.diff
# PATCH-FIX-UPSTREAM gnome-settings-daemon-bnc492020-increase-randr-timeout.diff bnc492020 federico@novell.com - Increase timeout in RANDR confirmation dialog
Patch16:        gnome-settings-daemon-bnc492020-increase-randr-timeout.diff
Url:            http://www.gnome.org
Requires:       %{name}-lang = %{version}
Obsoletes:      resapplet
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
AutoReqProv:    on
%gconf_schemas_prereq

%description
gnome-settings-daemon provides a daemon run by all GNOME sessions to
provide live access to configuration settings and the changes done to
them as well as basic services like a clipboard manager, controlling
the startup of the screensaver, etc.

This module was previously part of GNOME Control Center, but has been
splitted from it for a more general use.



Authors:
--------
    Jonathan Blandford <jrb@redhat.com>
    William Jon McCann <mccann@jhu.edu>
    Rodrigo Moya <rodrigo@gnome-db.org>
    Denis Washington <denisw@svn.gnome.org>

%package devel
License:        GPL v2 or later
Summary:        Development package for the GNOME settings daemon
Group:          System/GUI/GNOME
AutoReqProv:    on
Requires:       %{name} = %{version} dbus-1-devel dbus-1-glib-devel glib2-devel gtk2-devel gnome-desktop-devel gnome-menus-devel

%description devel
gnome-settings-daemon provides a daemon run by all GNOME sessions to
provide live access to configuration settings and the changes done to
them as well as basic services like a clipboard manager, controlling
the startup of the screensaver, etc.

This package includes header files used for client applications to
contact the settings daemon via its DBus interface.



Authors:
--------
    Jonathan Blandford <jrb@redhat.com>
    William Jon McCann <mccann@jhu.edu>
    Rodrigo Moya <rodrigo@gnome-db.org>
    Denis Washington <denisw@svn.gnome.org>

%lang_package
%prep
%setup -q -n %{_name}-%{version}
gnome-patch-translation-prepare
%patch2 -p1
%patch4 -p1
%patch6 -p1
%patch7 -p1
%patch8 -p1
%patch9 -p1
%patch11 -p1
%patch12 -p1
%patch13 -p1
%patch14 -p1
%patch15 -p1
%patch16 -p1
gnome-patch-translation-update

%build
autoreconf -f -i
# needed for control-center-2.16.1:
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
%configure\
	--libexecdir=%{_prefix}/lib/gnome-settings-daemon\
	--disable-static\
	--disable-scrollkeeper\
	--disable-update-mimedb
make %{?jobs:-j%jobs}

%install
%makeinstall
# DESTDIR=$RPM_BUILD_ROOT mime-info-to-mime
# oh dear
rm $RPM_BUILD_ROOT/%{_libdir}/gnome-settings-daemon-2.0/*.*a
%find_lang %{_name}
%find_gconf_schemas
cat %{name}.schemas_list >gnome-%{name}.lst
%fdupes $RPM_BUILD_ROOT

%clean
rm -rf $RPM_BUILD_ROOT

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%pre -f %{name}.schemas_pre
%posttrans -f %{name}.schemas_posttrans

%preun -f %{name}.schemas_preun

%files -f gnome-%{name}.lst
%defattr(-,root,root)
%doc AUTHORS COPYING ChangeLog NEWS
%{_datadir}/dbus-1/services/org.gnome.SettingsDaemon.service
%{_datadir}/gnome-settings-daemon
%{_prefix}/lib/gnome-settings-daemon
%{_libdir}/gnome-settings-daemon-2.0
%{_sysconfdir}/xdg/autostart/*.desktop
%{_datadir}/icons/*/*/*

%files lang -f %{_name}.lang

%files devel
%defattr (-, root, root)
%{_includedir}/gnome-settings-daemon-2.0
%{_libdir}/pkgconfig/*.pc

%changelog
* Fri May 15 2009 federico@novell.com
- Added gnome-settings-daemon-bnc492020-increase-randr-timeout.diff to
  fix bnc#492020 - Increase the timeout in the RANDR confirmation
  dialog to 30 seconds, so monitors will have a chance to settle down
  and the user will be able to read the message.
- Added gnome-settings-daemon-bnc478772-ignore-user-if-xorg-conf-is-newer.diff
  to fix bnc#478772 - SaX2 can now override the user's RANDR
  configuration if SaX's configuration is newer than the user's.
- Added gnome-settings-daemon-bnc486093-centralize-no-matching-config.diff
  to fix bnc#486093 - avoid spurious errors about not finding a
  suitable RANDR configuration.
- Added gnome-settings-daemon-bnc486019-confirmation-dialog-transient.diff
  to fix bnc#486019 - the confirmation dialog for RANDR changes could
  appear under its parent window, making it hard to see.
- Added libnotify-devel to BuildRequires, so that messages from
  gnome-settings-daemon appear in notification bubbles instead of
  normal dialog boxes.  Fixes bnc#491578.
* Tue Feb 10 2009 federico@suse.de
- Updated gnome-settings-daemon-system-proxy-configuration.diff to fix
  bnc#456131 - the system's proxy configuration was not being set in
  GNOME's proxy configuration.
- Added gnome-settings-daemon-randr-gerror.diff.  This makes the RANDR
  plugin for gnome-settings-daemon process GError arguments from the
  GnomeRR API, so that it can give good error reporting.
- Removed gnome-settings-daemon-randr-fnf7.diff as it is already contained
  within the patch above.
- Added gnome-settings-daemon-bnc467558-bgo545115-randr-confirmation.diff
  to fix bnc#467558 - present a confirmation dialog after changing the
  display parameters, in case we need to restore the previous
  configuration.
- Added gnome-settings-daemon-bnc461755-randr-rotate-wacom.diff to fix
  bnc#461755 - Add the option of rotating Wacom tablets when the
  display is rotated.
* Mon Oct 27 2008 jblunck@suse.de
- Add gnome-settings-daemon-apport-monitor.patch, to launching apport-gtk in
  case a new crash report is available (bnc#439203)
* Thu Oct 23 2008 vuntz@novell.com
- Add gnome-settings-daemon-low-disk-space.patch, to help drop
  gnome-volume-manager.
* Fri Oct 03 2008 mboman@suse.de
- Update to version 2.24.0:
  - Fix the fix for read-only home directories (bgo#530975)
  - Make the volume popup not crash when invoking it on any screen but
  the first when using a compositing manager (bgo#551677)
  - Add GPLv2 copyright notice explicitly so that newer versions of
  autotools don't declare us GPLv3 (bgo#551956)
  - Specify GTK modules to load in a GConf directory instead of the
  single /desktop/gnome/gtk-modules key (bgo#539840)
  - Also allow linking the module state to other boolean keys by using
  a string value that is the name of the key to use
  - Made the housekeeping plugin less aggressive by default (bgo#552680)
  - Updated translations
* Fri Sep 26 2008 vuntz@novell.com
- Add gnome-settings-daemon-bnc427745-force-dpi.patch to force the
  DPI to 96. This fixes huge fonts on login on recent laptops.
  Fixes bnc#427745.
* Thu Sep 18 2008 rodrigo@novell.com
- Update to 2.23.92:
  + Try harder to use the keyboard layout passed by GDM (bgo#551062)
  + Updated translations
* Wed Sep 10 2008 federico@novell.com
- Added gnome-settings-daemon-randr-fnf7.diff to support switching
  between display output modes on laptop by using the Fn-F7 hotkey
  (i.e. XF86Display).
* Tue Sep 09 2008 federico@novell.com
- Made gnome-settings-daemon obsolete resapplet, since g-s-d now provides
  the tray icon to set display settings.
* Mon Sep 01 2008 rodrigo@suse.de
- Update to version 2.23.91:
  - Removed translatable property on stock gtk-close (Claude Paroz)
  - Fix a constness warning (Jens Granseuer)
  - Fix a crash due to an incorrect signal handler definition (William Jon
  McCann)
  - Use a scale factor instead of a fixed DPI (William Jon McCann)
  - Use g_warning instead of g_error when setup fails so we don't abort
  (Jens Granseuer) (bgo#549483)
  - Updated translations
* Mon Sep 01 2008 rodrigo@suse.de
- Actually remove upstreamed patch from package.
* Tue Aug 26 2008 rodrigo@suse.de
- Update to version 2.23.90:
  - PulseAudio check to not ouput "no" twice (Jens Granseuer)
  - Add status icon when a11y hotkeys are enabled, and display Universal
  Access preferences when it is clicked (William Jon McCann) (bgo#526070)
  - Simplify libnotify check, fix fontconfig result output (Jens Granseuer)
  - Put the Glade file where all the others are (jens Granseuer)
  - Remove some unnecessary boilerplate (Jens Granseuer)
  - Use g_file_monitor instead of g_file_monitor_file/_directory (Jens
  Granseuer) (bgo#546372)
  - Remove warning that isn't (Jens Granseuer)
  - Fixed crash in randr startup (Jens Granseuer)
  - Fail xrandr initialization if we couldn't start xrandr (Matthias Clasen)
  (bgo#546446)
  - Try harder to clean up xrandr in _stop  so we can enable/disable the plugin
  on the fly (Jens Granseuer)
  - For LIBSOUNDS, check for libgnomeui, not just libgnome (Federico Mena Quintero)
  - Add sexy labels when setting up dual monitors (Federico Mena Quintero)
  - Add a separator to the menu before "Configure display settings" (Federico Mena
  Quintero)
  - Use GDK to get DPI (William Jon McCann)
  - Updated translations
- Remove upstreamed patch
* Mon Aug 18 2008 cthiel@suse.de
- fix build
* Fri Aug 15 2008 federico@novell.com
- Updated to gnome-settings-daemon-2.23.6.
  + Bugs fixed: bgo#544347, bgo#544737, bgo#544733, bgo#165343, bgo#539786,
  bgo#543289, bgo#543095, bgo#542275, bgo#538699, bgo#533198
- Added gnome-settings-daemon-monitor-labeling.diff to implement
  labeling of monitors in the tray icon, and monitor rotation support
  as well.
* Fri Jun 20 2008 maw@suse.de
- Update to version 2.23.4:
  + Bugs fixed: bgo#523743, bgo#523159, bgo#507386, bgo#525042,
  bgo#524425, bgo#525426, bgo#530356, bgo#531487, bgo#531589,
  bgo#530975, bgo#531861, bgo#531862, bgo#522017, bgo#531665,
  bgo#536177, bgo#490374, bgo#536581, and bgo#531868
  + Updated translations
- Drop obsolete patches: gnome-settings-daemon-randr-1.2.diff
* Thu May 29 2008 federico@novell.com
- Updated gnome-settings-daemon-randr-1.2.diff with the latest fixes from upstream.
* Mon May 26 2008 vuntz@suse.de
- Add gnome-settings-daemon-bnc369263-broken-xkb-layout.patch to
  unbreak corrupted keymaps on automatic login. This is only a
  workaround for openSUSE 11.0, unfortunately, since nobody found
  the right fix yet. Fix bnc#369263.
* Tue May 06 2008 rodrigo@suse.de
- Updated gnome-settings-daemon-system-proxy-configuration.patch
  to add a missing return in non-void function
* Wed Apr 30 2008 rodrigo@suse.de
- Updated gnome-settings-daemon-system-proxy-configuration.patch
  to make it apply again
* Fri Apr 25 2008 federico@novell.com
- Added gnome-settings-daemon-randr-1.2.diff to integrate the new
  functionality to configure RandR 1.2.
* Fri Apr 11 2008 maw@suse.de
- Update to version 2.22.1:
  + Fix segfault when shutting down the typing break monitor (Jens Granseuer)
  (bgo#521786)
  + Set window type hint on the volume popup (bgo#522232)
  + Remove unused properties from actions GUI
  + Reset opacity when removing the timeout (bgo#522499)
  + Fix handling of child process
  + Add a tool to test media keys
  + Add some profiling code
  + Fix compiler warnings
  + Fix leaks (bgo#524183)
  + Add more stuff to the configuration summary
  + Don't eat key events (bgo#523676)
  + Apply keyboard settings on startup (bgo#525440)
  + Make "Home" keybinding work again
  + Updated translations.
* Thu Mar 13 2008 maw@suse.de
- Update to version 2.22.0:
  + Actually link against libXi when building with XInput support
  (bgo#519488)
  + Disable debug by default
  + Don't pass GErrorss if we're not going to use them
  + Remove obsolete settings for the removed default editor plugin
  + Updated translations.
* Thu Mar 13 2008 sbrabec@suse.cz
- Custom look'n'feel gconf keys moved to gconf2-branding-openSUSE.
* Tue Feb 19 2008 maw@suse.de
- Update to version 2.21.91:
  + Use a flat directory instead of a hierarchy to install plugins
  into (bgo#513246)
  + Don't scan the plugins directory recursively (#513246)
  + Install the settings plugin to a versioned directory to fix install
  with libdir == libexecdir (bgo#504203)
  + Review short and long descriptions for GConf keys (bgo#514047)
  + Don't crash when running the screensaver fails (bgo#514385)
  + Rename src folder to gnome-settings-daemon (bgo#511820)
  + Add uninstalled.pc file for building against an uninstalled copy of
  g-s-d (bgo#511820)
  + Add separate checks for libbackground and use external copy
  + Use gnome_settings_daemon for the GConf path (bgo#514411)
  + Release the Glade XML ASAP and keep track of the 2 widgets we need
  + Make sure we return a GError if initialization fails (bgo#514926)
  + Load the XKB settings initially (bgo#511771)
  + Fix leaks
  + Unref the GConfClient only after done with it
  + Check for xinput (bgo#514942)
  + Fix copy'n'paste error (bgo#515426)
  + Declare variables at the beginning of a block to make older compilers
  happy
  + Add back support for defining plugin start order
  + Assign return value from g_slist_sort to the plugins list variable
  (bgo#515340)
  + Replace gnome_vfs usage with GIO (bgo#513990).
* Fri Feb 01 2008 rodrigo@suse.de
- Update to version 2.21.90.2:
  * Use correct binary path in DBus service file
  * Updated translations
* Fri Jan 25 2008 rodrigo@suse.de
- Added missing unpackaged files
- Depend on gstreamer-0_10-plugins-base-devel for the sound module
* Wed Jan 16 2008 rodrigo@suse.de
- Disabled patches that need rebase.
- No need for gnome-patch-translation
- Updated BuildRequires
* Wed Jan 16 2008 rodrigo@suse.de
- First version of new gnome-settings-daemon package.
openSUSE Build Service is sponsored by