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
#
2017-01-13 22:42:38 +01:00
# Copyright (c) 2017 SUSE LINUX 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
2015-03-31 00:43:19 +02:00
# Allow to disable wayland components
%bcond_without wayland
2012-02-08 12:00:24 +01:00
2015-03-31 00:43:19 +02:00
# Smart-Card support was not available from version 3.7.3 to 3.9.5; allow to easily disable it
%bcond_without smartcard
2013-03-13 23:54:12 +01:00
2015-03-31 00:43:19 +02:00
# Wacom input support is not available on all platforms
2013-09-19 21:18:53 +02:00
%ifarch s390 s390x
2015-03-31 00:43:19 +02:00
%bcond_with wacom
2013-09-19 21:18:53 +02:00
%else
2015-03-31 00:43:19 +02:00
%bcond_without wacom
2013-09-19 21:18:53 +02:00
%endif
2008-01-28 04:34:00 +01:00
Name : gnome-settings-daemon
2017-05-10 15:25:01 +02:00
Version : 3.24.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
2017-03-20 15:49:03 +01:00
Source : http://download.gnome.org/sources/gnome-settings-daemon/3.24/%{name} -%{version} .tar.xz
2016-03-08 16:53:53 +01:00
# PATCH-FEATURE-SLE gnome-settings-daemon-revert-libinput-mandatory.patch fcrozat@suse.com -- ensure libinput is not mandatory
2017-07-13 10:57:22 +02:00
Patch0 : gnome-settings-daemon-revert-libinput-mandatory.patch
2016-02-19 15:58:23 +01:00
# PATCH-FEATURE-SLE 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
2017-07-13 10:57:22 +02:00
Patch1 : gnome-settings-daemon-notify-idle-resumed.patch
2016-03-21 18:12:59 +01:00
# PATCH-FIX-SLE gnome-settings-daemon-bnc873545-hide-warnings.patch bnc#873545 fezhang@suse.com -- hide the warnings when g-s-d cannot find colord running, which is expected on SLES
2017-07-13 10:57:22 +02:00
Patch2 : gnome-settings-daemon-bnc873545-hide-warnings.patch
2016-09-14 18:53:23 +02:00
# PATCH-FIX-SLE gnome-settings-daemon-sle-configure-timeout-blank.patch bnc#869685 bgo#710904 cxiong@suse.com -- monitor off timeout is too short, extends it to 5 min
2017-07-13 10:57:22 +02:00
Patch3 : gnome-settings-daemon-sle-configure-timeout-blank.patch
2017-01-13 23:00:14 +01:00
# PATCH-FIX-OPENSUSE gnome-settings-daemon-initial-keyboard.patch bsc#979051 boo#1009515 federico@suse.com -- Deal with the default keyboard being set from xkb instead of GNOME
2017-07-13 10:57:22 +02:00
Patch4 : gnome-settings-daemon-initial-keyboard.patch
2016-08-23 17:46:20 +02:00
# PATCH-FIX-OPENSUSE gnome-settings-daemon-bring-back-updates-plugin.patch bsc#991024 sckang@suse.com -- Add the updates plugin back
2017-07-13 10:57:22 +02:00
Patch5 : gnome-settings-daemon-bring-back-updates-plugin.patch
2016-09-18 21:58:23 +02:00
# PATCH-FEATURE-OPENSUSE gnome-settings-daemon-more-power-button-actions.patch bsc#996342 fezhang@suse.com -- Bring back the "shutdown" and "interactive" power button actions.
2017-07-13 10:57:22 +02:00
Patch6 : gnome-settings-daemon-more-power-button-actions.patch
2012-02-08 12:00:24 +01:00
BuildRequires : cups-devel
2009-09-04 02:03:31 +02:00
BuildRequires : fdupes
2016-09-14 18:53:23 +02:00
BuildRequires : gtk-doc
%if 0%{?suse_version} == 1315
2009-09-04 02:03:31 +02:00
BuildRequires : gnome-common
2016-09-14 18:53:23 +02:00
%endif
2016-02-19 15:58:23 +01:00
%if !0%{?is_opensuse}
2016-08-12 11:42:58 +02:00
BuildRequires : gnome-patch-translation
2010-08-06 15:26:15 +02:00
BuildRequires : translation-update-upstream
2016-02-19 15:58:23 +01:00
%endif
BuildRequires : intltool
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
2016-03-03 22:19:10 +01:00
BuildRequires : pkgconfig(alsa)
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
2014-04-03 22:43:25 +02:00
BuildRequires : pkgconfig(geoclue-2.0) >= 2.1.2
2013-09-24 22:03:49 +02:00
BuildRequires : pkgconfig(geocode-glib-1.0) >= 3.10.0
2017-02-22 21:41:08 +01:00
BuildRequires : pkgconfig(gio-2.0)
BuildRequires : pkgconfig(glib-2.0) >= 2.44.0
2014-04-03 22:43:25 +02:00
BuildRequires : pkgconfig(gnome-desktop-3.0) >= 3.11.1
2017-02-22 21:41:08 +01:00
BuildRequires : pkgconfig(gsettings-desktop-schemas) >= 3.23.3
2016-02-19 15:58:23 +01:00
BuildRequires : pkgconfig(gtk+-3.0) >= 3.15.3
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
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)
2016-06-06 21:10:26 +02:00
BuildRequires : pkgconfig(libgeoclue-2.0) >= 2.3.1
2016-02-19 15:58:23 +01:00
BuildRequires : pkgconfig(libnm) >= 1.0
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
2016-08-23 17:46:20 +02:00
%if 0%{?suse_version} == 1315
BuildRequires : pkgconfig(packagekit-glib2)
%endif
2015-03-31 00:43:19 +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
%endif
2010-09-13 12:18:45 +02:00
BuildRequires : pkgconfig(nss)
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
2016-08-12 11:42:58 +02:00
%if !0%{?is_opensuse}
# For directory ownership. No longer needed in TW, since filesystem package
# now owns
BuildRequires : pkgconfig(udev)
%endif
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)
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)
2015-06-22 15:11:28 +02:00
%if %{with wayland}
BuildRequires : pkgconfig(wayland-client)
%endif
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
2016-02-19 15:58:23 +01:00
%if 0%{?is_opensuse}
# g-s-d only support configurtion of libinput based pointer drivers now.
Recommends: xf86-input-libinput
2016-09-30 14:02:36 +02:00
Recommends: iio-sensor-proxy
2016-02-19 15:58:23 +01:00
%endif
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
2015-03-31 00:43:19 +02:00
Group : Development/Languages/C and C++
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
2016-02-19 15:58:23 +01:00
%if !0%{?is_opensuse}
2010-08-06 15:26:15 +02:00
translation-update-upstream
2016-08-12 11:42:58 +02:00
gnome-patch-translation-prepare
2017-07-13 10:57:22 +02:00
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p0
2017-01-12 16:45:10 +01:00
%endif
2017-07-13 10:57:22 +02:00
%patch4 -p1
2016-08-23 17:46:20 +02:00
%if 0%{?suse_version} == 1315
2017-07-13 10:57:22 +02:00
%patch5 -p1
%patch6 -p1
2017-05-27 00:39:23 +02:00
%endif
2008-01-28 04:34:00 +01:00
%build
2016-08-26 13:56:03 +02:00
%if 0%{?suse_version} == 1315
2011-08-17 23:47:03 +02:00
autoreconf -f -i
2016-02-19 15:58:23 +01:00
%endif
2008-01-28 04:34:00 +01:00
%configure \
2015-03-31 00:43:19 +02:00
%if %{with wayland}
2015-03-19 15:37:09 +01:00
--enable-wayland \
%else
--disable-wayland \
2012-02-08 12:00:24 +01:00
%endif
2016-03-03 22:19:10 +01:00
--enable-alsa \
2011-06-16 16:08:46 +02:00
--disable-static \
2012-10-05 10:54:52 +02:00
--libexecdir=%{_libexecdir} /gnome-settings-daemon-3.0 \
2015-03-25 10:00:47 +01:00
%{nil}
# work around a racing condition in plugins/common, which does not always build properly using parallel build
(cd plugins/common; make -j 1 gsd-common-enums.h)
2016-09-14 18:53:23 +02:00
make %{?jobs:-j%jobs}
2008-01-28 04:34:00 +01:00
%install
%makeinstall
2017-05-27 00:20:08 +02:00
%if %{without wacom}
rm %{buildroot} %{_sysconfdir} /xdg/autostart/org.gnome.SettingsDaemon.Wacom.desktop
%endif
2011-04-28 10:28:09 +02:00
find %{buildroot} %{_libdir} -name '*.la' -type f -delete -print
2017-02-22 21:41:08 +01:00
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
2010-08-09 22:51:53 +02:00
%{_datadir} /gnome-settings-daemon/
2012-06-09 12:30:40 +02:00
%dir %{_libexecdir} /gnome-settings-daemon-3.0/
%{_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
2015-03-31 00:43:19 +02: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
# Explicitly list all the plugins so we know we don't lose any
2017-02-22 21:41:08 +01:00
%{_libexecdir} /gnome-settings-daemon-3.0/gsd-a11y-keyboard
%{_sysconfdir} /xdg/autostart/org.gnome.SettingsDaemon.A11yKeyboard.desktop
%{_libexecdir} /gnome-settings-daemon-3.0/gsd-a11y-settings
%{_sysconfdir} /xdg/autostart/org.gnome.SettingsDaemon.A11ySettings.desktop
%{_libexecdir} /gnome-settings-daemon-3.0/gsd-clipboard
%{_sysconfdir} /xdg/autostart/org.gnome.SettingsDaemon.Clipboard.desktop
%{_libexecdir} /gnome-settings-daemon-3.0/gsd-color
%{_sysconfdir} /xdg/autostart/org.gnome.SettingsDaemon.Color.desktop
%{_libexecdir} /gnome-settings-daemon-3.0/gsd-datetime
%{_sysconfdir} /xdg/autostart/org.gnome.SettingsDaemon.Datetime.desktop
%{_libexecdir} /gnome-settings-daemon-3.0/gsd-dummy
%{_libexecdir} /gnome-settings-daemon-3.0/gsd-housekeeping
%{_sysconfdir} /xdg/autostart/org.gnome.SettingsDaemon.Housekeeping.desktop
%{_libexecdir} /gnome-settings-daemon-3.0/gsd-keyboard
%{_sysconfdir} /xdg/autostart/org.gnome.SettingsDaemon.Keyboard.desktop
%{_libexecdir} /gnome-settings-daemon-3.0/gsd-media-keys
%{_sysconfdir} /xdg/autostart/org.gnome.SettingsDaemon.MediaKeys.desktop
%{_libexecdir} /gnome-settings-daemon-3.0/gsd-mouse
%{_sysconfdir} /xdg/autostart/org.gnome.SettingsDaemon.Mouse.desktop
%{_libexecdir} /gnome-settings-daemon-3.0/gsd-orientation
%{_sysconfdir} /xdg/autostart/org.gnome.SettingsDaemon.Orientation.desktop
%{_libexecdir} /gnome-settings-daemon-3.0/gsd-power
%{_sysconfdir} /xdg/autostart/org.gnome.SettingsDaemon.Power.desktop
%{_libexecdir} /gnome-settings-daemon-3.0/gsd-print-notifications
%{_sysconfdir} /xdg/autostart/org.gnome.SettingsDaemon.PrintNotifications.desktop
%{_libexecdir} /gnome-settings-daemon-3.0/gsd-rfkill
%{_sysconfdir} /xdg/autostart/org.gnome.SettingsDaemon.Rfkill.desktop
%{_libexecdir} /gnome-settings-daemon-3.0/gsd-screensaver-proxy
%{_sysconfdir} /xdg/autostart/org.gnome.SettingsDaemon.ScreensaverProxy.desktop
%{_libexecdir} /gnome-settings-daemon-3.0/gsd-sharing
%{_sysconfdir} /xdg/autostart/org.gnome.SettingsDaemon.Sharing.desktop
2015-03-31 00:43:19 +02:00
%if %{with smartcard}
2017-02-22 21:41:08 +01:00
%{_libexecdir} /gnome-settings-daemon-3.0/gsd-smartcard
%{_sysconfdir} /xdg/autostart/org.gnome.SettingsDaemon.Smartcard.desktop
2013-03-13 23:54:12 +01:00
%endif
2017-02-22 21:41:08 +01:00
%{_libexecdir} /gnome-settings-daemon-3.0/gsd-sound
%{_sysconfdir} /xdg/autostart/org.gnome.SettingsDaemon.Sound.desktop
2016-08-23 17:46:20 +02:00
%if 0%{?suse_version} == 1315
2017-02-22 21:41:08 +01:00
%{_libexecdir} /gnome-settings-daemon-3.0/gsd-updates
%{_sysconfdir} /xdg/autostart/org.gnome.SettingsDaemon.Updates.desktop
2016-08-23 17:46:20 +02:00
%endif
2017-02-22 21:41:08 +01:00
%{_libexecdir} /gnome-settings-daemon-3.0/gsd-xrandr
%{_sysconfdir} /xdg/autostart/org.gnome.SettingsDaemon.XRANDR.desktop
%{_libexecdir} /gnome-settings-daemon-3.0/gsd-xsettings
%{_sysconfdir} /xdg/autostart/org.gnome.SettingsDaemon.XSettings.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
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.media-keys.gschema.xml
%{_datadir} /glib-2.0/schemas/org.gnome.settings-daemon.plugins.power.gschema.xml
2011-09-08 09:17:27 +02:00
# From patch2
2015-03-31 00:43:19 +02:00
#%%{_datadir}/glib-2.0/schemas/org.gnome.settings-daemon.plugins.proxy.gschema.xml
2014-08-23 13:52:01 +02:00
%{_datadir} /glib-2.0/schemas/org.gnome.settings-daemon.plugins.sharing.gschema.xml
2016-08-23 17:46:20 +02:00
%if 0%{?suse_version} == 1315
%{_datadir} /glib-2.0/schemas/org.gnome.settings-daemon.plugins.updates.gschema.xml
2017-02-22 21:41:08 +01:00
%{_datadir} /polkit-1/actions/org.gnome.settings-daemon.plugins.update.policy
2017-01-13 22:40:07 +01:00
%{_libexecdir} /gnome-settings-daemon-3.0/pk-clear-offline-update
2016-08-23 17:46:20 +02:00
%endif
2011-04-28 10:28:09 +02:00
%{_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
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
2015-03-31 00:43:19 +02:00
%if %{with wacom}
2013-09-19 21:18:53 +02:00
%{_datadir} /polkit-1/actions/org.gnome.settings-daemon.plugins.wacom.policy
%{_libexecdir} /gnome-settings-daemon-3.0/gsd-wacom-led-helper
%{_libexecdir} /gnome-settings-daemon-3.0/gsd-wacom-oled-helper
2017-02-22 21:41:08 +01:00
%{_libexecdir} /gnome-settings-daemon-3.0/gsd-wacom
%{_sysconfdir} /xdg/autostart/org.gnome.SettingsDaemon.Wacom.desktop
2013-09-19 21:18:53 +02:00
%endif
2014-04-03 22:43:25 +02:00
%{_udevrulesdir} /61-gnome-settings-daemon-rfkill.rules
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