2009-08-05 00:44:20 +02:00
#
2011-01-17 19:08:15 +01:00
# spec file for package gnome-shell
2009-08-05 00:44:20 +02:00
#
2017-01-06 13:13:51 +01:00
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
2009-08-05 00:44:20 +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.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
2012-02-25 15:39:20 +01:00
2016-09-08 23:23:06 +02:00
%global __requires_exclude typelib\\(Meta\\)
2009-08-05 00:44:20 +02:00
Name : gnome-shell
2017-05-17 13:42:08 +02:00
Version : 3.24.2
2011-12-21 15:56:54 +01:00
Release : 0
2010-09-13 14:11:13 +02:00
Summary : GNOME Shell
2011-12-21 15:56:54 +01:00
License : GPL-2.0+
2010-09-13 14:11:14 +02:00
Group : System/GUI/GNOME
2011-01-17 15:12:43 +01:00
Url : http://live.gnome.org/GnomeShell
2017-03-20 21:52:12 +01:00
Source : http://download.gnome.org/sources/gnome-shell/3.24/%{name} -%{version} .tar.xz
2016-09-04 15:22:57 +02:00
# SOURCE-FEATURE-SLE SLE-Classic specific core extension file, see bnc#862615
Source1 : SLEClassicExt.js
# SOURCE-FEATURE-SLE The SLE theme, with icons/background/gnome-shell.css, works with gnome-shell-sle-theme.patch
Source2 : SLE-theme.tar.gz
2016-09-08 23:23:06 +02:00
# PATCH-FIX-UPSTREAM gnome-shell-linking.patch bgo#768781 dimstar@opensuse.org -- Fix linking the various libs in private directories
Patch0 : gnome-shell-linking.patch
# PATCH-NEEDS-REBASE gnome-shell-private-connection.patch bnc#751211 bgo#646187 dimstar@opensuse.org -- create private connections if the user is not authorized Was PATCH-FIX-UPSTREAM
2013-03-13 23:41:01 +01:00
Patch1 : gnome-shell-private-connection.patch
2016-08-12 11:41:51 +02:00
# PATCH-FIX-OPENSUSE gnome-shell-disable-ibus-when-not-installed.patch bsc#987360 qzhao@suse.com -- disable ibus start when outof Chinese, Japanese, Korean area.
2016-08-22 12:43:06 +02:00
Patch2 : gnome-shell-disable-ibus-when-not-installed.patch
2016-09-04 15:22:57 +02:00
# PATCH-FEATURE-SLE gnome-shell-gdm-login-applet.patch fate#314545 dliang@suse.com -- Add an applet on login UI to display suse icon, product name, hostname.
Patch3 : gnome-shell-gdm-login-applet.patch
# PATCH-FEATURE-SLE gnome-shell-domain.patch fate#307773 dliang@suse.com -- Active Directory Integration
Patch4 : gnome-shell-domain.patch
# PATCH-FIX-SLE gnome-shell-878951-hide-list-with-no-user.patch bnc#878951 dliang@suse.com -- hide use list when there is not user
Patch5 : gnome-shell-878951-hide-list-with-no-user.patch
# PATCH-FIX-SLE gnome-shell-screen-disappear.patch bnc#870217 dliang@suse.com -- screen disapper.
Patch6 : gnome-shell-screen-disappear.patch
# PATCH-FIX-SLE endSession-dialog-update-time-label-every-sec.patch bnc#886132 cxiong@suse.com -- update time label every second in end session dialog
Patch7 : endSession-dialog-update-time-label-every-sec.patch
# PATCH-FEATURE-SLE gnome-shell-864872-unlock-by-mouse-motion.patch bnc#864872 dliang@suse.com -- 10px mouse motion to lift screen shield.
Patch8 : gnome-shell-864872-unlock-by-mouse-motion.patch
# PATCH-FIX-SLE gnome-shell-lock-bg-on-primay.patch bnc#894050 dliang@suse.com -- display background of lock dialog on the primary screen.
Patch9 : gnome-shell-lock-bg-on-primary.patch
# PATCH-FIX-SLE gnome-shell-970480-authprompt-wrapping-message.patch bnc#970480 tyang@suse.com -- fix wrapping message issue when password change operation fails.
Patch10 : gnome-shell-970480-authprompt-wrapping-message.patch
# PATCH-FIX-SLE gs-fate318433-prevent-same-account-multi-logins.patch fate#318433 cxiong@suse.com -- prevent multiple simultaneous login.
Patch11 : gs-fate318433-prevent-same-account-multi-logins.patch
# PATCH-FEATURE-SLE gnome-shell-sle-theme.patch dliang@suse.com -- Use sle theme avatar
Patch12 : gnome-shell-sle-theme.patch
2017-05-10 17:27:10 +02:00
# PATCH-FIX-UPSTREAM gnome-shell-login-fix-session-button-can-be-clicked.patch bsc#1034584 bsc#1034827 bgo#781482 xwang@suse.com -- Disable session selection button function when it does not display.
2017-04-26 16:46:56 +02:00
Patch13 : gnome-shell-login-fix-session-button-can-be-clicked.patch
2017-06-07 15:34:18 +02:00
# PATCH-FIX-UPSTREAM gnome-shell-portalhelper-fixes.patch bgo#769692 bgo#783286 zaitor@opensuse.org -- Portalhelper fixes from upstream git
Patch14 : gnome-shell-portalhelper-fixes.patch
2017-04-26 16:46:56 +02:00
## NOTE: Keep SLE Classic pathes at bottom.
2016-09-04 15:22:57 +02:00
## NOTE: Keep SLE Classic pathes at bottom.
# PATCH-FEATURE-SLE gs-sle-classic-ext.patch bnc#862615 cxiong@suse.com -- add SLE Classic support
Patch1000 : gs-sle-classic-ext.patch
2012-11-18 16:23:08 +01:00
BuildRequires : docbook-xsl-stylesheets
2014-04-03 22:51:33 +02:00
BuildRequires : gcc-c++
2017-03-02 09:54:01 +01:00
# Needed for patch2
BuildRequires : libtool
2016-05-14 13:05:02 +02:00
%if !0%{?is_opensuse}
2011-02-17 13:11:02 +01:00
BuildRequires : translation-update-upstream
2016-05-14 13:05:02 +02:00
%endif
2010-09-13 14:11:14 +02:00
BuildRequires : update-desktop-files
2012-11-18 16:23:08 +01:00
BuildRequires : xsltproc
2015-03-19 15:37:07 +01:00
BuildRequires : python(abi) >= 3
2011-04-25 16:56:38 +02:00
# needed for directory ownership
BuildRequires : dbus-1
2012-09-08 00:20:57 +02:00
BuildRequires : pkgconfig(atk-bridge-2.0)
2013-06-23 16:14:59 +02:00
BuildRequires : pkgconfig(gcr-base-3) >= 3.7.5
2011-07-29 08:56:28 +02:00
BuildRequires : pkgconfig(gdk-pixbuf-2.0)
2015-09-04 13:31:55 +02:00
BuildRequires : pkgconfig(gio-2.0) >= 2.45.3
2017-02-22 21:41:15 +01:00
BuildRequires : pkgconfig(gjs-1.0) >= 1.47.0
2013-06-23 16:14:59 +02:00
BuildRequires : pkgconfig(gnome-bluetooth-1.0) >= 3.9.0
2013-03-13 23:41:01 +01:00
BuildRequires : pkgconfig(gnome-desktop-3.0) >= 3.7.90
2012-09-21 21:21:31 +02:00
BuildRequires : pkgconfig(gnome-keybindings)
2016-09-08 23:23:06 +02:00
BuildRequires : pkgconfig(gobject-introspection-1.0) >= 1.49.1
BuildRequires : pkgconfig(gsettings-desktop-schemas) >= 3.21.2
2012-09-08 00:20:57 +02:00
BuildRequires : pkgconfig(gstreamer-1.0) >= 0.11.92
BuildRequires : pkgconfig(gstreamer-base-1.0)
2015-03-19 15:37:07 +01:00
BuildRequires : pkgconfig(gtk+-3.0) >= 3.15.0
2011-09-18 10:43:37 +02:00
BuildRequires : pkgconfig(json-glib-1.0) >= 0.13.2
2010-11-17 14:17:32 +01:00
BuildRequires : pkgconfig(libcanberra)
2015-12-29 12:35:25 +01:00
BuildRequires : pkgconfig(libcanberra-gtk3)
2013-03-13 23:41:01 +01:00
BuildRequires : pkgconfig(libcroco-0.6) >= 0.6.8
2012-09-08 00:20:57 +02:00
BuildRequires : pkgconfig(libedataserver-1.2) >= 3.5.3
BuildRequires : pkgconfig(libgnome-menu-3.0) >= 3.5.3
2017-03-14 19:48:10 +01:00
BuildRequires : pkgconfig(libmutter-0) >= 3.23.92
2011-09-05 10:17:07 +02:00
BuildRequires : pkgconfig(libnm-glib)
2013-05-05 14:00:27 +02:00
BuildRequires : pkgconfig(libnm-gtk) >= 0.9.8
BuildRequires : pkgconfig(libnm-util) >= 0.9.8
2013-03-13 23:41:01 +01:00
BuildRequires : pkgconfig(libpulse) >= 2.0
2010-11-17 14:17:32 +01:00
BuildRequires : pkgconfig(libpulse-mainloop-glib)
2013-03-13 23:41:01 +01:00
BuildRequires : pkgconfig(libsecret-unstable)
2011-07-29 08:56:28 +02:00
BuildRequires : pkgconfig(libsoup-2.4)
2011-08-08 16:38:09 +02:00
BuildRequires : pkgconfig(libstartup-notification-1.0) >= 0.11
2015-09-04 13:31:55 +02:00
BuildRequires : pkgconfig(libsystemd)
2017-02-22 21:41:15 +01:00
BuildRequires : pkgconfig(mutter-clutter-0) >= 1.26.1
BuildRequires : pkgconfig(mutter-cogl-pango-0)
2011-08-08 16:38:09 +02:00
BuildRequires : pkgconfig(polkit-agent-1) >= 0.100
2013-08-22 11:46:38 +02:00
BuildRequires : pkgconfig(xtst)
2011-02-13 23:56:07 +01:00
Requires : gdk-pixbuf-loader-rsvg
2009-10-08 03:03:21 +02:00
Requires : gnome-session
2011-07-26 00:05:57 +02:00
# For a GSettings schema and power system icon
2011-01-17 15:12:43 +01:00
Requires : gnome-settings-daemon
Requires : gsettings-desktop-schemas
2011-07-02 12:32:04 +02:00
## Finally, dependencies for session services that are needed for system icons and the user menu
# bluetooth system icon
Requires : gnome-bluetooth
# "System settings" menu item
Requires : gnome-control-center
2011-07-20 10:18:58 +02:00
# "High Contrast" in accessibility status icon
Requires : gnome-themes-accessibility
2011-10-26 16:34:20 +02:00
# 11.4 doesn't have typelib dependency
%if 0%{?suse_version} < 1210
Requires : libaccountsservice0
Requires : libcaribou0
Requires : libgdmgreeter1
%endif
2016-09-08 23:23:06 +02:00
# Due to now private typelib(Meta)
Requires : mutter
2015-03-19 15:37:07 +01:00
Recommends: %{name} -calendar
2010-09-13 14:11:14 +02:00
Recommends: %{name} -lang
2013-05-01 20:48:20 +02:00
# The dateTime applet in the panel launches gnome-clocks upon user request
Recommends: gnome-clocks
2012-02-29 08:19:17 +01:00
Recommends: gnome-shell-search-provider-documents
2015-03-19 15:37:07 +01:00
# network system icon
Recommends: NetworkManager-gnome
2016-02-19 16:07:37 +01:00
#merged into gnome-shell in 3.19
Obsoletes : gnome-shell-wayland
2017-03-02 19:19:21 +01:00
# gnome-shell implements the dbus interface org.freedesktop.Notifications directly
Provides : dbus(org.freedesktop.Notifications)
2016-02-19 16:07:37 +01:00
2009-08-05 00:44:20 +02:00
BuildRoot : %{_tmppath} /%{name} -%{version} -build
2010-09-13 14:11:14 +02:00
%glib2_gsettings_schema_requires
2009-08-05 00:44:20 +02:00
%description
The GNOME Shell redefines user interactions with the GNOME desktop. In
particular, it offers new paradigms for launching applications, accessing
documents, and organizing open windows in GNOME.
2011-12-21 15:56:54 +01:00
%package devel
Summary : GNOME Shell -- Development Files
Group : Development/Libraries/GNOME
Requires : %{name} = %{version}
%description devel
The GNOME Shell redefines user interactions with the GNOME desktop. In
particular, it offers new paradigms for launching applications, accessing
documents, and organizing open windows in GNOME.
2011-09-18 10:43:37 +02:00
%package browser-plugin
Summary : GNOME Shell Browser Plugin for the Extensions Repository
Group : System/GUI/GNOME
Requires : %{name} = %{version}
2017-03-20 15:18:05 +01:00
Supplements: packageand(%{name} :epiphany)
2011-09-18 10:43:37 +02:00
%description browser-plugin
The GNOME Shell Browser Plugin provides integration with gnome-shell
and the corresponding extensions repository. The plugin allows the
extensions repository to provide good integration, letting the website
know which extensions are enabled and disabled, and allowing the website
to enable, disable and install them.
2015-03-19 15:37:07 +01:00
%package calendar
Summary : Evolution Calendar support for GNOME Shell
Group : System/GUI/GNOME
Requires : %{name} = %{version}
# The clock / calendar applet in the panel requires e-d-s (bnc#795793).
Requires : evolution-data-server
Supplements: packageand(%{name} :evolution-data-server)
%description calendar
This package adds support for Evolution Calendar, such as appointments
into GNOME Shell calendar.
2016-09-08 23:23:06 +02:00
2009-09-04 00:55:13 +02:00
%lang_package
2016-09-04 15:22:57 +02:00
2009-08-05 00:44:20 +02:00
%prep
2009-08-17 15:33:39 +02:00
%setup -q
2016-09-08 23:23:06 +02:00
%patch0 -p1
# Needs rebase
#patch1 -p1
2016-07-10 03:16:18 +02:00
%patch2 -p1
2016-09-04 15:22:57 +02:00
%if !0%{?is_opensuse}
2016-08-12 11:41:51 +02:00
%patch3 -p1
2016-09-04 15:22:57 +02:00
%patch4 -p1
%patch5 -p1
%patch6 -p1
%patch7 -p1
%patch8 -p1
%patch9 -p1
%patch10 -p1
%patch11 -p1
### FIXME: The patch currently don't work. Re-enable when it's fixed
%if 0
%patch12 -p1
%endif
%endif
2017-04-26 16:46:56 +02:00
%patch13 -p1
2017-06-07 15:34:18 +02:00
%patch14 -p1
2016-05-14 13:05:02 +02:00
%if !0%{?is_opensuse}
2016-09-04 15:22:57 +02:00
%patch1000 -p1
2011-02-17 13:11:02 +01:00
translation-update-upstream
2016-05-14 13:05:02 +02:00
%endif
2016-09-04 15:22:57 +02:00
cp %{S:1} js/ui/
2009-08-05 00:44:20 +02:00
%build
2016-09-08 23:23:06 +02:00
# Needed for patch2
autoreconf -fiv
2011-09-18 10:43:37 +02:00
export BROWSER_PLUGIN_DIR=%{_libdir} /browser-plugins
2009-08-05 00:44:20 +02:00
%configure \
2011-04-25 16:56:38 +02:00
--disable-static \
--libexecdir=%{_libexecdir} /%{name} \
2012-09-08 00:31:27 +02:00
--enable-compile-warnings=no
2016-09-08 23:23:06 +02:00
%__make %{?_smp_mflags}
2009-08-05 00:44:20 +02:00
%install
%makeinstall
2010-09-13 14:11:14 +02:00
find %{buildroot} -type f -name " * . l a " -delete -print
2011-04-28 23:11:09 +02:00
# This is the directory where extensions get installed
install -d %{buildroot} %{_datadir} /gnome-shell/extensions
2012-02-25 15:39:20 +01:00
# This is the directory where search providers get installed
install -d %{buildroot} %{_datadir} /gnome-shell/search-providers
2016-09-04 15:22:57 +02:00
# Install SLE theme
# WARNING: some of the followings might NOT be effective at all, as core themes
# are packed as GResource.
tar xzvf %{SOURCE2}
install -d %{buildroot} %{_datadir} /gnome-shell/theme
cp -r SLE-theme/icons %{buildroot} %{_datadir} /
cp SLE-theme/theme/* %{buildroot} %{_datadir} /gnome-shell/theme
2011-02-13 23:56:07 +01:00
%find_lang %{name} %{?no_lang_C}
2016-02-19 16:07:37 +01:00
%suse_update_desktop_file org.gnome.Shell
2012-02-08 20:55:31 +01:00
%suse_update_desktop_file gnome-shell-extension-prefs
2013-10-21 18:59:33 +02:00
# Work around race, as reported in bnc#844891 & bgo#709313.
install -d %{buildroot} %{_datadir} /gnome-shell/modes
2009-08-05 00:44:20 +02:00
%clean
2010-09-13 14:11:14 +02:00
rm -rf %{buildroot}
2009-08-05 00:44:20 +02:00
2010-09-13 14:11:14 +02:00
%post
%glib2_gsettings_schema_post
2011-02-13 23:56:07 +01:00
%desktop_database_post
2010-09-13 14:11:14 +02:00
%postun
%glib2_gsettings_schema_postun
2011-02-13 23:56:07 +01:00
%desktop_database_postun
2010-09-13 14:11:14 +02:00
2011-11-28 09:19:29 +01:00
%files
2009-08-05 00:44:20 +02:00
%defattr (-,root,root)
2011-09-18 10:43:37 +02:00
%doc COPYING README NEWS
2011-01-17 15:12:43 +01:00
%{_bindir} /gnome-shell
2012-02-08 20:55:31 +01:00
%{_bindir} /gnome-shell-extension-prefs
2015-03-19 15:37:07 +01:00
%exclude %{_libexecdir} /gnome-shell/gnome-shell-calendar-server
2011-01-17 15:12:43 +01:00
%{_libexecdir} /gnome-shell/
2009-08-05 00:44:20 +02:00
%if "%{_libdir}" != "%{_libexecdir}"
2011-01-17 15:12:43 +01:00
%{_libdir} /gnome-shell/
2009-08-05 00:44:20 +02:00
%endif
2012-01-24 12:21:29 +01:00
%dir %{_datadir} /GConf
%dir %{_datadir} /GConf/gsettings
%{_datadir} /GConf/gsettings/gnome-shell-overrides.convert
2016-02-19 16:07:37 +01:00
%{_datadir} /applications/org.gnome.Shell.desktop
2012-02-08 20:55:31 +01:00
%{_datadir} /applications/gnome-shell-extension-prefs.desktop
2014-08-23 13:52:08 +02:00
%{_datadir} /applications/org.gnome.Shell.PortalHelper.desktop
2017-02-22 21:41:15 +01:00
%{_datadir} /dbus-1/interfaces/org.gnome.Shell.PadOsd.xml
2013-05-31 20:36:55 +02:00
%{_datadir} /dbus-1/interfaces/org.gnome.Shell.Screencast.xml
2013-03-13 23:41:01 +01:00
%{_datadir} /dbus-1/interfaces/org.gnome.Shell.Screenshot.xml
2012-02-25 15:39:20 +01:00
%{_datadir} /dbus-1/interfaces/org.gnome.ShellSearchProvider.xml
2013-03-13 23:41:01 +01:00
%{_datadir} /dbus-1/interfaces/org.gnome.ShellSearchProvider2.xml
2011-07-29 08:56:28 +02:00
%{_datadir} /dbus-1/services/org.gnome.Shell.HotplugSniffer.service
2014-08-23 13:52:08 +02:00
%{_datadir} /dbus-1/services/org.gnome.Shell.PortalHelper.service
2010-09-13 14:11:14 +02:00
%{_datadir} /glib-2.0/schemas/org.gnome.shell.gschema.xml
2012-09-21 21:21:31 +02:00
%{_datadir} /gnome-control-center/keybindings/50-gnome-shell-system.xml
2009-10-08 03:03:21 +02:00
%{_datadir} /gnome-shell/
2016-09-04 15:22:57 +02:00
%{_datadir} /icons/*
2011-01-17 15:12:43 +01:00
%doc %{_mandir} /man?/gnome-shell.*
2016-09-08 23:23:06 +02:00
%dir %{_datadir} /xdg-desktop-portal
%dir %{_datadir} /xdg-desktop-portal/portals
%{_datadir} /xdg-desktop-portal/portals/gnome-shell.portal
2011-12-21 15:56:54 +01:00
%files devel
%defattr (-,root,root)
2015-03-19 15:37:07 +01:00
%{_bindir} /gnome-shell-extension-tool
%{_bindir} /gnome-shell-perf-tool
2017-02-18 00:47:22 +01:00
%dir %{_datadir} /gtk-doc/html
%dir %{_datadir} /gtk-doc/html/st
%dir %{_datadir} /gtk-doc/html/shell
%{_datadir} /gtk-doc/html/st/
%{_datadir} /gtk-doc/html/shell/
2009-08-05 00:44:20 +02:00
2011-09-18 10:43:37 +02:00
%files browser-plugin
%defattr (-,root,root)
%doc browser-plugin/README
%{_libdir} /browser-plugins/libgnome-shell-browser-plugin.*
2015-03-19 15:37:07 +01:00
%files calendar
%defattr (-,root,root)
%{_datadir} /applications/evolution-calendar.desktop
%{_libexecdir} /gnome-shell/gnome-shell-calendar-server
%{_datadir} /dbus-1/services/org.gnome.Shell.CalendarServer.service
2009-09-04 00:55:13 +02:00
%files lang -f %{name}.lang
2009-08-05 00:44:20 +02:00
%changelog