2008-01-28 04:34:00 +01:00
#
2011-04-28 10:28:09 +02:00
# spec file for package gnome-settings-daemon
2008-01-28 04:34:00 +01:00
#
2014-02-06 22:47:35 +01:00
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
2008-01-28 04:34:00 +01:00
#
2008-08-15 23:38:13 +02:00
# 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.
2008-01-28 04:34:00 +01:00
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
2012-02-25 15:39:21 +01:00
2012-02-08 12:00:24 +01:00
# We cannot enable systemd support right now, as it is exclusive and means we
# lose ConsoleKit support (bad for sysvinit)
2012-11-14 16:40:46 +01:00
%define with_systemd 1
2012-02-08 12:00:24 +01:00
2013-07-20 11:49:35 +02:00
# Allow to enable/disable ibus, as GNOME is rather strict on new versions.
2013-07-14 23:34:01 +02:00
%define with_ibus 1
2012-10-05 10:54:52 +02:00
2013-03-13 23:54:12 +01:00
# Smart-Card support is disabled in version 3.7.3
2013-07-31 20:55:50 +02:00
%define with_smartcard 1
2013-03-13 23:54:12 +01:00
2013-09-19 21:18:53 +02:00
# Wacom input support
%ifarch s390 s390x
%define with_wacom 0
%else
%define with_wacom 1
%endif
2008-01-28 04:34:00 +01:00
Name : gnome-settings-daemon
2013-11-13 22:14:44 +01:00
Version : 3.10.2
2011-12-21 15:56:34 +01:00
Release : 0
2009-09-04 02:03:30 +02:00
Summary : Settings daemon for the GNOME desktop
2011-12-21 15:56:34 +01:00
License : GPL-2.0+
2009-09-04 02:03:31 +02:00
Group : System/GUI/GNOME
2011-12-21 15:56:34 +01:00
Url : http://www.gnome.org
2013-09-24 22:03:49 +02:00
Source : http://download.gnome.org/sources/gnome-settings-daemon/3.10/%{name} -%{version} .tar.xz
2011-09-08 09:17:27 +02:00
# PATCH-NEEDS-REBASE gnome-settings-daemon-system-proxy-configuration.diff
2008-08-15 23:38:13 +02:00
Patch2 : gnome-settings-daemon-system-proxy-configuration.diff
2011-08-17 23:47:03 +02:00
# 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
2009-02-20 22:09:29 +01:00
Patch10 : gnome-settings-daemon-bnc462640-mute-action.patch
2011-08-17 23:47:03 +02:00
# PATCH-FIX-OPENSUSE gnome-settings-daemon-stop-reload-proxy-settings.patch bnc689592#c1, bnc#538353 glin@suse.com -- Stop g-s-d poping up the authentication dialog for reloading the proxy settings
Patch17 : gnome-settings-daemon-stop-reload-proxy-settings.patch
2013-03-13 23:54:12 +01:00
# PATCH-FEATURE-UPSTREAM gnome-settings-daemon-notify-idle-resumed.patch bnc#439018 bnc#708182 bgo#575467 hpj@suse.com -- notify user about auto suspend when returning from sleep
2013-01-21 17:38:42 +01:00
Patch19 : gnome-settings-daemon-notify-idle-resumed.patch
2013-12-19 21:53:21 +01:00
# PATCH-FIX-UPSTREAM gnome-settings-daemon-export-Gtk_ShellShowsDesktop-setting.patch bgo#712302 zaitor@opensuse.org -- Stop showing desktopfolder in nautilus sidebar when using gnome-shell.
Patch20 : gnome-settings-daemon-export-Gtk_ShellShowsDesktop-setting.patch
2014-02-06 22:49:16 +01:00
# PATCH-FEATURE-OPENSUSE gnome-settings-daemon-upower-backport.patch mgorse@suse.com -- Update for libupower-glib API changes.
2013-12-23 18:51:21 +01:00
Patch21 : gnome-settings-daemon-upower-backport.patch
2014-02-06 22:49:16 +01:00
# PATCH-FIX-OPENSUSE gnome-settings-daemon-upower-fix.patch bnc#861365 lpechacek@suse.cz -- Fixup gnome-settings-daemon-upower-backport.patch
2014-02-06 22:47:35 +01:00
Patch22 : gnome-settings-daemon-upower-fix.patch
2012-02-08 12:00:24 +01:00
BuildRequires : cups-devel
2009-09-04 02:03:31 +02:00
BuildRequires : fdupes
BuildRequires : gnome-common
2011-04-28 10:28:09 +02:00
# Disabled because of the non-rebased patches
#BuildRequires: gnome-patch-translation
2009-09-04 02:03:31 +02:00
BuildRequires : intltool
2010-08-06 15:26:15 +02:00
BuildRequires : translation-update-upstream
2009-09-04 02:03:31 +02:00
BuildRequires : update-desktop-files
2012-09-08 09:24:27 +02:00
BuildRequires : xsltproc
2012-02-08 12:00:24 +01:00
# For directory ownership; it's fine to BuildRequire it since it's also a Requires
BuildRequires : polkit
2013-07-31 20:55:50 +02:00
BuildRequires : pkgconfig(colord) >= 1.0.2
2010-09-13 12:18:45 +02:00
BuildRequires : pkgconfig(fontconfig)
2011-08-18 19:50:42 +02:00
BuildRequires : pkgconfig(gconf-2.0) >= 2.6.1
2013-09-07 15:13:28 +02:00
BuildRequires : pkgconfig(geoclue-2.0)
2013-09-24 22:03:49 +02:00
BuildRequires : pkgconfig(geocode-glib-1.0) >= 3.10.0
2013-09-07 15:13:28 +02:00
BuildRequires : pkgconfig(glib-2.0) >= 2.37.7
2013-05-31 20:33:41 +02:00
BuildRequires : pkgconfig(gnome-desktop-3.0) >= 3.9.0
2013-09-07 15:13:28 +02:00
BuildRequires : pkgconfig(gsettings-desktop-schemas) >= 3.9.91
2013-03-13 23:54:12 +01:00
BuildRequires : pkgconfig(gtk+-3.0) >= 3.7.8
2011-04-28 10:28:09 +02:00
BuildRequires : pkgconfig(gudev-1.0)
2013-09-07 15:13:28 +02:00
BuildRequires : pkgconfig(gweather-3.0) >= 3.9.5
2012-10-05 10:54:52 +02:00
%if %{with_ibus}
2012-09-08 09:24:27 +02:00
BuildRequires : pkgconfig(ibus-1.0) >= 1.4.99
2012-10-05 10:54:52 +02:00
%endif
2011-09-21 17:53:13 +02:00
BuildRequires : pkgconfig(kbproto)
2011-06-16 16:08:46 +02:00
BuildRequires : pkgconfig(lcms2)
2011-04-28 10:28:09 +02:00
BuildRequires : pkgconfig(libcanberra-gtk3)
2011-08-18 19:50:42 +02:00
BuildRequires : pkgconfig(libnotify) >= 0.7.3
2013-03-13 23:54:12 +01:00
BuildRequires : pkgconfig(libpulse) >= 2.0
BuildRequires : pkgconfig(libpulse-mainloop-glib) >= 2.0
BuildRequires : pkgconfig(librsvg-2.0) >= 2.36.2
2012-02-08 12:00:24 +01:00
%if %{with_systemd}
BuildRequires : pkgconfig(libsystemd-login)
%endif
2013-09-19 21:18:53 +02:00
%if %{with_wacom}
2013-03-13 23:54:12 +01:00
BuildRequires : pkgconfig(libwacom) >= 0.7
2013-09-19 21:18:53 +02:00
BuildRequires : pkgconfig(xorg-wacom)
%endif
2010-09-13 12:18:45 +02:00
BuildRequires : pkgconfig(nss)
2013-10-16 16:37:55 +02:00
BuildRequires : pkgconfig(packagekit-glib2) >= 0.8.1
2013-05-31 20:33:41 +02:00
BuildRequires : pkgconfig(pango) >= 1.20.0
2013-09-07 15:13:28 +02:00
BuildRequires : pkgconfig(polkit-gobject-1) >= 0.103
2013-12-23 18:51:21 +01:00
BuildRequires : pkgconfig(upower-glib) >= 0.99.0
2011-09-21 17:53:13 +02:00
BuildRequires : pkgconfig(x11)
2012-09-08 10:11:31 +02:00
BuildRequires : pkgconfig(xext)
2011-06-16 17:34:32 +02:00
BuildRequires : pkgconfig(xfixes)
2010-09-13 12:18:45 +02:00
BuildRequires : pkgconfig(xi)
2012-09-08 09:24:27 +02:00
BuildRequires : pkgconfig(xkbfile)
2012-02-25 15:39:21 +01:00
BuildRequires : pkgconfig(xtst)
2011-04-28 10:28:09 +02:00
Requires : gsettings-desktop-schemas
2011-09-05 18:21:55 +02:00
# g-s-d uses the pkexec binary
Requires : polkit
2011-02-13 22:10:32 +01:00
Recommends: %{name} -lang
2011-04-28 11:13:15 +02:00
# For housekeeping plugin, that uses the nautilus dbus service
Recommends: nautilus
2008-09-09 22:09:46 +02:00
Obsoletes : resapplet
2008-01-28 04:34:00 +01:00
BuildRoot : %{_tmppath} /%{name} -%{version} -build
2011-04-28 10:28:09 +02:00
%glib2_gsettings_schema_requires
2008-01-28 04:34:00 +01:00
%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.
%package devel
Summary : Development package for the GNOME settings daemon
2012-01-05 10:32:43 +01:00
Group : System/GUI/GNOME
2009-09-04 02:03:31 +02:00
Requires : %{name} = %{version}
2008-01-28 04:34:00 +01:00
%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.
%lang_package
%prep
2010-08-09 22:51:53 +02:00
%setup -q
2010-08-06 15:26:15 +02:00
translation-update-upstream
2011-04-28 10:28:09 +02:00
# Disabled because of the non-rebased patches
#gnome-patch-translation-prepare
2011-09-08 09:17:27 +02:00
#%%patch2 -p0
2011-08-17 23:47:03 +02:00
%patch10 -p0
%patch17 -p1
2013-01-21 17:38:42 +01:00
%patch19 -p1
2013-12-19 21:53:21 +01:00
%patch20 -p1
2013-12-23 18:51:21 +01:00
%patch21 -p1
2014-02-06 22:47:35 +01:00
%patch22 -p1
2008-01-28 04:34:00 +01:00
%build
2011-08-17 23:47:03 +02:00
autoreconf -f -i
2008-01-28 04:34:00 +01:00
%configure \
2012-02-08 12:00:24 +01:00
%if %{with_systemd}
--enable-systemd \
%endif
2011-04-28 11:13:15 +02:00
--enable-gconf-bridge \
2011-06-16 16:08:46 +02:00
--disable-static \
2012-06-09 12:30:40 +02:00
--with-pnpids=%{_datadir} /libgnome-desktop-3.0/pnp.ids \
2012-10-05 10:54:52 +02:00
--libexecdir=%{_libexecdir} /gnome-settings-daemon-3.0 \
%if %{with_ibus}
--enable-ibus
%else
--disable-ibus
%endif
2012-06-09 12:30:40 +02:00
2011-04-28 10:28:09 +02:00
make %{?jobs:-j%jobs} V=1
2008-01-28 04:34:00 +01:00
%install
%makeinstall
2010-01-18 14:20:07 +01:00
%if 0%{?suse_version} <= 1120
%{__rm} %{buildroot} %{_datadir} /locale/en@shaw/LC_MESSAGES/*
%endif
2011-04-28 10:28:09 +02:00
find %{buildroot} %{_libdir} -name '*.la' -type f -delete -print
2009-02-07 00:58:13 +01:00
%suse_update_desktop_file gnome-settings-daemon
2011-02-13 22:10:32 +01:00
%find_lang %{name} %{?no_lang_C}
2009-09-04 02:03:31 +02:00
%fdupes %{buildroot}
2008-01-28 04:34:00 +01:00
%clean
2009-09-04 02:03:31 +02:00
rm -rf %{buildroot}
2008-01-28 04:34:00 +01:00
2011-02-13 22:10:32 +01:00
%post
2011-04-28 10:28:09 +02:00
%glib2_gsettings_schema_post
2011-02-13 22:10:32 +01:00
%icon_theme_cache_post
2008-02-21 01:53:40 +01:00
2011-02-13 22:10:32 +01:00
%postun
2011-04-28 10:28:09 +02:00
%glib2_gsettings_schema_postun
2011-02-13 22:10:32 +01:00
%icon_theme_cache_postun
2008-01-28 04:34:00 +01:00
2011-04-28 10:28:09 +02:00
%files
2008-01-28 04:34:00 +01:00
%defattr (-,root,root)
2008-08-18 18:37:47 +02:00
%doc AUTHORS COPYING ChangeLog NEWS
2012-10-05 10:54:52 +02:00
%if %{with_ibus}
2012-09-08 09:24:27 +02:00
%{_datadir} /dbus-1/services/org.freedesktop.IBus.service
2012-10-05 10:54:52 +02:00
%endif
2010-08-09 22:51:53 +02:00
%{_datadir} /gnome-settings-daemon/
2011-04-28 10:28:09 +02:00
%{_datadir} /gnome-settings-daemon-3.0/
2012-06-09 12:30:40 +02:00
%dir %{_libexecdir} /gnome-settings-daemon-3.0/
%{_libexecdir} /gnome-settings-daemon-3.0/gnome-settings-daemon
2013-06-23 16:14:30 +02:00
%{_libexecdir} /gnome-settings-daemon-3.0/gnome-settings-daemon-localeexec
2012-06-09 12:30:40 +02:00
%{_libexecdir} /gnome-settings-daemon-3.0/gsd-backlight-helper
%{_libexecdir} /gnome-settings-daemon-3.0/gsd-locate-pointer
%{_libexecdir} /gnome-settings-daemon-3.0/gsd-printer
2012-09-08 09:24:27 +02:00
%{_libexecdir} /gnome-settings-daemon-3.0/gsd-test-*
2011-09-08 09:17:27 +02:00
# From patch2
2012-02-25 15:39:21 +01:00
#%{_libexecdir}/novell-sysconfig-proxy-helper
2011-04-28 11:13:15 +02:00
%dir %{_libdir} /gnome-settings-daemon-3.0/
2012-02-25 15:39:21 +01:00
%{_libdir} /gnome-settings-daemon-3.0/libgsd.so
2011-04-28 11:13:15 +02:00
%{_libdir} /gnome-settings-daemon-3.0/*.gnome-settings-plugin
2012-02-25 15:39:21 +01:00
# Explicitly list all the plugins so we know we don't lose any
%{_libdir} /gnome-settings-daemon-3.0/liba11y-keyboard.so
%{_libdir} /gnome-settings-daemon-3.0/liba11y-settings.so
%{_libdir} /gnome-settings-daemon-3.0/libclipboard.so
%{_libdir} /gnome-settings-daemon-3.0/libcolor.so
%{_libdir} /gnome-settings-daemon-3.0/libcursor.so
2013-09-07 15:13:28 +02:00
%{_libdir} /gnome-settings-daemon-3.0/libdatetime.so
2012-02-25 15:39:21 +01:00
%{_libdir} /gnome-settings-daemon-3.0/libhousekeeping.so
%{_libdir} /gnome-settings-daemon-3.0/libkeyboard.so
%{_libdir} /gnome-settings-daemon-3.0/libmedia-keys.so
%{_libdir} /gnome-settings-daemon-3.0/libmouse.so
%{_libdir} /gnome-settings-daemon-3.0/liborientation.so
%{_libdir} /gnome-settings-daemon-3.0/libpower.so
%{_libdir} /gnome-settings-daemon-3.0/libprint-notifications.so
2013-03-13 23:54:12 +01:00
%{_libdir} /gnome-settings-daemon-3.0/libremote-display.so
2013-07-31 20:55:50 +02:00
%{_libdir} /gnome-settings-daemon-3.0/librfkill.so
2013-03-13 23:54:12 +01:00
%{_libdir} /gnome-settings-daemon-3.0/libscreensaver-proxy.so
%if %{with_smartcard}
2012-02-25 15:39:21 +01:00
%{_libdir} /gnome-settings-daemon-3.0/libsmartcard.so
2013-03-13 23:54:12 +01:00
%endif
2012-02-25 15:39:21 +01:00
%{_libdir} /gnome-settings-daemon-3.0/libsound.so
%{_libdir} /gnome-settings-daemon-3.0/libupdates.so
%{_libdir} /gnome-settings-daemon-3.0/libxrandr.so
%{_libdir} /gnome-settings-daemon-3.0/libxsettings.so
%{_sysconfdir} /xdg/autostart/gnome-settings-daemon.desktop
2011-04-28 10:28:09 +02:00
%{_datadir} /glib-2.0/schemas/org.gnome.settings-daemon.enums.xml
%{_datadir} /glib-2.0/schemas/org.gnome.settings-daemon.peripherals.gschema.xml
%{_datadir} /glib-2.0/schemas/org.gnome.settings-daemon.peripherals.wacom.gschema.xml
2011-06-16 16:08:46 +02:00
%{_datadir} /glib-2.0/schemas/org.gnome.settings-daemon.plugins.color.gschema.xml
2013-09-07 15:13:28 +02:00
%{_datadir} /glib-2.0/schemas/org.gnome.settings-daemon.plugins.datetime.gschema.xml
2011-04-28 10:28:09 +02:00
%{_datadir} /glib-2.0/schemas/org.gnome.settings-daemon.plugins.gschema.xml
%{_datadir} /glib-2.0/schemas/org.gnome.settings-daemon.plugins.housekeeping.gschema.xml
%{_datadir} /glib-2.0/schemas/org.gnome.settings-daemon.plugins.keyboard.gschema.xml
%{_datadir} /glib-2.0/schemas/org.gnome.settings-daemon.plugins.media-keys.gschema.xml
2011-06-16 16:08:46 +02:00
%{_datadir} /glib-2.0/schemas/org.gnome.settings-daemon.plugins.orientation.gschema.xml
2011-04-28 10:28:09 +02:00
%{_datadir} /glib-2.0/schemas/org.gnome.settings-daemon.plugins.power.gschema.xml
%{_datadir} /glib-2.0/schemas/org.gnome.settings-daemon.plugins.print-notifications.gschema.xml
2011-09-08 09:17:27 +02:00
# From patch2
#%{_datadir}/glib-2.0/schemas/org.gnome.settings-daemon.plugins.proxy.gschema.xml
2011-04-28 10:28:09 +02:00
%{_datadir} /glib-2.0/schemas/org.gnome.settings-daemon.plugins.updates.gschema.xml
%{_datadir} /glib-2.0/schemas/org.gnome.settings-daemon.plugins.xrandr.gschema.xml
%{_datadir} /glib-2.0/schemas/org.gnome.settings-daemon.plugins.xsettings.gschema.xml
2011-09-21 17:53:13 +02:00
%{_datadir} /icons/hicolor/*/apps/gsd-xrandr.*
2011-08-18 19:50:42 +02:00
%{_datadir} /polkit-1/actions/org.gnome.settings-daemon.plugins.power.policy
2012-02-25 15:39:21 +01:00
%{_mandir} /man1/gnome-settings-daemon.1%{?ext_man}
2011-04-28 10:28:09 +02:00
# Own the directory since we can't depend on gconf providing them
%dir %{_datadir} /GConf
%dir %{_datadir} /GConf/gsettings
%{_datadir} /GConf/gsettings/gnome-settings-daemon.convert
2013-09-19 21:18:53 +02:00
%if %{with_wacom}
%{_datadir} /polkit-1/actions/org.gnome.settings-daemon.plugins.wacom.policy
%{_libexecdir} /gnome-settings-daemon-3.0/gsd-list-wacom
%{_libexecdir} /gnome-settings-daemon-3.0/gsd-wacom-led-helper
%{_libexecdir} /gnome-settings-daemon-3.0/gsd-wacom-oled-helper
%{_libdir} /gnome-settings-daemon-3.0/libgsdwacom.so
%endif
2008-01-28 04:34:00 +01:00
2010-08-09 22:51:53 +02:00
%files lang -f %{name}.lang
2008-01-28 04:34:00 +01:00
%files devel
%defattr (-, root, root)
2011-04-28 10:28:09 +02:00
%{_includedir} /gnome-settings-daemon-3.0/
%{_libdir} /pkgconfig/gnome-settings-daemon.pc
2008-01-28 04:34:00 +01:00
%changelog