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
#
2019-01-09 22:41:33 +01:00
# Copyright (c) 2019 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.
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
2019-06-19 21:13:22 +02:00
Version : 3.32.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
Source0 : https://download.gnome.org/sources/gnome-settings-daemon/3.32/%{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-05-10 12:22:32 +02:00
# PATCH-FIX-UPSTREAM gnome-settings-daemon-round-xft_dpi-to-integer.patch bsc#1086789 glgo#GNOME#gnome-settings-daemon!99 yfjiang@suse.com -- Round the Xft.dpi setting to an integer
Patch4 : gnome-settings-daemon-round-xft_dpi-to-integer.patch
2018-09-14 05:09:18 +02:00
2018-05-02 11:02:42 +02:00
## SLE-only patches start at 1000
# 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
Patch1000 : gnome-settings-daemon-notify-idle-resumed.patch
# 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
Patch1001 : gnome-settings-daemon-bnc873545-hide-warnings.patch
# 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
Patch1002 : gnome-settings-daemon-sle-configure-timeout-blank.patch
# PATCH-FIX-SLE gnome-settings-daemon-more-power-button-actions.patch bsc#996342 fezhang@suse.com -- Bring back the "shutdown" and "interactive" power button actions.
Patch1003 : gnome-settings-daemon-more-power-button-actions.patch
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)
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)
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)
2017-08-31 09:44:35 +02:00
BuildRequires : pkgconfig(glib-2.0) >= 2.53.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
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
2018-03-09 11:09:06 +01:00
BuildRequires : pkgconfig(udev)
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)
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
2017-09-01 20:52:46 +02:00
%if %{with wacom}
BuildRequires : pkgconfig(libwacom) >= 0.7
%endif
%if !0%{?is_opensuse}
# For directory ownership. No longer needed in TW, since filesystem package
# now owns
BuildRequires : pkgconfig(udev)
%endif
%if %{with wayland}
BuildRequires : pkgconfig(wayland-client)
%endif
2017-08-14 16:27:58 +02:00
%if 0%{?is_opensuse} || 0%{?suse_version} == 1500
2017-09-01 20:52:46 +02:00
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
%endif
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
2010-08-09 22:51:53 +02:00
%setup -q
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
2019-05-10 12:22:32 +02:00
%patch4 -p1
2018-05-02 11:02:42 +02:00
# SLE-only patches start at 1000
%if !0%{?is_opensuse}
%patch1000 -p1
%patch1001 -p1
%patch1002
%patch1003 -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
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-locate-pointer
%{_libexecdir} /gnome-settings-daemon-3.0/gsd-printer
2019-04-18 14:54:29 +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-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-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
%{_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
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
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
%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