2008-04-17 04:34:47 +02:00
#
2011-01-14 16:43:56 +01:00
# spec file for package gnome-control-center
2008-04-17 04:34:47 +02:00
#
2021-01-08 10:43:10 +01:00
# Copyright (c) 2021 SUSE LLC
2008-04-17 04:34:47 +02:00
#
2008-08-14 00:49:55 +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.
2019-05-27 09:46:58 +02:00
# Please submit bugfixes or comments via https://bugs.opensuse.org/
2008-04-17 04:34:47 +02:00
#
2012-01-18 21:16:15 +01:00
2013-07-20 15:06:18 +02:00
# Allow to enable/disable ibus, as GNOME is rather strict on new versions.
2018-09-23 03:28:34 +02:00
%bcond_without ibus
2013-09-29 13:51:32 +02:00
# Wacom input support
%ifarch s390 s390x
2018-09-23 03:28:34 +02:00
%bcond_with wacom
2013-09-29 13:51:32 +02:00
%else
2018-09-23 03:28:34 +02:00
%bcond_without wacom
2013-09-29 13:51:32 +02:00
%endif
2018-09-23 03:28:34 +02:00
2008-04-17 04:34:47 +02:00
Name : gnome-control-center
2021-09-27 08:24:04 +02:00
Version : 41.0
2012-02-25 15:39:22 +01:00
Release : 0
Summary : The GNOME Control Center
2018-03-09 10:56:58 +01:00
License : GPL-2.0-or-later
2012-02-25 15:39:22 +01:00
Group : System/GUI/GNOME
2018-05-30 15:34:26 +02:00
URL : https://www.gnome.org
2021-09-27 08:24:04 +02:00
Source0 : https://download.gnome.org/sources/gnome-control-center/41/%{name} -%{version} .tar.xz
2018-09-23 03:28:34 +02:00
2018-05-08 15:54:39 +02:00
### patches for Leap >= 15 plus SLE >= 15, but not TW
2017-09-08 22:32:21 +02:00
# PATCH-FEATURE-SLE gnome-control-center-info-never-use-gnome-software.patch bsc#999336 fezhang@suse.com -- info: Never search for gnome-software as an option when checking for updates on SLE and Leap 42.2, because we use gpk-update-viewer.
2018-03-09 10:56:58 +01:00
Patch1001 : gnome-control-center-info-never-use-gnome-software.patch
2017-09-08 22:32:21 +02:00
# PATCH-FEATURE-SLE gnome-control-center-more-power-button-actions.patch bsc#993381 fezhang@suse.com -- power: Bring back the "shutdown" and "interactive" power button actions.
2018-03-09 10:56:58 +01:00
Patch1002 : gnome-control-center-more-power-button-actions.patch
2017-10-27 15:13:05 +02:00
# PATCH-FEATURE-SLE gnome-control-center-bring-back-firewall-zone.patch fate#316719 sckang@suse.com -- network: Bring back the firewall zone combo box to select proper firewall zone for each connection.
2018-03-09 10:56:58 +01:00
Patch1003 : gnome-control-center-bring-back-firewall-zone.patch
2018-09-23 03:28:34 +02:00
2019-11-18 11:49:03 +01:00
BuildRequires : /usr/bin/Xvfb
2018-03-09 10:56:58 +01:00
BuildRequires : cups-devel >= 1.4
2009-02-07 00:00:48 +01:00
BuildRequires : desktop-file-utils
BuildRequires : fdupes
BuildRequires : intltool
2012-09-12 11:27:40 +02:00
BuildRequires : krb5-devel
2021-03-24 17:41:31 +01:00
BuildRequires : meson >= 0.53.0
2018-03-09 10:56:58 +01:00
BuildRequires : pkgconfig
2019-04-18 15:32:23 +02:00
BuildRequires : python3-dbusmock
2018-03-09 10:56:58 +01:00
BuildRequires : xsltproc
2015-03-19 15:27:58 +01:00
BuildRequires : pkgconfig(accountsservice) >= 0.6.39
2014-08-23 13:52:28 +02:00
BuildRequires : pkgconfig(cairo-gobject)
2018-04-13 08:51:19 +02:00
BuildRequires : pkgconfig(cheese) >= 3.28.0
2018-03-09 10:56:58 +01:00
BuildRequires : pkgconfig(cheese-gtk) >= 3.5.91
2013-06-23 16:11:57 +02:00
BuildRequires : pkgconfig(colord) >= 0.1.34
2013-03-13 23:38:52 +01:00
BuildRequires : pkgconfig(colord-gtk) >= 0.1.24
2012-01-17 19:43:48 +01:00
BuildRequires : pkgconfig(fontconfig)
2021-09-27 08:24:04 +02:00
BuildRequires : pkgconfig(gcr-3)
2016-02-19 15:31:59 +01:00
BuildRequires : pkgconfig(gdk-pixbuf-2.0) >= 2.23.0
2018-03-09 10:56:58 +01:00
BuildRequires : pkgconfig(gdk-wayland-3.0)
2013-03-13 23:38:52 +01:00
BuildRequires : pkgconfig(gio-2.0)
BuildRequires : pkgconfig(gl)
2021-09-27 08:24:04 +02:00
BuildRequires : pkgconfig(glib-2.0) >= 2.68.0
2013-03-13 23:38:52 +01:00
BuildRequires : pkgconfig(gmodule-2.0)
2016-02-19 15:31:59 +01:00
BuildRequires : pkgconfig(gnome-bluetooth-1.0) >= 3.18.2
2021-03-24 17:41:31 +01:00
BuildRequires : pkgconfig(gnome-desktop-3.0) >= 3.33.4
2018-03-09 10:56:58 +01:00
BuildRequires : pkgconfig(gnome-settings-daemon) >= 3.25.90
2017-08-31 09:41:33 +02:00
BuildRequires : pkgconfig(goa-1.0) >= 3.25.3
2012-02-08 20:48:14 +01:00
BuildRequires : pkgconfig(goa-backend-1.0)
2018-03-09 10:56:58 +01:00
BuildRequires : pkgconfig(gobject-2.0)
2013-03-13 23:38:52 +01:00
BuildRequires : pkgconfig(gobject-introspection-1.0)
2021-09-27 08:24:04 +02:00
BuildRequires : pkgconfig(gsettings-desktop-schemas) >= 40.alpha
2019-04-18 15:32:23 +02:00
BuildRequires : pkgconfig(gsound)
2018-03-09 10:56:58 +01:00
BuildRequires : pkgconfig(gthread-2.0)
BuildRequires : pkgconfig(gtk+-3.0) >= 3.22.20
2015-03-19 15:27:58 +01:00
BuildRequires : pkgconfig(gudev-1.0)
2011-04-25 11:58:59 +02:00
BuildRequires : pkgconfig(libgtop-2.0)
2021-09-27 08:24:04 +02:00
BuildRequires : pkgconfig(libhandy-1) >= 1.2.0
2021-03-24 17:41:31 +01:00
BuildRequires : pkgconfig(libnm) >= 1.24.0
2018-09-23 03:28:34 +02:00
BuildRequires : pkgconfig(libnma) >= 1.8.0
2012-09-12 11:27:40 +02:00
BuildRequires : pkgconfig(libpulse) >= 2.0
2018-03-09 10:56:58 +01:00
BuildRequires : pkgconfig(libpulse-mainloop-glib)
2018-09-23 03:28:34 +02:00
BuildRequires : pkgconfig(libsecret-1)
2013-06-23 16:11:57 +02:00
BuildRequires : pkgconfig(libsoup-2.4)
2010-09-13 12:29:50 +02:00
BuildRequires : pkgconfig(libxml-2.0)
2020-10-26 09:11:51 +01:00
BuildRequires : pkgconfig(malcontent-0) => 0.7.0
2013-06-23 16:11:57 +02:00
BuildRequires : pkgconfig(mm-glib) >= 0.7
2012-02-08 20:48:14 +01:00
BuildRequires : pkgconfig(polkit-gobject-1) >= 0.103
2013-08-21 23:21:37 +02:00
BuildRequires : pkgconfig(pwquality) >= 1.2.2
2013-03-13 23:38:52 +01:00
BuildRequires : pkgconfig(smbclient)
2021-07-19 12:35:35 +02:00
BuildRequires : pkgconfig(udisks2) >= 2.8.2
2018-03-09 10:56:58 +01:00
BuildRequires : pkgconfig(upower-glib) >= 0.99.6
2012-01-05 10:34:25 +01:00
BuildRequires : pkgconfig(x11)
2010-09-13 12:29:50 +02:00
BuildRequires : pkgconfig(xcursor)
BuildRequires : pkgconfig(xft)
2012-01-05 10:34:25 +01:00
BuildRequires : pkgconfig(xi) >= 1.2
2011-04-25 11:58:59 +02:00
Requires : gnome-settings-daemon
2011-07-20 10:22:24 +02:00
# needed for universal access panel
Requires : gnome-themes-accessibility
2011-04-26 11:57:14 +02:00
Requires : gnome-version
2011-04-25 11:58:59 +02:00
Requires : iso-codes
2014-09-25 09:51:58 +02:00
# Needed for showing keyboard layout, boo#898096
2019-04-30 11:51:01 +02:00
# Require the package providing /usr/bin/gkbd-keyboard-display
Requires : gnomekbd-tools
2019-04-18 15:32:23 +02:00
# For the thunderbolt panel
Recommends: bolt
2011-08-11 21:43:23 +02:00
Recommends: %{name} -user-faces
2014-11-06 09:10:34 +01:00
# cups-pk-helper should only be recommended, rather than a hard Requires, see boo#904047
Recommends: cups-pk-helper
2014-10-18 18:29:45 +02:00
Recommends: dbus(com.intel.dleyna-server)
2011-09-06 23:53:18 +02:00
# the printers panel can use the dbus service
Recommends: system-config-printer-dbus-service
2012-02-25 15:39:22 +01:00
Provides : acme
Provides : fontilus
Provides : themus
2012-03-11 18:37:11 +01:00
Obsoletes : acme
Obsoletes : fontilus
Obsoletes : themus
2008-04-17 04:34:47 +02:00
Provides : control-center2 = 2.22.1
2010-02-11 20:20:19 +01:00
Obsoletes : control-center2 < 2.22.1
2013-04-12 00:10:30 +02:00
# gnome-control-center-branding was obsoleted with g-c-c 3.8.0 (after openSUSE 12.3)
Obsoletes : gnome-control-center-branding <= 12.3
Obsoletes : gnome-control-center-branding-openSUSE <= 12.3
Obsoletes : gnome-control-center-branding-upstream <= 12.3
2018-09-23 03:28:34 +02:00
%if %{with wacom}
BuildRequires : pkgconfig(clutter-1.0) >= 1.11.3
BuildRequires : pkgconfig(libwacom) >= 0.7
%endif
%if %{with ibus}
BuildRequires : pkgconfig(ibus-1.0) >= 1.5.2
%endif
2008-04-17 04:34:47 +02:00
%description
2011-02-13 22:07:12 +01:00
The control center is GNOME's main interface for configuration of
various aspects of your desktop.
2008-04-17 04:34:47 +02:00
2011-08-11 21:43:23 +02:00
%package user-faces
2017-09-09 12:26:16 +02:00
Summary : Login manager user avatars
2011-08-11 21:43:23 +02:00
Group : System/GUI/GNOME
%description user-faces
This package provides user avatars to be used by display managers
2008-04-17 04:34:47 +02:00
%package devel
Summary : Header files for the GNOME Control Center
2011-07-05 10:29:43 +02:00
Group : Development/Libraries/GNOME
2009-08-17 14:49:25 +02:00
Requires : %{name} = %{version}
2008-04-17 04:34:47 +02:00
Provides : control-center2-devel = 2.22.1
2010-02-11 20:20:19 +01:00
Obsoletes : control-center2-devel < 2.22.1
2008-04-17 04:34:47 +02:00
%description devel
2011-02-13 22:07:12 +01:00
The control center is GNOME's main interface for configuration of
various aspects of your desktop.
2008-04-17 04:34:47 +02:00
2014-02-02 17:39:14 +01:00
%package color
Summary : Configuration panel for color management
Group : System/GUI/GNOME
Requires : %{name} = %{version}
# The color panel requires colord to be present for the glib schema
Requires : colord
# The color panel interacts with binaries from gnome-color-manager
Requires : gnome-color-manager
Supplements: %{name}
%description color
This package provides the color management configuration panel for
GNOME control center.
2016-05-30 14:07:36 +02:00
%package goa
Summary : Configuration panel for online accounts
Group : System/GUI/GNOME
Requires : %{name} = %{version}
# The online accounts panel interacts with binaries and icons from gnome-online-accounts
Requires : gnome-online-accounts
Supplements: packageand(%{name} :gnome-online-accounts)
%description goa
This package provides the online accounts onfiguration panel for
GNOME control center.
2008-04-17 04:34:47 +02:00
%lang_package
2017-09-08 22:32:21 +02:00
2008-04-17 04:34:47 +02:00
%prep
2009-08-17 14:49:25 +02:00
%setup -q
2017-10-04 15:57:15 +02:00
2018-05-08 15:54:39 +02:00
# patches for Leap >= 15 plus SLE >= 15, but not TW
%if 0%{?sle_version} >= 150000
2018-03-09 10:56:58 +01:00
%patch1001 -p1
2017-09-08 22:32:21 +02:00
%patch1002 -p1
%patch1003 -p1
2017-05-27 00:38:00 +02:00
%endif
2008-04-17 04:34:47 +02:00
%build
2018-03-09 10:56:58 +01:00
%meson \
2018-09-23 03:28:34 +02:00
-Dcheese=true \
-Ddocumentation=true \
%{!?with_ibus: -Dibus=false} \
2020-10-26 09:11:51 +01:00
-Dmalcontent=true \
2017-09-08 22:32:21 +02:00
%{nil}
2018-03-09 10:56:58 +01:00
%meson_build
2008-04-17 04:34:47 +02:00
2018-09-23 03:28:34 +02:00
%check
%meson_test
2008-04-17 04:34:47 +02:00
%install
2018-03-09 10:56:58 +01:00
%meson_install
2011-02-13 22:07:12 +01:00
%find_lang %{name} -2.0 %{?no_lang_C}
2011-04-25 11:58:59 +02:00
%find_lang %{name} -2.0-timezones %{name} -2.0.lang
2017-09-09 12:26:16 +02:00
%fdupes %{buildroot} /%{_prefix}
2008-04-17 04:34:47 +02:00
2018-03-09 10:56:58 +01:00
# We do not package gnome-control-center.rules (bnc#804966)
rm %{buildroot} %{_datadir} /polkit-1/rules.d/gnome-control-center.rules
2011-04-28 23:12:08 +02:00
%files
2018-03-09 10:56:58 +01:00
%license COPYING
2018-09-23 03:28:34 +02:00
%doc NEWS README.md
2008-04-17 04:34:47 +02:00
%{_bindir} /*
2018-03-09 10:56:58 +01:00
%{_datadir} /metainfo/gnome-control-center.appdata.xml
2014-02-02 17:39:14 +01:00
%exclude %{_datadir} /applications/gnome-color-panel.desktop
2016-05-30 14:07:36 +02:00
%exclude %{_datadir} /applications/gnome-online-accounts-panel.desktop
2008-04-17 04:34:47 +02:00
%{_datadir} /applications/*.desktop
2013-03-13 23:38:52 +01:00
%{_datadir} /bash-completion/completions/gnome-control-center
2013-06-23 16:11:57 +02:00
%{_datadir} /dbus-1/services/org.gnome.ControlCenter.service
2013-03-13 23:38:52 +01:00
%{_datadir} /dbus-1/services/org.gnome.ControlCenter.SearchProvider.service
2018-03-09 10:56:58 +01:00
%{_datadir} /glib-2.0/schemas/org.gnome.ControlCenter.gschema.xml
2011-04-25 11:58:59 +02:00
%{_datadir} /gnome-control-center/
2013-03-13 23:38:52 +01:00
%dir %{_datadir} /gnome-shell/
%dir %{_datadir} /gnome-shell/search-providers/
%{_datadir} /gnome-shell/search-providers/gnome-control-center-search-provider.ini
2008-04-17 04:34:47 +02:00
%{_datadir} /icons/hicolor/*/*/*.png
2011-04-25 11:58:59 +02:00
%{_datadir} /icons/hicolor/*/*/*.svg
2021-09-27 08:24:04 +02:00
%{_datadir} /icons/gnome-logo-text-dark.svg
%{_datadir} /icons/gnome-logo-text.svg
2020-01-11 20:19:25 +01:00
%{_datadir} /locale/en/
2012-02-08 20:48:14 +01:00
%{_datadir} /polkit-1/actions/org.gnome.controlcenter.datetime.policy
2013-03-13 23:38:52 +01:00
%{_datadir} /polkit-1/actions/org.gnome.controlcenter.remote-login-helper.policy
2012-09-12 11:27:40 +02:00
%{_datadir} /polkit-1/actions/org.gnome.controlcenter.user-accounts.policy
2013-02-26 22:26:37 +01:00
# We do not package gnome-control-center.rules
#{_datadir}/polkit-1/rules.d/gnome-control-center.rules
2011-04-25 11:58:59 +02:00
%dir %{_datadir} /sounds/gnome
%dir %{_datadir} /sounds/gnome/default
%dir %{_datadir} /sounds/gnome/default/alerts
%{_datadir} /sounds/gnome/default/alerts/*.ogg
2013-03-13 23:38:52 +01:00
%{_libexecdir} /cc-remote-login-helper
2020-04-18 00:55:48 +02:00
%{_libexecdir} /gnome-control-center-print-renderer
2013-03-13 23:38:52 +01:00
%{_libexecdir} /gnome-control-center-search-provider
%{_mandir} /man1/gnome-control-center.1%{?ext_man}
2008-04-17 04:34:47 +02:00
2011-08-11 21:43:23 +02:00
%files user-faces
%{_datadir} /pixmaps/faces/
2014-02-02 17:39:14 +01:00
%files color
%{_datadir} /applications/gnome-color-panel.desktop
2016-05-30 14:07:36 +02:00
%files goa
%{_datadir} /applications/gnome-online-accounts-panel.desktop
2011-04-25 11:58:59 +02:00
%files devel
2018-09-23 03:28:34 +02:00
%doc gnome-control-center.doap
2011-04-25 11:58:59 +02:00
%{_datadir} /pkgconfig/gnome-keybindings.pc
2016-09-08 23:25:14 +02:00
%{_datadir} /gettext/its/gnome-keybindings.its
%{_datadir} /gettext/its/gnome-keybindings.loc
2018-03-09 10:56:58 +01:00
%{_datadir} /gettext/its/sounds.its
%{_datadir} /gettext/its/sounds.loc
%files lang -f %{name}-2.0.lang
2020-01-11 20:19:25 +01:00
# english locale should be in the main package
%exclude %{_datadir} /locale/en
2008-04-17 04:34:47 +02:00
%changelog