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
#
2020-01-14 11:15:40 +01:00
# Copyright (c) 2020 SUSE LLC
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.
2018-09-27 09:40:06 +02:00
# Please submit bugfixes or comments via https://bugs.opensuse.org/
2008-01-28 04:34:00 +01:00
#
2012-02-25 15:39:21 +01:00
2015-03-31 00:43:19 +02:00
# Allow to disable wayland components
%bcond_without wayland
# Smart-Card support was not available from version 3.7.3 to 3.9.5; allow to easily disable it
%bcond_without smartcard
# 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
2018-09-14 05:09:18 +02:00
2008-01-28 04:34:00 +01:00
Name : gnome-settings-daemon
2020-04-30 11:42:05 +02:00
Version : 3.36.1
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
2018-05-02 11:02:42 +02:00
License : GPL-2.0-or-later AND LGPL-2.1-only
2009-09-04 02:03:31 +02:00
Group : System/GUI/GNOME
2019-04-18 14:54:29 +02:00
URL : https://gitlab.gnome.org/GNOME/gnome-settings-daemon
2020-04-18 00:49:15 +02:00
Source0 : https://download.gnome.org/sources/gnome-settings-daemon/3.36/%{name} -%{version} .tar.xz
2018-09-14 05:09:18 +02:00
2017-08-05 13:50:54 +02: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
2018-05-02 11:02:42 +02:00
Patch1 : gnome-settings-daemon-initial-keyboard.patch
2017-09-12 22:01:35 +02:00
# PATCH-FIX-OPENSUSE gnome-settings-daemon-switch-Japanese-default-input-to-mozc.patch bnc#1029083 boo#1056289 qzhao@suse.com -- Switch new user's default input engine from "anthy" to "mozc" in gnome-desktop with Japanese language and ibus input frame-work condition.
2018-05-02 11:02:42 +02:00
Patch2 : gnome-settings-daemon-switch-Japanese-default-input-to-mozc.patch
2018-03-09 11:09:06 +01:00
# PATCH-FIX-UPSTREAM gnome-settings-daemon-bgo793253.patch bgo#793253 dimstar@opensuse.org -- Fix no-return-in-nonvoid-function
2018-05-02 11:02:42 +02:00
Patch3 : gnome-settings-daemon-bgo793253.patch
2019-12-07 22:16:22 +01:00
# PATCH-FEATURE-OPENSUSE 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
Patch4 : gnome-settings-daemon-notify-idle-resumed.patch
# PATCH-FIX-OPENSUSE 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
Patch5 : gnome-settings-daemon-bnc873545-hide-warnings.patch
# PATCH-FIX-OPENSUSE gnome-settings-daemon-more-power-button-actions.patch bsc#996342 fezhang@suse.com -- Bring back the "shutdown" and "interactive" power button actions.
Patch7 : gnome-settings-daemon-more-power-button-actions.patch
2018-09-14 05:09:18 +02:00
2018-05-02 11:02:42 +02:00
## SLE-only patches start at 1000
2018-09-14 05:09:18 +02:00
2012-02-08 12:00:24 +01:00
BuildRequires : cups-devel
2009-09-04 02:03:31 +02:00
BuildRequires : fdupes
2018-03-22 10:41:34 +01:00
BuildRequires : gnome-patch-translation
2016-09-14 18:53:23 +02:00
BuildRequires : gtk-doc
2018-03-09 11:09:06 +01:00
BuildRequires : meson
2017-09-01 20:52:46 +02:00
BuildRequires : pkgconfig
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
2018-03-22 10:41:34 +01:00
BuildRequires : translation-update-upstream
2017-09-01 20:52:46 +02:00
BuildRequires : xsltproc
2016-03-03 22:19:10 +01:00
BuildRequires : pkgconfig(alsa)
2019-10-04 17:46:22 +02:00
BuildRequires : pkgconfig(colord) >= 1.3.5
2010-09-13 12:18:45 +02:00
BuildRequires : pkgconfig(fontconfig)
2019-10-04 17:46:22 +02:00
BuildRequires : pkgconfig(gcr-3) >= 3.7.5
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)
2018-09-14 05:09:18 +02:00
BuildRequires : pkgconfig(gio-unix-2.0)
2019-11-26 10:26:17 +01:00
BuildRequires : pkgconfig(glib-2.0) >= 2.56
2014-04-03 22:43:25 +02:00
BuildRequires : pkgconfig(gnome-desktop-3.0) >= 3.11.1
2020-04-18 00:49:15 +02:00
BuildRequires : pkgconfig(gsettings-desktop-schemas) >= 3.35.91
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
2019-10-04 17:46:22 +02:00
BuildRequires : pkgconfig(mm-glib) >= 1.0
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
2019-10-04 17:46:22 +02:00
BuildRequires : pkgconfig(polkit-gobject-1) >= 0.114
BuildRequires : pkgconfig(systemd)
2018-03-09 11:09:06 +01:00
BuildRequires : pkgconfig(udev)
2019-10-04 17:46:22 +02:00
BuildRequires : pkgconfig(upower-glib) >= 0.99.8
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)
2020-04-18 00:49:15 +02:00
# Needed for tests
BuildRequires : python3-gobject-devel
BuildRequires : python3-python-dbusmock
#
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-04-28 11:13:15 +02:00
# For housekeeping plugin, that uses the nautilus dbus service
Recommends: nautilus
2017-09-01 20:52:46 +02:00
%if %{with wacom}
BuildRequires : pkgconfig(libwacom) >= 0.7
%endif
%if %{with wayland}
BuildRequires : pkgconfig(wayland-client)
%endif
Recommends: iio-sensor-proxy
2016-02-19 15:58:23 +01:00
# g-s-d only support configurtion of libinput based pointer drivers now.
Recommends: xf86-input-libinput
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
2017-11-08 11:19:24 +01:00
split for a more general use.
2008-01-28 04:34:00 +01:00
%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
2017-09-01 20:52:46 +02:00
2008-01-28 04:34:00 +01:00
%prep
2019-10-10 10:30:55 +02:00
%autosetup -N
2018-07-24 23:15:21 +02:00
translation-update-upstream po %{name}
gnome-patch-translation-prepare po %{name}
2017-07-13 10:57:22 +02:00
%patch1 -p1
%patch2 -p1
2018-05-02 11:02:42 +02:00
%patch3 -p1
2020-01-14 11:15:40 +01:00
# Enable the patches for both Leap 15 and SLE 15, please find the clarification at bsc#1158476.
2019-12-07 22:16:22 +01:00
%if 0%{?sle_version} >= 150000
%patch4 -p1
%patch5 -p1
%patch7 -p1
2017-05-27 00:39:23 +02:00
%endif
2008-01-28 04:34:00 +01:00
%build
2018-03-09 11:09:06 +01:00
%meson \
2018-09-14 05:09:18 +02:00
--libexecdir=%{_libexecdir} /gnome-settings-daemon-3.0 \
-Dalsa=true \
%{!?with_wayland: -D wayland=false} \
%{!?with_smartcard: -D smartcard=false} \
%{nil}
2018-03-09 11:09:06 +01:00
%meson_build
2008-01-28 04:34:00 +01:00
%install
2018-03-09 11:09:06 +01:00
%meson_install
2017-05-27 00:20:08 +02:00
%if %{without wacom}
rm %{buildroot} %{_sysconfdir} /xdg/autostart/org.gnome.SettingsDaemon.Wacom.desktop
%endif
2017-02-22 21:41:08 +01:00
2011-02-13 22:10:32 +01:00
%find_lang %{name} %{?no_lang_C}
2017-11-08 11:19:24 +01:00
%fdupes %{buildroot} /%{_prefix}
2008-01-28 04:34:00 +01:00
2020-04-18 00:49:15 +02:00
%check
%meson_test
2011-04-28 10:28:09 +02:00
%files
2018-05-02 11:02:42 +02:00
%license COPYING COPYING.LIB
%doc 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-printer
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-settings
%{_sysconfdir} /xdg/autostart/org.gnome.SettingsDaemon.A11ySettings.desktop
2019-10-04 17:46:22 +02:00
%{_userunitdir} /gsd-a11y-settings.service
%{_userunitdir} /gsd-a11y-settings.target
2017-02-22 21:41:08 +01:00
%{_libexecdir} /gnome-settings-daemon-3.0/gsd-color
%{_sysconfdir} /xdg/autostart/org.gnome.SettingsDaemon.Color.desktop
2019-10-04 17:46:22 +02:00
%{_userunitdir} /gsd-color.service
%{_userunitdir} /gsd-color.target
2017-02-22 21:41:08 +01:00
%{_libexecdir} /gnome-settings-daemon-3.0/gsd-datetime
%{_sysconfdir} /xdg/autostart/org.gnome.SettingsDaemon.Datetime.desktop
2019-10-04 17:46:22 +02:00
%{_userunitdir} /gsd-datetime.service
%{_userunitdir} /gsd-datetime.target
2017-02-22 21:41:08 +01:00
%{_libexecdir} /gnome-settings-daemon-3.0/gsd-dummy
%{_libexecdir} /gnome-settings-daemon-3.0/gsd-housekeeping
%{_sysconfdir} /xdg/autostart/org.gnome.SettingsDaemon.Housekeeping.desktop
2019-10-04 17:46:22 +02:00
%{_userunitdir} /gsd-housekeeping.service
%{_userunitdir} /gsd-housekeeping.target
2017-02-22 21:41:08 +01:00
%{_libexecdir} /gnome-settings-daemon-3.0/gsd-keyboard
%{_sysconfdir} /xdg/autostart/org.gnome.SettingsDaemon.Keyboard.desktop
2019-10-04 17:46:22 +02:00
%{_userunitdir} /gsd-keyboard.service
%{_userunitdir} /gsd-keyboard.target
2017-02-22 21:41:08 +01:00
%{_libexecdir} /gnome-settings-daemon-3.0/gsd-media-keys
%{_sysconfdir} /xdg/autostart/org.gnome.SettingsDaemon.MediaKeys.desktop
2019-10-04 17:46:22 +02:00
%{_userunitdir} /gsd-media-keys.service
%{_userunitdir} /gsd-media-keys.target
2017-02-22 21:41:08 +01:00
%{_libexecdir} /gnome-settings-daemon-3.0/gsd-power
%{_sysconfdir} /xdg/autostart/org.gnome.SettingsDaemon.Power.desktop
2019-10-04 17:46:22 +02:00
%{_userunitdir} /gsd-power.service
%{_userunitdir} /gsd-power.target
2017-02-22 21:41:08 +01:00
%{_libexecdir} /gnome-settings-daemon-3.0/gsd-print-notifications
%{_sysconfdir} /xdg/autostart/org.gnome.SettingsDaemon.PrintNotifications.desktop
2019-10-04 17:46:22 +02:00
%{_userunitdir} /gsd-print-notifications.service
%{_userunitdir} /gsd-print-notifications.target
2017-02-22 21:41:08 +01:00
%{_libexecdir} /gnome-settings-daemon-3.0/gsd-rfkill
%{_sysconfdir} /xdg/autostart/org.gnome.SettingsDaemon.Rfkill.desktop
2019-10-04 17:46:22 +02:00
%{_userunitdir} /gsd-rfkill.service
%{_userunitdir} /gsd-rfkill.target
2017-02-22 21:41:08 +01:00
%{_libexecdir} /gnome-settings-daemon-3.0/gsd-screensaver-proxy
%{_sysconfdir} /xdg/autostart/org.gnome.SettingsDaemon.ScreensaverProxy.desktop
2019-10-04 17:46:22 +02:00
%{_userunitdir} /gsd-screensaver-proxy.service
%{_userunitdir} /gsd-screensaver-proxy.target
2017-02-22 21:41:08 +01:00
%{_libexecdir} /gnome-settings-daemon-3.0/gsd-sharing
%{_sysconfdir} /xdg/autostart/org.gnome.SettingsDaemon.Sharing.desktop
2019-10-04 17:46:22 +02:00
%{_userunitdir} /gsd-sharing.service
%{_userunitdir} /gsd-sharing.target
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
2019-10-04 17:46:22 +02:00
%{_userunitdir} /gsd-smartcard.service
%{_userunitdir} /gsd-smartcard.target
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
2019-10-04 17:46:22 +02:00
%{_userunitdir} /gsd-sound.service
%{_userunitdir} /gsd-sound.target
%{_libexecdir} /gnome-settings-daemon-3.0/gsd-wwan
%{_sysconfdir} /xdg/autostart/org.gnome.SettingsDaemon.Wwan.desktop
%{_userunitdir} /gsd-wwan.service
%{_userunitdir} /gsd-wwan.target
2017-02-22 21:41:08 +01:00
%{_libexecdir} /gnome-settings-daemon-3.0/gsd-xsettings
%{_sysconfdir} /xdg/autostart/org.gnome.SettingsDaemon.XSettings.desktop
2019-10-04 17:46:22 +02:00
%{_userunitdir} /gsd-xsettings.service
%{_userunitdir} /gsd-xsettings.target
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
2014-08-23 13:52:01 +02:00
%{_datadir} /glib-2.0/schemas/org.gnome.settings-daemon.plugins.sharing.gschema.xml
2019-10-04 17:46:22 +02:00
%{_datadir} /glib-2.0/schemas/org.gnome.settings-daemon.plugins.wwan.gschema.xml
2011-04-28 10:28:09 +02:00
%{_datadir} /glib-2.0/schemas/org.gnome.settings-daemon.plugins.xsettings.gschema.xml
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
2019-12-07 22:16:15 +01:00
%{_userunitdir} /gsd-wacom.service
%{_userunitdir} /gsd-wacom.target
2013-09-19 21:18:53 +02:00
%endif
2020-09-22 11:02:54 +02:00
%if %{with wayland}
%dir %{_sysconfdir} /xdg/Xwayland-session.d
%{_sysconfdir} /xdg/Xwayland-session.d/00-xrdb
%endif
2014-04-03 22:43:25 +02:00
%{_udevrulesdir} /61-gnome-settings-daemon-rfkill.rules
2019-10-04 17:46:22 +02:00
%{_userunitdir} /gnome-session-initialized.target.wants/
%dir %{_userunitdir} /gnome-session-x11-services.target.wants/
%{_userunitdir} /gnome-session-x11-services.target.wants/gsd-xsettings.target
2020-04-18 00:49:15 +02:00
%{_sysconfdir} /xdg/autostart/org.gnome.SettingsDaemon.UsbProtection.desktop
%{_userunitdir} /gsd-usb-protection.service
%{_userunitdir} /gsd-usb-protection.target
%{_libexecdir} /gnome-settings-daemon-3.0/gsd-usb-protection
2008-01-28 04:34:00 +01:00
%files devel
2018-05-02 11:02:42 +02:00
%doc AUTHORS ChangeLog
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
2018-05-02 11:02:42 +02:00
%files lang -f %{name}.lang
2008-01-28 04:34:00 +01:00
%changelog