1
0

Accepting request 122422 from home:vuntz:branches:GNOME:Factory

Update to 3.4.0 + disable extensions we don't ship by default

OBS-URL: https://build.opensuse.org/request/show/122422
OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/gnome-shell-extensions?expand=0&rev=27
This commit is contained in:
Dominique Leuenberger 2012-06-04 17:38:02 +00:00 committed by Git OBS Bridge
parent 42b5318078
commit d0dc0db88e
7 changed files with 145 additions and 358 deletions

View File

@ -1,2 +1,5 @@
The gnome-shell-extensions package is a meta-package recommending
subpackages for separate installation.
GNOME Shell extensions are usually not packaged for openSUSE, unless
needed for the default installation.
It is recommended to install extensions via the extensions website:
https://extensions.gnome.org.

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:95c30865d64c649191e2fc0b0320e6c25e75ac098b87c8080e0bc2a9cd7a69c6
size 137512

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:b6c8c59213b25f4369ea22eb89523128f9ce7a98485bcb388ba0811efcfb0b3a
size 97324

View File

@ -1,33 +0,0 @@
From 967aee7aad2accfb38d91ab56b6c5e91d86a2722 Mon Sep 17 00:00:00 2001
From: Stefan 'psYchotic' Zwanenburg <stefanhetzwaantje@gmail.com>
Date: Wed, 12 Oct 2011 01:16:18 +0000
Subject: dock: Fix popup menus
The dock popup menus weren't working because a signal had been renamed
('popup' -> 'open-state-changed').
https://bugzilla.gnome.org/show_bug.cgi?id=661484
---
diff --git a/extensions/dock/extension.js b/extensions/dock/extension.js
index 47cd76f..240f8a8 100644
--- a/extensions/dock/extension.js
+++ b/extensions/dock/extension.js
@@ -682,7 +682,7 @@ DockIcon.prototype = {
this._menu.connect('activate-window', Lang.bind(this, function (menu, window) {
this.activateWindow(window);
}));
- this._menu.connect('popup', Lang.bind(this, function (menu, isPoppedUp) {
+ this._menu.connect('open-state-changed', Lang.bind(this, function (menu, isPoppedUp) {
if (!isPoppedUp){
//Restore value of autohidedock
this._dock._restoreHideDock();
@@ -776,7 +776,6 @@ DockIconMenu.prototype = {
this._source = source;
this.connect('activate', Lang.bind(this, this._onActivate));
- this.connect('open-state-changed', Lang.bind(this, this._onOpenStateChanged));
this.actor.add_style_class_name('dock-menu');
--
cgit v0.9.0.2

View File

@ -1,39 +0,0 @@
From 66242aa76a5d59fb4659551575c1fbb42e50b8fb Mon Sep 17 00:00:00 2001
From: Giovanni Campagna <gcampagna@src.gnome.org>
Date: Tue, 18 Oct 2011 08:19:50 +0000
Subject: [PATCH 1/2] Make dock extension actually work with gnome-3.2
Without this patch dock is invisible, but reacts on mouse clicks
Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com>
---
diff --git a/extensions/dock/extension.js b/extensions/dock/extension.js
index 240f8a8..02c9650 100644
--- a/extensions/dock/extension.js
+++ b/extensions/dock/extension.js
@@ -304,7 +304,6 @@ Dock.prototype = {
this.actor.show();
}));
Main.layoutManager.addChrome(this.actor);
- this.actor.lower_bottom();
//hidden
this._settings.connect('changed::'+DOCK_POSITION_KEY, Lang.bind(this, function (){
@@ -372,6 +371,8 @@ Dock.prototype = {
this.actor.connect('leave-event', Lang.bind(this, this._hideDock));
this.actor.connect('enter-event', Lang.bind(this, this._showDock));
+
+ this._hideDock();
},
destroy: function() {
@@ -861,4 +862,4 @@ function enable() {
function disable() {
dock.destroy();
dock = null;
-}
\ No newline at end of file
+}
--
cgit v0.9.0.2

View File

@ -1,3 +1,105 @@
-------------------------------------------------------------------
Fri May 25 14:25:55 UTC 2012 - vuntz@opensuse.org
- Update to version 3.4.0:
+ Build system improvements.
+ Updated translations.
- Changes from version 3.3.92:
+ Various updates for gnome-shell API changes (dock,
native-window-placement).
+ local-install is now a make rule, not a shell script.
+ Updated translations.
- Changes from version 3.3.90:
+ System wide installation via "make install" is possible again.
+ alternate-tab: can now pre-activate the selected window.
+ auto-move-windows, workspace-indicator and example gained new
preference dialogs.
+ workspace-indicator: fixed a bug wrt focus stealing prevention.
+ Updated translations.
- Changes from version 3.3.5:
+ Improvements to the build system and convenience module, making
it easier for other extensions to use, and bringing it up to
date with gnome-shell changes.
+ All extensions were ported to the Lang.Class framework (except
xrandr-indicator, which is pending GDBus merge).
+ alternate-tab and dock were slightly refactored to clean up
some old code.
- Changes from version 3.3.4:
+ native-window-placement: fixed native-window-placement with
custom button layout.
+ windowsNavigator:
- improved styling of tooltips.
- fixed when used with the numeric keypad.
+ Updated translations.
- Changes from version 3.3.3:
+ alternative-status-menu no longer conflicts with other
extensions in the user menu.
+ dock:
- the default value of hide-effect is now move.
- if autohide is disabled, now it pushes maximized windows
aside.
- updated to match current core shell styling.
+ drive-menu: changed to use media-eject icon instead of
media-optical.
+ native-window-placement: position stategy setting was removed.
+ windowsNavigator: fixed to work with azerty keyboards.
+ Various other minor bug fixes.
+ Updated translations.
- Changes from version 3.3.2:
+ All extensions are now self-contained, including l10n and
settings.
+ Introduce a convenience module that can be shared among all
extensions.
+ You can know build an installable zip file with make zip-file.
+ alternative-status-menu, alternate-tab: fix for master shell.
+ apps-menu: no longer shows NoDisplay apps
- Changes from version 3.2.1:
+ alternate-tab: both modes now work with gnome-shell 3.2.
+ dock: added "move" hide effect.
+ systemMonitor:
- now it enables/disables properly.
- improved styling.
+ Various other bug fixes.
+ Updated translations.
- Add gnome-common BuildRequires and call to ./autogen.sh in %setup
as the tarball we have is generated with "git archive" (no
tarball is published anymore upstream).
- Drop gnome-shell-extensions-fix-popup-menus.patch and
gnome-shell-extensions-make-dock-extension-work.patch: fixed
upstream.
- Rename gnome-shell-extension-alt-status-menu subpackage to
gnome-shell-extension-alternative-status-menu, following upstream
name change of the extension. Add appropriate Provides/Obsoletes
for smooth upgrades.
- Only package the alternative-status-menu extension, as we want to
avoid packaging extensions we don't ship by default. Users can
get other extensions from https://extensions.gnome.org instead:
+ Remove subpackages for other extensions:
gnome-shell-extension-alternate-tab,
gnome-shell-extension-apps-menu,
gnome-shell-extension-auto-move-windows,
gnome-shell-extension-dock, gnome-shell-extension-drive-menu,
gnome-shell-extension-gajim,
gnome-shell-extension-native-window-placement,
gnome-shell-extension-places-menu,
gnome-shell-extension-systemMonitor,
gnome-shell-extension-user-theme,
gnome-shell-extension-windows-navigator,
gnome-shell-extension-workspace-indicator,
gnome-shell-extension-xrandr-indicator.
+ Add Obsoletes for all those dropped subpackages to
gnome-shell-extensions-common, to help have smooth upgrades.
+ Remove main subpackage, as it makes no sense anymore since we
don't build all the extensions anymore. Move README.SUSE to the
gnome-shell-extensions-common subpackage instead.
+ Update README.SUSE to mention that other extensions are
available on https://extensions.gnome.org.
+ Remove pkgconfig(gnome-desktop-3.0) and pkgconfig(libgtop-2.0)
BuildRequires as they were only needed for other extensions.
+ Pass --enable-extensions=alternative-status-menu instead of
--enable-extensions=all to only build the
alternative-status-menu extension.
-------------------------------------------------------------------
Fri Oct 29 09:31:01 UTC 2011 - rbrownccb@opensuse.org

View File

@ -1,7 +1,7 @@
#
# spec file for package gnome-shell-extensions
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2012 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
@ -17,42 +17,23 @@
#
Name: gnome-shell-extensions
Version: 3.2.0
Release: 1
License: GPL-2.0+
Version: 3.4.0
Release: 0
Summary: A collection of extensions for GNOME Shell
Url: http://live.gnome.org/GnomeShell/Extensions
License: GPL-2.0+
Group: System/GUI/GNOME
Source: http://download.gnome.org/sources/gnome-shell-extensions/3.2/%{name}-%{version}.tar.bz2
Url: http://live.gnome.org/GnomeShell/Extensions
# generated with "git archive --prefix gnome-shell-extensions-3.4.0", since there are no tarballs anymore
Source: %{name}-%{version}-git-tag.tar.xz
Source1: README.SUSE
# PATCH-FIX-UPSTREAM gnome-shell-extensions-fix-popup-menus.patch bgo#661484 malcolmlewis@opensuse-org -- The dock popup menus weren't working because a signal had been renamed ('popup' -> 'open-state-changed').
Patch0: gnome-shell-extensions-fix-popup-menus.patch
# PATCH-FIX-UPSTREAM gnome-shell-extensions-make-dock-extension-work.patch malcolmlewis@opensuse-org -- Without this patch dock is invisible, but reacts on mouse clicks.
Patch1: gnome-shell-extensions-make-dock-extension-work.patch
# Needed because we build a tarball generated with "git archive"
BuildRequires: gnome-common
# Needed for directory ownership
BuildRequires: gnome-shell
# gobject-introspection is needed for the typelib() rpm magic.
BuildRequires: gobject-introspection
BuildRequires: intltool
BuildRequires: pkgconfig(gnome-desktop-3.0)
BuildRequires: pkgconfig(libgtop-2.0) >= 2.28.3
Requires: gnome-shell
Recommends: gnome-shell-extension-alt-status-menu
Recommends: gnome-shell-extension-alternate-tab
Recommends: gnome-shell-extension-apps-menu
Recommends: gnome-shell-extension-auto-move-windows
Recommends: gnome-shell-extension-dock
Recommends: gnome-shell-extension-drive-menu
Recommends: gnome-shell-extension-gajim
Recommends: gnome-shell-extension-native-window-placement
Recommends: gnome-shell-extension-places-menu
Recommends: gnome-shell-extension-systemMonitor
Recommends: gnome-shell-extension-user-theme
Recommends: gnome-shell-extension-windows-navigator
Recommends: gnome-shell-extension-workspace-indicator
Recommends: gnome-shell-extension-xrandr-indicator
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
@ -63,289 +44,62 @@ additional and optional functionality to GNOME Shell.
%package common
Summary: GNOME Shell Extension -- Common Files
Group: System/GUI/GNOME
License: GPL-2.0+
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-extension-alt-status-menu
%package -n gnome-shell-extension-alternative-status-menu
Summary: GNOME Shell Extension -- Power Off Item in Status Menu
Group: System/GUI/GNOME
License: GPL-2.0+
Requires: %{name}-common
# This used to be the name of the extension in 3.2
Provides: gnome-shell-extension-alt-status-menu = %{version}
Obsoletes: gnome-shell-extension-alt-status-menu < %{version}
%description -n gnome-shell-extension-alt-status-menu
%description -n gnome-shell-extension-alternative-status-menu
This GNOME Shell extension adds a power off item in the status
menu, and provides the ability to hibernate.
%package -n gnome-shell-extension-alternate-tab
Summary: GNOME Shell Extension -- Classic Alt+Tab behavior
Group: System/GUI/GNOME
License: GPL-2.0+
Requires: %{name}-common
%description -n gnome-shell-extension-alternate-tab
This GNOME Shell extension changes Alt+Tab to be window-based
instead of app-based.
%package -n gnome-shell-extension-apps-menu
Summary: GNOME Shell Extension -- Applications Menu
Group: System/GUI/GNOME
License: GPL-2.0+
Requires: %{name}-common
%description -n gnome-shell-extension-apps-menu
This GNOME Shell extension adds a GNOME 2.x style menu for applications.
%package -n gnome-shell-extension-auto-move-windows
Summary: GNOME Shell Extension -- Assign specific workspaces to applications
Group: System/GUI/GNOME
License: GPL-2.0+
Requires: %{name}-common
%glib2_gsettings_schema_requires
%description -n gnome-shell-extension-auto-move-windows
This GNOME Shell extension enables easy workspace management. A
specific workspace can be assigned to each application as soon as
it creates a window, in a manner configurable with a GSettings key.
%package -n gnome-shell-extension-dock
Summary: GNOME Shell Extension -- Dock-style Task Switcher
Group: System/GUI/GNOME
License: GPL-2.0+
Requires: %{name}-common
%glib2_gsettings_schema_requires
%description -n gnome-shell-extension-dock
This GNOME Shell extension displays a dock-style task switcher on
the right side of the screen.
%package -n gnome-shell-extension-drive-menu
Summary: GNOME Shell Extension -- Drive Status Menu
Group: System/GUI/GNOME
License: GPL-2.0+
Requires: %{name}-common
%description -n gnome-shell-extension-drive-menu
This GNOME Shell extension provides a panel status menu for accessing
and unmounting removable devices.
%package -n gnome-shell-extension-gajim
Summary: GNOME Shell Extension -- Gajim Integration
Group: System/GUI/GNOME
License: GPL-2.0+
Requires: %{name}-common
%description -n gnome-shell-extension-gajim
This GNOME Shell extension adds integration with the Gajim instant
messaging client.
%package -n gnome-shell-extension-native-window-placement
Summary: GNOME Shell Extension -- Native Window Placement
Group: System/GUI/GNOME
License: GPL-2.0+
Requires: %{name}-common
%glib2_gsettings_schema_requires
%description -n gnome-shell-extension-native-window-placement
This GNOME Shell extension provides additional configurability for the
window layout in the overview, including a mechanism similar to KDE4.
%package -n gnome-shell-extension-places-menu
Summary: GNOME Shell Extension -- Places Status Menu
Group: System/GUI/GNOME
License: GPL-2.0+
Requires: %{name}-common
%description -n gnome-shell-extension-places-menu
This GNOME Shell extension add a system status menu for quickly
navigating places in the system.
%package -n gnome-shell-extension-systemMonitor
Summary: GNOME Shell Extension -- System Monitor
Group: System/GUI/GNOME
License: GPL-2.0+
Requires: %{name}-common
%description -n gnome-shell-extension-systemMonitor
This GNOME Shell extension is a message tray indicator for CPU and
memory usage.
%package -n gnome-shell-extension-user-theme
Summary: GNOME Shell Extension -- Support for Custom Themes
Group: System/GUI/GNOME
License: GPL-2.0+
Requires: %{name}-common
%glib2_gsettings_schema_requires
%description -n gnome-shell-extension-user-theme
This GNOME Shell extension enables loading a GNOME Shell theme from
~/.themes/<name>/gnome-shell.
%package -n gnome-shell-extension-windows-navigator
Summary: GNOME Shell Extension -- Keyboard Selection of Windows and Workspaces
Group: System/GUI/GNOME
License: GPL-2.0+
Requires: %{name}-common
%description -n gnome-shell-extension-windows-navigator
This GNOME Shell extension enables keyboard selection of windows
and workspaces in overlay mode, by pressing the alt key.
%package -n gnome-shell-extension-workspace-indicator
Summary: GNOME Shell Extension -- Workspace Indicator
Group: System/GUI/GNOME
License: GPL-2.0+
Requires: %{name}-common
%description -n gnome-shell-extension-workspace-indicator
This GNOME Shell extension add a system status menu for quickly
changing workspaces.
%package -n gnome-shell-extension-xrandr-indicator
Summary: GNOME Shell Extension -- Status Menu for Rotating Monitors
Group: System/GUI/GNOME
License: GPL-2.0+
Requires: %{name}-common
%description -n gnome-shell-extension-xrandr-indicator
This GNOME Shell extension adds a status menu to let rotate the
laptop monitor and open display preferences quickly.
%lang_package -n %{name}-common
%prep
%setup -q
%patch0 -p1
%patch1 -p1
cp %{S:1} .
# Needed because we build a tarball generated with "git archive"
NOCONFIGURE=1 ./autogen.sh
%build
%configure --enable-extensions=all
%configure --enable-extensions=alternative-status-menu
make %{?_smp_mflags}
%install
%make_install
# Remove example extension
rm -r %{buildroot}%{_datadir}/gnome-shell/extensions/example@gnome-shell-extensions.gnome.org/
%find_lang %{name} %{?no_lang_C}
%clean
%{?buildroot:%__rm -rf %{buildroot}}
%post -n gnome-shell-extension-alternate-tab
%glib2_gsettings_schema_post
%postun -n gnome-shell-extension-alternate-tab
%glib2_gsettings_schema_postun
%post -n gnome-shell-extension-auto-move-windows
%glib2_gsettings_schema_post
%postun -n gnome-shell-extension-auto-move-windows
%glib2_gsettings_schema_postun
%post -n gnome-shell-extension-dock
%glib2_gsettings_schema_post
%postun -n gnome-shell-extension-dock
%glib2_gsettings_schema_postun
%post -n gnome-shell-extension-native-window-placement
%glib2_gsettings_schema_post
%postun -n gnome-shell-extension-native-window-placement
%glib2_gsettings_schema_postun
%post -n gnome-shell-extension-user-theme
%glib2_gsettings_schema_post
%postun -n gnome-shell-extension-user-theme
%glib2_gsettings_schema_postun
%files
%defattr(-,root,root)
%doc README.SUSE
%files common
%defattr(-,root,root)
%doc COPYING README
%doc COPYING README.SUSE
%files -n gnome-shell-extension-alt-status-menu
%files -n gnome-shell-extension-alternative-status-menu
%defattr(-,root,root)
%doc COPYING
%{_datadir}/gnome-shell/extensions/alternative-status-menu@gnome-shell-extensions.gnome.org/
%files -n gnome-shell-extension-alternate-tab
%defattr(-,root,root)
%doc COPYING
%{_datadir}/glib-2.0/schemas/org.gnome.shell.extensions.alternate-tab.gschema.xml
%{_datadir}/gnome-shell/extensions/alternate-tab@gnome-shell-extensions.gnome.org/
%files -n gnome-shell-extension-apps-menu
%defattr(-,root,root)
%doc COPYING
%{_datadir}/gnome-shell/extensions/apps-menu@gnome-shell-extensions.gnome.org/
%files -n gnome-shell-extension-auto-move-windows
%defattr(-,root,root)
%doc COPYING
%{_datadir}/glib-2.0/schemas/org.gnome.shell.extensions.auto-move-windows.gschema.xml
%{_datadir}/gnome-shell/extensions/auto-move-windows@gnome-shell-extensions.gnome.org/
%files -n gnome-shell-extension-dock
%defattr(-,root,root)
%doc COPYING
%{_datadir}/glib-2.0/schemas/org.gnome.shell.extensions.dock.gschema.xml
%{_datadir}/gnome-shell/extensions/dock@gnome-shell-extensions.gnome.org/
%files -n gnome-shell-extension-drive-menu
%defattr(-,root,root)
%doc COPYING
%{_datadir}/gnome-shell/extensions/drive-menu@gnome-shell-extensions.gnome.org/
%files -n gnome-shell-extension-gajim
%defattr(-,root,root)
%doc COPYING
%{_datadir}/gnome-shell/extensions/gajim@gnome-shell-extensions.gnome.org/
%files -n gnome-shell-extension-native-window-placement
%defattr(-,root,root)
%doc COPYING
%{_datadir}/glib-2.0/schemas/org.gnome.shell.extensions.native-window-placement.gschema.xml
%{_datadir}/gnome-shell/extensions/native-window-placement@gnome-shell-extensions.gnome.org/
%files -n gnome-shell-extension-places-menu
%defattr(-,root,root)
%doc COPYING
%{_datadir}/gnome-shell/extensions/places-menu@gnome-shell-extensions.gnome.org/
%files -n gnome-shell-extension-systemMonitor
%defattr(-,root,root)
%doc COPYING
%{_datadir}/gnome-shell/extensions/systemMonitor@gnome-shell-extensions.gnome.org/
%files -n gnome-shell-extension-user-theme
%defattr(-,root,root)
%doc COPYING
%{_datadir}/glib-2.0/schemas/org.gnome.shell.extensions.user-theme.gschema.xml
%{_datadir}/gnome-shell/extensions/user-theme@gnome-shell-extensions.gnome.org/
%files -n gnome-shell-extension-windows-navigator
%defattr(-,root,root)
%doc COPYING
%{_datadir}/gnome-shell/extensions/windowsNavigator@gnome-shell-extensions.gnome.org/
%files -n gnome-shell-extension-workspace-indicator
%defattr(-,root,root)
%doc COPYING
%{_datadir}/gnome-shell/extensions/workspace-indicator@gnome-shell-extensions.gnome.org/
%files -n gnome-shell-extension-xrandr-indicator
%defattr(-,root,root)
%doc COPYING
%{_datadir}/gnome-shell/extensions/xrandr-indicator@gnome-shell-extensions.gnome.org/
%{_datadir}/gnome-shell/extensions/alternative-status-menu@gnome-shell-extensions.gcampax.github.com/
%files common-lang -f %{name}.lang