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
#
2016-02-19 15:31:59 +01:00
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
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.
2008-04-17 04:34:47 +02:00
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
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.
2013-07-20 15:05:44 +02:00
%define with_ibus 1
2012-10-05 10:54:11 +02:00
2013-09-29 13:51:32 +02:00
# Wacom input support
%ifarch s390 s390x
%define with_wacom 0
%else
%define with_wacom 1
%endif
2015-08-20 09:17:34 +02:00
%define with_cacert_patch 1
2015-03-12 11:29:54 +01:00
2008-04-17 04:34:47 +02:00
Name : gnome-control-center
2016-04-15 11:38:59 +02:00
Version : 3.20.1
2012-02-25 15:39:22 +01:00
Release : 0
Summary : The GNOME Control Center
License : GPL-2.0+
Group : System/GUI/GNOME
Url : http://www.gnome.org
2016-03-21 18:12:34 +01:00
Source : http://download.gnome.org/sources/gnome-control-center/3.20/%{name} -%{version} .tar.xz
2014-06-13 21:25:58 +02:00
# PATCH-FEATURE-OPENSUSE gnome-control-center-allow-extra-tools-in-shell.patch fezhang@suse.com -- Add dconf-editor, pkg-prefs, gnome-tweak-tool and tracker-preferences to gnome-control-center-allow-yast-in-shell.patch so that they can launch from g-c-c shell like YaST does. Also change the patch with a more generic name.
Patch0 : gnome-control-center-allow-extra-tools-in-shell.patch
2016-03-21 18:12:34 +01:00
# PATCH-FEATURE-SLE gnome-control-center-add-alacarte-for-sle.patch badshah400@gmail.com -- Add back alacarte for SLE since they require it for their classic mode, on the other hand for TW and other openSUSE versions it should be enough that alacarte is still available from shell overview, just not in the g-c-c shell. This patch must be applied only if required and then immediately after gnome-control-center-allow-extra-tools-in-shell.patch
2015-12-16 15:09:51 +01:00
Patch100 : gnome-control-center-add-alacarte-for-sle.patch
2014-09-25 09:51:58 +02:00
# PATCH-FEATURE-OPENSUSE gnome-control-center-hide-firewall-zone-entry.patch bnc#894394 fezhang@suse.com -- network: hide the firewall zone entry for firewalld, which is not used in opensuse
Patch1 : gnome-control-center-hide-firewall-zone-entry.patch
2013-04-01 13:46:01 +02:00
# PATCH-FEATURE-OPENSUSE gnome-control-center-allow-yast-in-shell.patch vuntz@opensuse.org -- Allow the launch of the yast shell from the g-c-c shell; it's quite ugly, but on the other hand, we don't want to change the behavior of the shell except for yast...
2012-02-25 15:39:22 +01:00
Patch14 : gnome-control-center-system-proxy-configuration.patch
2016-02-19 15:31:59 +01:00
# PATCH-NEEDS-REBASE gcc-private-connection.patch bnc#751211 bgo#646187 dimstar@opensuse.org -- network: create private connections if the user if not authorized (WAS: PATCH-FIX-UPSTREAM)
2012-06-29 10:52:02 +02:00
Patch15 : gcc-private-connection.patch
2013-10-07 10:47:00 +02:00
# PATCH-FIX-UPSTREAM gnome-control-center-probe-radius-server-cert.patch bnc#574266 glin@suse.com -- network: Probe the RADIUS server certificate
Patch16 : gnome-control-center-probe-radius-server-cert.patch
2015-12-16 15:09:51 +01:00
# PATCH-FEATURE-OPENSUSE gnome-control-center-follow-polkit-permissions-for-tz.patch boo#904058 badshah400@gmail.com -- Follow polkit permissions for allowing/locking timezone setting changes
2014-11-06 09:10:34 +01:00
Patch17 : gnome-control-center-follow-polkit-permissions-for-tz.patch
2016-03-21 18:12:34 +01:00
# PATCH-FIX-SLE gnome-control-center-890979-change-remote-passwd.patch bnc#890979 dliang@suse.com -- user: Enable remote user to change password in user panel
Patch18 : gnome-control-center-890979-change-remote-passwd.patch
2016-05-23 21:21:02 +02:00
# PATCH-FIX-UPSTREAM gnome-control-center-touchpad-wayland-cap.patch bgo#765879 zaitor@opensuse.org -- mouse: Make touchpad capability checking on wayland work as intended
Patch19 : gnome-control-center-touchpad-wayland-cap.patch
2016-08-03 11:06:23 +02:00
# PATCH-FIX-OPENSUSE gnome-control-center-disable-error-message-for-NM.patch bsc#989801 sckang@suse.com -- network: Improve the check for whether NM or wicked is running
Patch20 : gnome-control-center-disable-error-message-for-NM.patch
2011-04-25 11:58:59 +02:00
BuildRequires : cups-devel
2009-02-07 00:00:48 +01:00
BuildRequires : desktop-file-utils
BuildRequires : fdupes
BuildRequires : gnome-common
BuildRequires : intltool
2012-09-12 11:27:40 +02:00
BuildRequires : krb5-devel
2010-02-11 20:20:19 +01:00
BuildRequires : translation-update-upstream
2009-02-07 00:00:48 +01:00
BuildRequires : update-desktop-files
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)
2012-02-25 15:39:22 +01:00
BuildRequires : pkgconfig(cheese)
2012-09-21 22:32:52 +02:00
BuildRequires : pkgconfig(cheese-gtk) >= 3.3.91
2012-09-12 11:27:40 +02:00
BuildRequires : pkgconfig(clutter-gtk-1.0)
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)
2010-09-13 12:29:50 +02:00
BuildRequires : pkgconfig(gconf-2.0)
2016-02-19 15:31:59 +01:00
BuildRequires : pkgconfig(gdk-pixbuf-2.0) >= 2.23.0
2013-03-13 23:38:52 +01:00
BuildRequires : pkgconfig(gio-2.0)
BuildRequires : pkgconfig(gl)
2016-02-19 15:31:59 +01:00
BuildRequires : pkgconfig(glib-2.0) >= 2.44.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
2016-03-18 11:02:51 +01:00
BuildRequires : pkgconfig(gnome-desktop-3.0) >= 3.19.93
2016-04-18 10:16:19 +02:00
BuildRequires : pkgconfig(gnome-settings-daemon) >= 3.19.1
2016-02-19 15:31:59 +01:00
BuildRequires : pkgconfig(goa-1.0) >= 3.15.1
2012-02-08 20:48:14 +01:00
BuildRequires : pkgconfig(goa-backend-1.0)
2013-03-13 23:38:52 +01:00
BuildRequires : pkgconfig(gobject-introspection-1.0)
2016-02-19 15:31:59 +01:00
BuildRequires : pkgconfig(grilo-0.3)
2016-04-18 10:16:19 +02:00
BuildRequires : pkgconfig(gsettings-desktop-schemas) >= 3.19.3
2016-04-15 11:38:59 +02:00
BuildRequires : pkgconfig(gtk+-3.0) >= 3.20.3
2015-03-19 15:27:58 +01:00
BuildRequires : pkgconfig(gudev-1.0)
2012-10-05 10:54:11 +02:00
%if %{with_ibus}
2013-09-19 21:25:01 +02:00
BuildRequires : pkgconfig(ibus-1.0) >= 1.5.2
2012-10-05 10:54:11 +02:00
%endif
2011-04-25 11:58:59 +02:00
BuildRequires : pkgconfig(libcanberra-gtk3)
BuildRequires : pkgconfig(libgtop-2.0)
2013-03-13 23:38:52 +01:00
BuildRequires : pkgconfig(libnm-glib) >= 0.9.8
BuildRequires : pkgconfig(libnm-glib-vpn) >= 0.9.8
BuildRequires : pkgconfig(libnm-gtk) >= 0.9.8
2012-09-12 11:27:40 +02:00
BuildRequires : pkgconfig(libpulse) >= 2.0
BuildRequires : pkgconfig(libpulse-mainloop-glib) >= 2.0
2013-06-23 16:11:57 +02:00
BuildRequires : pkgconfig(libsoup-2.4)
2013-09-29 13:51:32 +02:00
%if %{with_wacom}
2013-03-13 23:38:52 +01:00
BuildRequires : pkgconfig(libwacom) >= 0.7
2013-09-29 13:51:32 +02:00
%endif
2010-09-13 12:29:50 +02:00
BuildRequires : pkgconfig(libxml-2.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)
2013-12-23 18:57:12 +01:00
BuildRequires : pkgconfig(upower-glib) >= 0.99.0
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
2012-04-06 17:06:10 +02:00
# needed for glxinfo, used by System info panel
2012-04-06 17:04:35 +02:00
Requires : Mesa-demo-x
2011-04-25 12:14:06 +02:00
# needed for printers panel
2011-04-25 11:58:59 +02:00
Requires : gnome-menus
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
Requires : libgnomekbd
2011-02-13 22:07:12 +01:00
Recommends: %{name} -lang
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
2015-03-12 11:29:54 +01:00
%if %{with_cacert_patch}
Requires : NetworkManager(cacert-patch)
%endif
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
2008-04-17 04:34:47 +02:00
BuildRoot : %{_tmppath} /%{name} -%{version} -build
2011-04-25 11:58:59 +02:00
%glib2_gsettings_schema_requires
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
Summary : Login Managers user avatars
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
%prep
2009-08-17 14:49:25 +02:00
%setup -q
2014-11-24 23:05:45 +01:00
translation-update-upstream
2013-04-01 13:46:01 +02:00
%patch0 -p1
2016-02-19 15:31:59 +01:00
# PATCH100 ONLY NEEDED FOR SLES AND TO BE APPLIED IMMEDIATELY AFTER PATCH0
2015-12-16 15:09:51 +01:00
%if 0%{?suse_version} == 1315 && 0%{?sle_version}
%patch100 -p1
%endif
2014-09-25 09:51:58 +02:00
%patch1 -p1
2015-07-29 14:50:43 +02:00
# PATCH-NEEDS-REBASE - and g-c-c code seems to be moving in "our" direction see bgo#751378
#patch15 -p1
2015-03-12 11:29:54 +01:00
%if %{with_cacert_patch}
2015-03-12 11:21:07 +01:00
%patch16 -p1
2015-03-12 11:29:54 +01:00
%endif
2015-12-16 15:09:51 +01:00
%patch17 -p1
2016-03-21 18:12:34 +01:00
%if ! 0%{?is_opensuse}
%patch18 -p1
%endif
2009-07-31 19:23:33 +02:00
#NEEDS-REBASE
2013-03-13 23:38:52 +01:00
#patch14 -p1
2016-05-23 21:21:02 +02:00
%patch19 -p1
2016-08-03 11:06:23 +02:00
%patch20 -p1
2008-04-17 04:34:47 +02:00
%build
2013-03-13 23:38:52 +01:00
ACLOCAL_FLAGS=" - I l i b g d " NOCONFIGURE=1 gnome-autogen.sh
2009-01-27 01:59:11 +01:00
%configure --with-pic\
2011-04-25 11:58:59 +02:00
--disable-static\
2012-10-05 10:54:11 +02:00
--disable-maintainer-mode\
%if %{with_ibus}
--enable-ibus
%else
--disable-ibus
%endif
2015-08-30 17:06:50 +02:00
pushd panels/common
make gsd-common-enums.h
popd
2012-04-06 17:04:35 +02:00
make %{?_smp_mflags} V=1
2008-04-17 04:34:47 +02:00
%install
2012-04-06 17:04:35 +02:00
%make_install
2009-08-17 14:49:25 +02:00
find %{buildroot} -type f -name " * . l a " -delete -print
2013-02-26 22:26:37 +01:00
# We do not package gnome-control-center.rules (bnc#804966)
rm %{buildroot} %{_datadir} /polkit-1/rules.d/gnome-control-center.rules
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
%suse_update_desktop_file gnome-control-center
2008-04-17 04:34:47 +02:00
# capplets
2015-05-15 13:35:39 +02:00
%suse_update_desktop_file -n gnome-background-panel X-SuSE-ControlCenter-LookAndFeel
%suse_update_desktop_file -n gnome-bluetooth-panel X-SuSE-ControlCenter-Hardware
%suse_update_desktop_file -n gnome-color-panel X-SuSE-ControlCenter-Hardware
%suse_update_desktop_file -n gnome-datetime-panel X-SuSE-ControlCenter-Hardware
%suse_update_desktop_file -n gnome-display-panel X-SuSE-ControlCenter-Hardware
%suse_update_desktop_file -n gnome-info-panel X-SuSE-ControlCenter-Personal
%suse_update_desktop_file -n gnome-keyboard-panel X-SuSE-ControlCenter-Hardware
%suse_update_desktop_file -n gnome-mouse-panel X-SuSE-ControlCenter-Hardware
%suse_update_desktop_file -n gnome-network-panel X-SuSE-ControlCenter-Hardware
%suse_update_desktop_file -n gnome-notifications-panel X-SuSE-ControlCenter-Personal
%suse_update_desktop_file -n gnome-online-accounts-panel X-SuSE-ControlCenter-Personal
%suse_update_desktop_file -n gnome-power-panel X-SuSE-ControlCenter-Hardware
%suse_update_desktop_file -n gnome-printers-panel X-SuSE-ControlCenter-Hardware
%suse_update_desktop_file -n gnome-privacy-panel X-SuSE-ControlCenter-Personal
%suse_update_desktop_file -n gnome-region-panel X-SuSE-ControlCenter-Personal
%suse_update_desktop_file -n gnome-search-panel X-SuSE-ControlCenter-Personal
%suse_update_desktop_file -n gnome-sharing-panel X-SuSE-ControlCenter-Personal
%suse_update_desktop_file -n gnome-sound-panel X-SuSE-ControlCenter-Hardware
%suse_update_desktop_file -n gnome-universal-access-panel X-SuSE-ControlCenter-Personal
%suse_update_desktop_file -n gnome-user-accounts-panel X-SuSE-ControlCenter-Personal
2013-09-29 13:51:32 +02:00
%if %{with_wacom}
2015-05-15 13:35:39 +02:00
%suse_update_desktop_file -n gnome-wacom-panel X-SuSE-ControlCenter-Hardware
2013-09-29 13:51:32 +02:00
%endif
2012-04-06 17:04:35 +02:00
%fdupes %{buildroot}
2008-04-17 04:34:47 +02:00
%clean
2012-04-06 17:04:35 +02:00
rm -rf %{buildroot}
2008-04-17 04:34:47 +02:00
%post
2011-04-25 11:58:59 +02:00
%glib2_gsettings_schema_post
2011-02-13 22:07:12 +01:00
%desktop_database_post
%icon_theme_cache_post
2009-07-31 19:23:33 +02:00
2008-04-17 04:34:47 +02:00
%postun
2011-04-25 11:58:59 +02:00
%glib2_gsettings_schema_postun
2011-02-13 22:07:12 +01:00
%desktop_database_postun
%icon_theme_cache_postun
2008-04-17 04:34:47 +02:00
2011-04-28 23:12:08 +02:00
%files
2008-04-17 04:34:47 +02:00
%defattr (-,root,root)
2013-03-13 23:38:52 +01:00
%doc AUTHORS COPYING ChangeLog NEWS README
2008-04-17 04:34:47 +02:00
%{_bindir} /*
2015-04-18 18:41:47 +02:00
%{_datadir} /appdata/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
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
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
%{_libexecdir} /gnome-control-center-search-provider
2011-10-12 17:06:43 +02:00
2013-03-13 23:38:52 +01:00
%{_mandir} /man1/gnome-control-center.1%{?ext_man}
2008-04-17 04:34:47 +02:00
2009-02-07 00:00:48 +01:00
%files lang -f %{name}-2.0.lang
2008-04-17 04:34:47 +02:00
2011-08-11 21:43:23 +02:00
%files user-faces
%defattr (-, root, root)
%{_datadir} /pixmaps/faces/
2014-02-02 17:39:14 +01:00
%files color
%defattr (-,root,root)
%{_datadir} /applications/gnome-color-panel.desktop
2016-05-30 14:07:36 +02:00
%files goa
%defattr (-,root,root)
%{_datadir} /applications/gnome-online-accounts-panel.desktop
2011-04-25 11:58:59 +02:00
%files devel
2009-08-17 14:49:25 +02:00
%defattr (-, root, root)
2011-04-25 11:58:59 +02:00
%{_datadir} /pkgconfig/gnome-keybindings.pc
2008-04-17 04:34:47 +02:00
%changelog