File gnome-shell-extensions.spec of Package gnome-shell-extensions.705

# spec file for package gnome-shell-extensions
# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2011 Dominique Leuenberger, Amsterdam, The Netherlands
# 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

Name:           gnome-shell-extensions
Version:        3.10.1
Release:        0
Summary:        A collection of extensions for GNOME Shell
License:        GPL-2.0+
Group:          System/GUI/GNOME
Source1:        README.SUSE
Source2:        sle-classic.tar.bz2
# PATCH-FIX-UPSTREAM use environment variable instead of command line to specify mode so that the session saving can work as expected. See #bnc863709 and #bgo720894
Patch1:         gnome-shell-use-env-var-for-mode.patch
# PATCH-FIX-SUSE fix bundled classic extensions' arrows using standard unicodeArrow as in core/js
Patch2:         gnome-classic-exts-arrow-fix.patch
# PATCH-FIX-SUSE patch the build configurations to include the SLE Classic Mode extensions in GNOME, see bnc#862615
Patch3:         gnome-sle-classic-ext-build.patch
# Needed because we build a tarball generated with "git archive"
Patch4:         gnome-shell-add-app-to-desktop.patch
# PATCH-FEATURE-SUSE put the favorites at the end of the app catogories for accessibility reason -- bnc#890989
Patch5:         sle-classic-favorites-menu-at-end.patch
# PATCH-FIX-UPSTREAM let place menu handles changes of special user directories properly -- bnc#885490
Patch6:         place-menu-handle-special-user-dirs-update.patch
# PATCH-FIX-UPSTREAM 0001-window-list-import-gettext-for-the-right-domain.patch bnc#893598 -- initialize proper gettext domain
Patch7:         0001-window-list-import-gettext-for-the-right-domain.patch
# PATCH-FIX-SLE gnome-classic-move-notification-widget-above.patch bnc#877898 -- move notification above bottom panel
Patch8:         gnome-classic-move-notification-widget-above.patch
# PATCH-FIX-SLE places-menu-use-nautilus-for-links.patch bnc#891919 -- use Nautilus for all links in places menu
Patch9:         places-menu-use-nautilus-for-links.patch
# PATCH-FIX-UPSTREAM gnome-shell-extensions-bnc872820-wm-button-layout.patch bnc872820 - Copy upstream's default for the window manager's button layout in classic mode
Patch10:        gnome-shell-extensions-bnc872820-wm-button-layout.patch
BuildRequires:  gnome-common
# Needed for directory ownership
BuildRequires:  gnome-shell
# gobject-introspection is needed for the typelib() rpm magic.
BuildRequires:  gnome-patch-translation
BuildRequires:  gobject-introspection
BuildRequires:  intltool
BuildRequires:  translation-update-upstream
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

GNOME Shell Extensions is a collection of extensions providing
additional and optional functionality to GNOME Shell.

%package common
Summary:        GNOME Shell Extension -- Common Files
Group:          System/GUI/GNOME
Requires:       gnome-shell
Recommends:     %{name}-common-lang
# Obsoletes for metapackage and extensions from gnome-shell-extensions that we used to package
Obsoletes:      gnome-shell-extension-alternate-tab < %{version}
Obsoletes:      gnome-shell-extension-apps-menu < %{version}
Obsoletes:      gnome-shell-extension-auto-move-windows < %{version}
Obsoletes:      gnome-shell-extension-dock
Obsoletes:      gnome-shell-extension-drive-menu < %{version}
Obsoletes:      gnome-shell-extension-gajim < %{version}
Obsoletes:      gnome-shell-extension-native-window-placement < %{version}
Obsoletes:      gnome-shell-extension-places-menu < %{version}
Obsoletes:      gnome-shell-extension-systemMonitor < %{version}
Obsoletes:      gnome-shell-extension-user-theme < %{version}
Obsoletes:      gnome-shell-extension-windows-navigator < %{version}
Obsoletes:      gnome-shell-extension-workspace-indicator < %{version}
Obsoletes:      gnome-shell-extension-xrandr-indicator < %{version}
Obsoletes:      gnome-shell-extensions < %{version}

%description common
This package provides files common to several GNOME Shell Extensions

%package -n gnome-shell-classic
Summary:        GNOME SHELL classic -- collection of extensions
Group:          System/GUI/GNOME
Recommends:     %{name}-common-lang

%description -n gnome-shell-classic
This GNOME Shell extension adds a power off item in the status
menu, and provides the ability to hibernate.

This package provides the extensions required to switch to gnome-shell classic
and also installs the required session files.

%lang_package -n %{name}-common
%setup -q
%setup -a 2
%patch3 -p1
%patch4 -p1
%patch7 -p1
%patch10 -p1
# In openSUSE GNOME, we don't launch gnome-session directly, but wrap this through a shell script, /usr/bin/gnome
sed -i "s:Exec=gnome-session:Exec=gnome:g" data/
cp %{S:1} .
%if %{suse_version} == 1315
sed -i -e 's/openSUSE/SUSE Linux Enterprise/g' README.SUSE

# look in for all possible options
ENABLED_EXTENSIONS="apps-menu places-menu alternate-tab launch-new-instance window-list sle-classic"
%configure \
   --enable-classic-mode \
   --enable-sle-classic-mode \
make %{?_smp_mflags}

%find_lang %{name} %{?no_lang_C}

%post -n gnome-shell-classic

%postun -n gnome-shell-classic

%files common

%files -n gnome-shell-classic
# TODO fix this name
%dir %{_datadir}/gnome-shell/modes

%files common-lang -f %{name}.lang

openSUSE Build Service is sponsored by