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: NetworkManager-devel fdupes gnome-common gnome-desktop-devel gnome-patch-translation gstreamer-0_10-plugins-base-devel intltool libglade2-devel libgnomekbd-devel libpulse-devel update-desktop-files xorg-x11
License: GPL v2 or later
Group: System/GUI/GNOME
Version: 2.24.0
Release: 14
Summary: Settings daemon for the GNOME desktop
Source: %{_name}-%{version}.tar.bz2
Source1: bnc527361.tgz
# PATCH-FEATURE-OPENSUSE gnome-settings-daemon-system-proxy-configuration.diff
Patch2: gnome-settings-daemon-system-proxy-configuration.diff
# 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-FIX-UPSTREAM gnome-settings-daemon-bnc442412-ctrl-alt-del.patch bnc442412 bgo556307 vuntz@novell.com -- Show shutdown dialog instead of logout dialog when ctrl+alt+del is pressed
Patch10: gnome-settings-daemon-bnc442412-ctrl-alt-del.patch
# 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-SUSE bnc_448721.patch bnc#448721 mauro@suse.de -- updated ru translation.
Patch13: bnc_448721.patch
# PATCH-FEATURE-UPSTREAM gnome-settings-daemon-bnc462640-mute-action.patch bnc462640 bgo572365 vuntz@novell.com -- Mute button should always mute sound instead of toggling mute status
Patch14: gnome-settings-daemon-bnc462640-mute-action.patch
# PATCH-FEATURE-UPSTREAM gsd-speed-disable-xrdb.diff bnc470366 mmeeks@novell.com -- back-port speedup
Patch15: gsd-speed-disable-xrdb.diff
# PATCH-FEATURE-UPSTREAM gsd-speed-gconf-preload.patch bnc470366 mmeeks@novell.com -- back-port speedup
Patch16: gsd-speed-gconf-preload.diff
# PATCH-FEATURE-UPSTREAM gsd-speed-mouse.patch bnc470366 mmeeks@novell.com -- back-port speedup
Patch17: gsd-speed-mouse.patch
# PATCH-FEATURE-UPSTREAM gsd-speed-keyboard.diff bnc470366 mmeeks@novell.com -- back-port speedup
Patch18: gsd-speed-keyboard.diff
# PATCH-FEATURE-UPSTREAM gsd-speed-xsettings.patch bnc470366 mmeeks@novell.com -- back-port speedup
Patch19: gsd-speed-xsettings.patch
# PATCH-FEATURE-UPSTREAM gsd-speed-no-mkfontdir.diff bnc470366 mmeeks@novell.com -- back-port speedup
Patch20: gsd-speed-no-mkfontdir.diff
# PATCH-FEATURE-UPSTREAM gsd-speed-clipboard.patch bnc470366 mmeeks@novell.com -- back-port speedup
Patch21: gsd-speed-clipboard.patch
# PATCH-FEATURE-UPSTREAM gsd-speed-delay-screensaver.patch bnc470366 mmeeks@novell.com -- back-port speedup
Patch22: gsd-speed-delay-screensaver.patch
# enable g-s-d for moblin ...
Patch23: gsd-moblin-desktop.patch
# federico to fix bnc#486093 - avoid spurious errors about not finding a suitable RANDR configuration.
Patch24: gnome-settings-daemon-bnc486093-centralize-no-matching-config.diff
# Raise Sound OSD above Moblin UXShell
Patch25: gsd-raise-sound-osd-wmcalss.patch
Patch26: gsd-moblin-hal-key-enhance.patch
Patch27: gsd-moblin-osd-enhance.patch
# PATCH-FEATURE-UPSTREAM gnome-settings-daemon-bnc527361-use-pulse.patch bnc527361 sreeves@novell.com - backport from g-s-d 2.27.91 to use pulse for adjusting volume
Patch28: gnome-settings-daemon-bnc527361-use-pulse.patch
# 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
Patch30: gnome-settings-daemon-bnc486019-confirmation-dialog-transient.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
Patch31: 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
Patch32: gnome-settings-daemon-bnc492020-increase-randr-timeout.diff
# PATCH-FIX-UPSTREAM gnome-settings-daemon-bnc381139-handle-hotplug-and-unsuspend.diff bnc381139 federico@novell.com - Handle hotplug of displays and re-probe monitors when a laptop unsuspends
Patch33: gnome-settings-daemon-bnc381139-handle-hotplug-and-unsuspend.diff
# PATCH-FIX-UPSTREAM gnome-settings-daemon-bnc510094-randr-confirmation-in-idle.diff bnc510094 federico@novell.com - Don't block inside a D-Bus handler
Patch34: gnome-settings-daemon-bnc510094-randr-confirmation-in-idle.diff
# PATCH-FIX-UPSTREAM gnome-settings-daemon-bnc519800-randr-ignore-impossible-configurations.diff bnc#519800 federico@novell.com - For the XF86Display hotkey, Ignore RANDR configurations which would not fit in the framebuffer size
Patch35: gnome-settings-daemon-bnc519800-randr-ignore-impossible-configurations.diff
# PATCH-FIX-UPSTREAM gnome-settings-daemon-bnc517240-weird-cycling.diff bnc#517240 federico@novell.com - Make the XF86Display hotkey cycle more predictable
Patch36: gnome-settings-daemon-bnc517240-weird-cycling.diff
# PATCH-FIX-MOBLIN gnome-settings-daemon-randr-boot-video-mode.diff bnc553300 jlee@novell.com - Add a default startup-time policy for RANDR
Patch37: gnome-settings-daemon-randr-boot-video-mode.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
%patch6 -p1
%patch7 -p1
%patch8 -p1
%patch9 -p1
%patch10 -p1
%patch11 -p1
%patch12 -p1
%patch13 -p1
%patch14 -p1
%patch15 -p1
%patch16 -p1
%patch17 -p1
%patch18 -p1
%patch19 -p1
%patch20 -p1
%patch21 -p1
%patch22 -p1
%patch23 -p1
%patch24 -p1
%patch25 -p0
%patch26 -p1
%patch27 -p1
#start of gnome-settings-daemon-bnc527361-use-pulse.patch
#This patch moves the directory/file structure of plugins/media-keys so best to apply this last
%patch28 -p1
%patch30 -p1
%patch31 -p1
%patch32 -p1
%patch33 -p1
%patch34 -p1
%patch35 -p1
%patch36 -p1
%patch37 -p1
tar zxf %{S:1}
cp plugins/media-keys/actions/acme-eject.png plugins/media-keys/
cp plugins/media-keys/actions/acme.h plugins/media-keys/
#end of gnome-settings-daemon-bnc527361-use-pulse.patch
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\
--disable-esd
make %{?jobs:-j%jobs}
%install
%makeinstall
rm $RPM_BUILD_ROOT/%{_libdir}/gnome-settings-daemon-2.0/*.*a
%suse_update_desktop_file gnome-settings-daemon
%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