From 42b531807869bce6c04c03466dd2187806acd7a94e9a8c5469dcb6cb1874d0f1 Mon Sep 17 00:00:00 2001 From: Vincent Untz Date: Fri, 28 Oct 2011 10:13:52 +0000 Subject: [PATCH] Accepting request 89657 from home:RBrownCCB:branches:GNOME:Factory Allow individual extensions to be installed OBS-URL: https://build.opensuse.org/request/show/89657 OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/gnome-shell-extensions?expand=0&rev=25 --- gnome-shell-extensions.changes | 15 ++++++++ gnome-shell-extensions.spec | 62 +++++++++++++++++----------------- 2 files changed, 46 insertions(+), 31 deletions(-) diff --git a/gnome-shell-extensions.changes b/gnome-shell-extensions.changes index 93af2e4..fd06e7d 100644 --- a/gnome-shell-extensions.changes +++ b/gnome-shell-extensions.changes @@ -1,3 +1,18 @@ +------------------------------------------------------------------- +Fri Oct 29 09:31:01 UTC 2011 - rbrownccb@opensuse.org + +- Make it easier to install individual extensions without + installing all of them: + + This was happening because of the lang subpackage Recommends + that was bringing the main subpackage, which in term was + bringing all extensions through Recommends. + + Create a gnome-shell-extensions-common subpackage and use it + as a basis for the translations, by renaming the lang + subpackage to gnome-shell-extensions-common-lang. + + Replace gnome-shell Requires and lang Recommends in all + extensions subpackages with a Requires on + gnome-shell-extensions-common which leads to the same result. + ------------------------------------------------------------------- Thu Oct 20 14:23:41 UTC 2011 - malcolmlewis@opensuse.org diff --git a/gnome-shell-extensions.spec b/gnome-shell-extensions.spec index abca0f0..a461687 100644 --- a/gnome-shell-extensions.spec +++ b/gnome-shell-extensions.spec @@ -60,12 +60,21 @@ 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 +License: GPL-2.0+ +Requires: gnome-shell +Recommends: %{name}-common-lang + +%description common +This package provides files common to several GNOME Shell Extensions + %package -n gnome-shell-extension-alt-status-menu Summary: GNOME Shell Extension -- Power Off Item in Status Menu Group: System/GUI/GNOME License: GPL-2.0+ -Requires: gnome-shell -Recommends: %{name}-lang +Requires: %{name}-common %description -n gnome-shell-extension-alt-status-menu This GNOME Shell extension adds a power off item in the status @@ -75,8 +84,7 @@ menu, and provides the ability to hibernate. Summary: GNOME Shell Extension -- Classic Alt+Tab behavior Group: System/GUI/GNOME License: GPL-2.0+ -Requires: gnome-shell -Recommends: %{name}-lang +Requires: %{name}-common %description -n gnome-shell-extension-alternate-tab This GNOME Shell extension changes Alt+Tab to be window-based @@ -86,8 +94,7 @@ instead of app-based. Summary: GNOME Shell Extension -- Applications Menu Group: System/GUI/GNOME License: GPL-2.0+ -Requires: gnome-shell -Recommends: %{name}-lang +Requires: %{name}-common %description -n gnome-shell-extension-apps-menu This GNOME Shell extension adds a GNOME 2.x style menu for applications. @@ -96,8 +103,7 @@ This GNOME Shell extension adds a GNOME 2.x style menu for applications. Summary: GNOME Shell Extension -- Assign specific workspaces to applications Group: System/GUI/GNOME License: GPL-2.0+ -Requires: gnome-shell -Recommends: %{name}-lang +Requires: %{name}-common %glib2_gsettings_schema_requires %description -n gnome-shell-extension-auto-move-windows @@ -109,8 +115,7 @@ it creates a window, in a manner configurable with a GSettings key. Summary: GNOME Shell Extension -- Dock-style Task Switcher Group: System/GUI/GNOME License: GPL-2.0+ -Requires: gnome-shell -Recommends: %{name}-lang +Requires: %{name}-common %glib2_gsettings_schema_requires %description -n gnome-shell-extension-dock @@ -121,8 +126,7 @@ the right side of the screen. Summary: GNOME Shell Extension -- Drive Status Menu Group: System/GUI/GNOME License: GPL-2.0+ -Requires: gnome-shell -Recommends: %{name}-lang +Requires: %{name}-common %description -n gnome-shell-extension-drive-menu This GNOME Shell extension provides a panel status menu for accessing @@ -132,8 +136,7 @@ and unmounting removable devices. Summary: GNOME Shell Extension -- Gajim Integration Group: System/GUI/GNOME License: GPL-2.0+ -Requires: gnome-shell -Recommends: %{name}-lang +Requires: %{name}-common %description -n gnome-shell-extension-gajim This GNOME Shell extension adds integration with the Gajim instant @@ -143,8 +146,7 @@ messaging client. Summary: GNOME Shell Extension -- Native Window Placement Group: System/GUI/GNOME License: GPL-2.0+ -Requires: gnome-shell -Recommends: %{name}-lang +Requires: %{name}-common %glib2_gsettings_schema_requires %description -n gnome-shell-extension-native-window-placement @@ -155,8 +157,7 @@ window layout in the overview, including a mechanism similar to KDE4. Summary: GNOME Shell Extension -- Places Status Menu Group: System/GUI/GNOME License: GPL-2.0+ -Requires: gnome-shell -Recommends: %{name}-lang +Requires: %{name}-common %description -n gnome-shell-extension-places-menu This GNOME Shell extension add a system status menu for quickly @@ -166,8 +167,7 @@ navigating places in the system. Summary: GNOME Shell Extension -- System Monitor Group: System/GUI/GNOME License: GPL-2.0+ -Requires: gnome-shell -Recommends: %{name}-lang +Requires: %{name}-common %description -n gnome-shell-extension-systemMonitor This GNOME Shell extension is a message tray indicator for CPU and @@ -177,8 +177,7 @@ memory usage. Summary: GNOME Shell Extension -- Support for Custom Themes Group: System/GUI/GNOME License: GPL-2.0+ -Requires: gnome-shell -Recommends: %{name}-lang +Requires: %{name}-common %glib2_gsettings_schema_requires %description -n gnome-shell-extension-user-theme @@ -189,8 +188,7 @@ This GNOME Shell extension enables loading a GNOME Shell theme from Summary: GNOME Shell Extension -- Keyboard Selection of Windows and Workspaces Group: System/GUI/GNOME License: GPL-2.0+ -Requires: gnome-shell -Recommends: %{name}-lang +Requires: %{name}-common %description -n gnome-shell-extension-windows-navigator This GNOME Shell extension enables keyboard selection of windows @@ -200,8 +198,7 @@ and workspaces in overlay mode, by pressing the alt key. Summary: GNOME Shell Extension -- Workspace Indicator Group: System/GUI/GNOME License: GPL-2.0+ -Requires: gnome-shell -Recommends: %{name}-lang +Requires: %{name}-common %description -n gnome-shell-extension-workspace-indicator This GNOME Shell extension add a system status menu for quickly @@ -211,14 +208,13 @@ changing workspaces. Summary: GNOME Shell Extension -- Status Menu for Rotating Monitors Group: System/GUI/GNOME License: GPL-2.0+ -Requires: gnome-shell -Recommends: %{name}-lang +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 +%lang_package -n %{name}-common %prep %setup -q %patch0 -p1 @@ -270,7 +266,11 @@ rm -r %{buildroot}%{_datadir}/gnome-shell/extensions/example@gnome-shell-extensi %files %defattr(-,root,root) -%doc COPYING README README.SUSE +%doc README.SUSE + +%files common +%defattr(-,root,root) +%doc COPYING README %files -n gnome-shell-extension-alt-status-menu %defattr(-,root,root) @@ -347,6 +347,6 @@ rm -r %{buildroot}%{_datadir}/gnome-shell/extensions/example@gnome-shell-extensi %doc COPYING %{_datadir}/gnome-shell/extensions/xrandr-indicator@gnome-shell-extensions.gnome.org/ -%files lang -f %{name}.lang +%files common-lang -f %{name}.lang %changelog