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
#
2013-01-30 09:31:26 +01:00
# Copyright (c) 2013 SUSE LINUX Products 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
2012-01-17 19:43:48 +01:00
# We cannot enable systemd support right now, as it is exclusive and means we
# lose ConsoleKit support (bad for sysvinit)
2012-11-14 15:07:13 +01:00
%define with_systemd 1
2008-04-17 04:34:47 +02:00
2012-10-05 10:54:11 +02:00
# We can currently not build ibus support, as it requires ibus 1.5, which has not been released yet.
%define with_ibus 0
2008-04-17 04:34:47 +02:00
Name : gnome-control-center
2012-11-18 16:35:33 +01:00
Version : 3.6.3
2012-02-25 15:39:22 +01:00
Release : 0
2012-09-14 14:37:21 +02:00
# FIXME: in 12.3 and later, check if we still need patch2 (gnome-control-center-hide-region-system-tab.patch) (see bnc#703833)
2012-02-25 15:39:22 +01:00
Summary : The GNOME Control Center
License : GPL-2.0+
Group : System/GUI/GNOME
Url : http://www.gnome.org
2012-09-25 22:23:40 +02:00
Source : http://download.gnome.org/sources/gnome-control-center/3.6/%{name} -%{version} .tar.xz
2012-02-25 15:39:22 +01: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...
Patch0 : gnome-control-center-allow-yast-in-shell.patch
# PATCH-HACK-OPENSUSE gnome-control-center-hide-region-system-tab.patch vuntz@opensuse.org -- Hide system tab in region panel until we really use the right files for system settings (see bnc#703833)
Patch2 : gnome-control-center-hide-region-system-tab.patch
2012-06-04 19:38:14 +02:00
# PATCH-FIX-UPSTREAM gnome-control-center-fine-grained-tz-polkit.patch bgo#646185 bnc#749453 vuntz@opensuse.org -- Allow changing timezone without requiring privileges to change time
Patch3 : gnome-control-center-fine-grained-tz-polkit.patch
2012-02-25 15:39:22 +01:00
# PATCH-NEEDS-REBASE gnome-control-center-system-proxy-configuration.patch -- this needs to be reimplemented to be more distro-generic before submitting upstream - docs at http://en.opensuse.org/GNOME/Proxy_configuration (was PATCH-FEATURE-OPENSUSE)
Patch14 : gnome-control-center-system-proxy-configuration.patch
2012-09-14 14:37:21 +02:00
# PATCH-FIX-UPSTREAM gcc-private-connection.patch bnc#751211 bgo#646187 dimstar@opensuse.org -- network: create private connections if the user if not authorized
2012-06-29 10:52:02 +02:00
Patch15 : gcc-private-connection.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
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)
2011-07-05 10:29:43 +02:00
BuildRequires : pkgconfig(colord)
2012-01-17 19:43:48 +01:00
BuildRequires : pkgconfig(fontconfig)
2010-09-13 12:29:50 +02:00
BuildRequires : pkgconfig(gconf-2.0)
2011-04-25 11:58:59 +02:00
BuildRequires : pkgconfig(gdk-pixbuf-2.0)
2012-01-17 19:43:48 +01:00
BuildRequires : pkgconfig(glib-2.0) >= 2.31.0
2012-09-12 11:27:40 +02:00
BuildRequires : pkgconfig(gnome-bluetooth-1.0) >= 3.5.5
BuildRequires : pkgconfig(gnome-desktop-3.0) >= 3.5.91
2012-10-15 10:30:33 +02:00
BuildRequires : pkgconfig(gnome-settings-daemon) >= 3.6.0
2012-09-12 11:27:40 +02:00
BuildRequires : pkgconfig(goa-1.0) >= 3.5.90
2012-02-08 20:48:14 +01:00
BuildRequires : pkgconfig(goa-backend-1.0)
2012-09-12 11:27:40 +02:00
BuildRequires : pkgconfig(gsettings-desktop-schemas) >= 3.5.91
2012-09-29 21:40:57 +02:00
BuildRequires : pkgconfig(gstreamer-1.0)
2012-09-12 11:27:40 +02:00
BuildRequires : pkgconfig(gtk+-3.0) >= 3.5.13
2012-10-05 10:54:11 +02:00
%if %{with_ibus}
2012-09-12 11:27:40 +02:00
BuildRequires : pkgconfig(ibus-1.0) >= 1.4.99
2012-10-05 10:54:11 +02:00
%endif
2011-04-25 11:58:59 +02:00
BuildRequires : pkgconfig(iso-codes)
BuildRequires : pkgconfig(libcanberra-gtk3)
2012-02-08 20:48:14 +01:00
BuildRequires : pkgconfig(libgnome-menu-3.0)
2011-04-25 11:58:59 +02:00
BuildRequires : pkgconfig(libgtop-2.0)
2011-04-25 12:14:06 +02:00
BuildRequires : pkgconfig(libnm-glib) >= 0.8.992
2011-09-23 00:31:23 +02:00
BuildRequires : pkgconfig(libnm-gtk) >= 0.8.992
2011-08-18 16:02:43 +02:00
BuildRequires : pkgconfig(libnotify) >= 0.7.3
2012-09-12 11:27:40 +02:00
BuildRequires : pkgconfig(libpulse) >= 2.0
BuildRequires : pkgconfig(libpulse-mainloop-glib) >= 2.0
2012-01-17 19:43:48 +01:00
%if %{with_systemd}
BuildRequires : pkgconfig(libsystemd-login)
%endif
2012-09-21 22:32:52 +02:00
BuildRequires : pkgconfig(libwacom) >= 0.6
2010-09-13 12:29:50 +02:00
BuildRequires : pkgconfig(libxml-2.0)
2012-02-08 20:48:14 +01:00
BuildRequires : pkgconfig(polkit-gobject-1) >= 0.103
2012-09-12 11:27:40 +02:00
BuildRequires : pkgconfig(pwquality)
2011-04-25 11:58:59 +02:00
BuildRequires : pkgconfig(upower-glib)
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-10-12 17:06:43 +02:00
Requires : %{name} -branding = %{version}
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
Requires : cups-pk-helper
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
Requires : nautilus
2011-02-13 22:07:12 +01:00
Recommends: %{name} -lang
2011-08-11 21:43:23 +02:00
Recommends: %{name} -user-faces
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
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-10-12 17:06:43 +02:00
%package branding-upstream
Summary : The GNOME Control Center -- Upstream Definition of Shell Content
Group : System/GUI/GNOME
Requires : %{name} = %{version}
Supplements: packageand(%{name} :branding-upstream)
2012-04-06 17:04:35 +02:00
Provides : %{name} -branding = %{version}
Conflicts : otherproviders(%{name} -branding)
2012-04-06 17:06:10 +02:00
BuildArch : noarch
2011-10-12 17:06:43 +02:00
#BRAND: This package contains the definitions of the content appearing
#BRAND: in the shell (/etc/xdg/menus/gnomecc.menu).
%description branding-upstream
The control center is GNOME's main interface for configuration of
various aspects of your desktop.
This package provides the upstream definition of what appears in the
control center.
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
%lang_package
%prep
2009-08-17 14:49:25 +02:00
%setup -q
2010-02-11 20:20:19 +01:00
translation-update-upstream
2011-10-12 17:06:43 +02:00
%patch0 -p1
2011-10-20 15:29:29 +02:00
%patch2 -p1
2012-06-04 19:38:14 +02:00
%patch3 -p1
2009-07-31 19:23:33 +02:00
#NEEDS-REBASE
#%patch14 -p1
2012-09-14 14:37:21 +02:00
%patch15 -p1
2011-04-25 11:58:59 +02:00
%if 0%{?BUILD_FROM_VCS}
[ -x ./autogen.sh ] && NOCONFIGURE=1 ./autogen.sh
2012-06-29 10:52:02 +02:00
%else
NOCONFIGURE=1 gnome-autogen.sh
2011-04-25 11:58:59 +02:00
%endif
2008-04-17 04:34:47 +02:00
%build
2009-01-27 01:59:11 +01:00
%configure --with-pic\
2012-01-17 19:43:48 +01:00
%if %{with_systemd}
--enable-systemd\
%endif
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
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
2011-07-05 10:29:43 +02:00
%suse_update_desktop_file gnome-sound-applet
2008-04-17 04:34:47 +02:00
# capplets
2011-04-25 11:58:59 +02:00
%suse_update_desktop_file gnome-background-panel X-SuSE-ControlCenter-LookAndFeel
2011-07-05 10:29:43 +02:00
%suse_update_desktop_file gnome-color-panel X-SuSE-ControlCenter-Hardware
2011-04-25 11:58:59 +02:00
%suse_update_desktop_file gnome-datetime-panel X-SuSE-ControlCenter-Hardware
2011-04-25 12:14:06 +02:00
%suse_update_desktop_file gnome-display-panel X-SuSE-ControlCenter-Hardware
%suse_update_desktop_file gnome-info-panel X-SuSE-ControlCenter-Personal
%suse_update_desktop_file gnome-keyboard-panel X-SuSE-ControlCenter-Hardware
%suse_update_desktop_file gnome-mouse-panel X-SuSE-ControlCenter-Hardware
%suse_update_desktop_file gnome-network-panel X-SuSE-ControlCenter-Hardware
2011-07-05 10:29:43 +02:00
%suse_update_desktop_file gnome-online-accounts-panel X-SuSE-ControlCenter-Personal
2011-04-25 11:58:59 +02:00
%suse_update_desktop_file gnome-power-panel X-SuSE-ControlCenter-Hardware
%suse_update_desktop_file gnome-printers-panel X-SuSE-ControlCenter-Hardware
2011-04-25 12:14:06 +02:00
%suse_update_desktop_file gnome-region-panel X-SuSE-ControlCenter-Personal
2011-04-25 11:58:59 +02:00
%suse_update_desktop_file gnome-screen-panel X-SuSE-ControlCenter-LookAndFeel
2011-04-25 12:14:06 +02:00
%suse_update_desktop_file gnome-sound-panel X-SuSE-ControlCenter-Hardware
%suse_update_desktop_file gnome-universal-access-panel X-SuSE-ControlCenter-Personal
%suse_update_desktop_file gnome-user-accounts-panel X-SuSE-ControlCenter-Personal
2011-09-06 22:40:02 +02:00
%suse_update_desktop_file gnome-wacom-panel X-SuSE-ControlCenter-Hardware
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)
%doc AUTHORS COPYING ChangeLog NEWS README TODO
%{_bindir} /*
%{_sysconfdir} /xdg/autostart/*.desktop
2011-04-25 11:58:59 +02:00
%{_libdir} /control-center-1/
2008-04-17 04:34:47 +02:00
%{_datadir} /applications/*.desktop
%{_datadir} /desktop-directories/*.directory
2011-04-25 11:58:59 +02:00
%{_datadir} /gnome-control-center/
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
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
2012-09-12 11:27:40 +02:00
%{_mandir} /man1/gnome-control-center.1%{?ext_man}
2011-10-12 17:06:43 +02:00
%files branding-upstream
%defattr (-, root, root)
2008-04-17 04:34:47 +02:00
%{_sysconfdir} /xdg/menus/gnomecc.menu
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/
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