Browse Source

gnome-shell-extensions:
- add gnome-classic-session, default-min-max, static-workspaces
and window-list.

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@7708 ec354946-7b23-47d6-9f5a-488ba84defc7

daisuke 12 years ago
parent
commit
688a194965
1 changed files with 115 additions and 27 deletions
  1. 115 27
      g/gnome-shell-extensions/gnome-shell-extensions-vl.spec

+ 115 - 27
g/gnome-shell-extensions/gnome-shell-extensions-vl.spec

@@ -1,7 +1,8 @@
 Name:           gnome-shell-extensions
 Name:           gnome-shell-extensions
 Version:        3.8.2
 Version:        3.8.2
-Release:        1%{?_dist_release}
+Release:        2%{?_dist_release}
 Summary:        Modify and extend GNOME Shell functionality and behavior
 Summary:        Modify and extend GNOME Shell functionality and behavior
+Summary(ja):    GNOME Shell の機能や振る舞いを変更・拡張する
 Group:          User Interface/Desktops
 Group:          User Interface/Desktops
 License:        GPLv2+ 
 License:        GPLv2+ 
 URL:            http://live.gnome.org/GnomeShell/Extensions
 URL:            http://live.gnome.org/GnomeShell/Extensions
@@ -15,6 +16,7 @@ BuildRequires:  intltool
 BuildRequires:  glib2-devel
 BuildRequires:  glib2-devel
 BuildRequires:  gnome-desktop3-devel
 BuildRequires:  gnome-desktop3-devel
 BuildRequires:  libgtop2-devel
 BuildRequires:  libgtop2-devel
+BuildRequires:  desktop-file-utils
 
 
 Requires:       gnome-shell >= 3.8.0
 Requires:       gnome-shell >= 3.8.0
 BuildArch:      noarch
 BuildArch:      noarch
@@ -32,16 +34,20 @@ Enabled extensions:
 
 
   * alternate-tab
   * alternate-tab
   * alternative-status-menu
   * alternative-status-menu
-  * windowsNavigator
-  * user-theme
+  * apps-menu
   * auto-move-windows
   * auto-move-windows
+  * default-min-max
   * drive-menu
   * drive-menu
-  * places-menu
+  * launch-new-instance
   * native-window-placement
   * native-window-placement
+  * places-menu
+  * static-workspaces
+  * systemMonitor
+  * user-theme
+  * window-list
+  * windowsNavigator
   * workspace-indicator
   * workspace-indicator
   * xrandr-indicator
   * xrandr-indicator
-  * apps-menu
-  * systemMonitor
 
 
 %package        common
 %package        common
 Summary:        Files common to GNOME Shell Extensions
 Summary:        Files common to GNOME Shell Extensions
@@ -55,6 +61,29 @@ GNOME Shell Extensions is a collection of extensions providing additional
 and optional functionality to GNOME Shell. Common files and directories 
 and optional functionality to GNOME Shell. Common files and directories 
 needed by extensions are provided here.
 needed by extensions are provided here.
 
 
+%package -n gnome-classic-session
+Summary:        GNOME "classic" mode session
+Summary(ja):    GNOME クラシックモードセッション 
+Group:          User Interface/Desktops
+License:        GPLv2+
+Requires:       %{name}-alternate-tab = %{version}-%{release}
+Requires:       %{name}-apps-menu = %{version}-%{release}
+Requires:       %{name}-default-min-max = %{version}-%{release}
+Requires:       %{name}-launch-new-instance = %{version}-%{release}
+Requires:       %{name}-places-menu = %{version}-%{release}
+Requires:       %{name}-static-workspaces = %{version}-%{release}
+Requires:       %{name}-window-list = %{version}-%{release}
+# Obsolete fallback mode components
+Obsoletes:      gnome-applets < 3.5.93
+%global gnome_panel_obsolete_ver 3.6.3
+Obsoletes:      gnome-panel < %{gnome_panel_obsolete_ver}
+Obsoletes:      gnome-panel-devel < %{gnome_panel_obsolete_ver}
+Obsoletes:      gnome-panel-libs < %{gnome_panel_obsolete_ver}
+
+%description -n gnome-classic-session
+This package contains the required components for the GNOME Shell
+"classic" mode, which aims to provide a GNOME 2-like user interface.
+
 %package        alternate-tab
 %package        alternate-tab
 Summary:        Classic Alt+Tab behavior. Window based instead of app based
 Summary:        Classic Alt+Tab behavior. Window based instead of app based
 Group:          User Interface/Desktops
 Group:          User Interface/Desktops
@@ -99,6 +128,16 @@ Requires:       %{name}-common = %{version}-%{release}
 Lets the user select a custom theme for the Gnome shell. It will allow you to 
 Lets the user select a custom theme for the Gnome shell. It will allow you to 
 apply a style from /.themes/[themeName]/gnome-shell/gnome-shell.css
 apply a style from /.themes/[themeName]/gnome-shell/gnome-shell.css
 
 
+%package        window-list
+Summary:        Display a window list at the bottom of the screen in GNOME Shell
+Group:          User Interface/Desktops
+License:        GPLv2+
+Requires:       %{name}-common = %{version}-%{release}
+
+%description    window-list
+This GNOME Shell extension displays a window list at the bottom of the
+screen.
+
 %package        auto-move-windows
 %package        auto-move-windows
 Summary:        Assign specific workspaces to applications
 Summary:        Assign specific workspaces to applications
 Group:          User Interface/Desktops
 Group:          User Interface/Desktops
@@ -110,6 +149,16 @@ Lets you manage your workspaces more easily, assigning a specific workspace to
 each application as soon as it creates a window, in a manner configurable with a
 each application as soon as it creates a window, in a manner configurable with a
 GSettings key.
 GSettings key.
 
 
+%package        default-min-max
+Summary:        Add minimize and maximize titlebar buttons in GNOME Shell
+Group:          User Interface/Desktops
+License:        GPLv2+
+Requires:       %{name}-common = %{version}-%{release}
+
+%description    default-min-max
+This GNOME Shell extension adds minimize and maximize buttons to the
+titlebar by default.
+
 %package        drive-menu
 %package        drive-menu
 Summary:        Disk device manager in the system status area
 Summary:        Disk device manager in the system status area
 Group:          User Interface/Desktops
 Group:          User Interface/Desktops
@@ -120,6 +169,16 @@ Requires:       %{name}-common = %{version}-%{release}
 Adds a menu in the system status area that tracks removable disk devices
 Adds a menu in the system status area that tracks removable disk devices
 attached and offers to browse them and eject/unmount them.
 attached and offers to browse them and eject/unmount them.
 
 
+%package        launch-new-instance
+Summary:        Always launch a new application instance for GNOME Shell
+Group:          User Interface/Desktops
+License:        GPLv2+
+Requires:       %{name}-common = %{version}-%{release}
+
+%description    launch-new-instance
+This GNOME Shell extension modifies the behavior of clicking in the
+dash and app launcher to always launch a new application instance.
+
 %package        places-menu
 %package        places-menu
 Summary:        Places menu indicator in the system status area
 Summary:        Places menu indicator in the system status area
 Group:          User Interface/Desktops
 Group:          User Interface/Desktops
@@ -130,6 +189,18 @@ Requires:       %{name}-common = %{version}-%{release}
 Adds a menu in the system status area that resembles the Places menu from
 Adds a menu in the system status area that resembles the Places menu from
 GNOME 2.x
 GNOME 2.x
 
 
+%package        static-workspaces
+Summary:        Disable dynamic workspace management in GNOME Shell
+Group:          User Interface/Desktops
+License:        GPLv2+
+Requires:       %{name}-common = %{version}-%{release}
+# Should be pulled in by control-center, but in case someone tries for a
+# minimalist gnome-shell installation
+Requires:       libgtop2
+
+%description    static-workspaces
+This GNOME Shell extension disables dynamic workspace management.
+
 %package        native-window-placement
 %package        native-window-placement
 Summary:        Arrange windows in overview in a more native way
 Summary:        Arrange windows in overview in a more native way
 Group:          User Interface/Desktops
 Group:          User Interface/Desktops
@@ -189,27 +260,20 @@ An message tray indicator showing CPU and memory loads.
 # since we build from a git checkout
 # since we build from a git checkout
 [ -x autogen.sh ] && NOCONFIGURE=1 ./autogen.sh 
 [ -x autogen.sh ] && NOCONFIGURE=1 ./autogen.sh 
 
 
-# TODO: once libgtop2 >= 2.28.4 is available, enable systemMonitor extension
-# TODO: once gjs >= 0.7.15 is available, enable xrand-indicator extension
-%configure \
-  --enable-extensions="alternate-tab \
-                       alternative-status-menu \
-                       apps-menu \
-					   windowsNavigator \
-					   user-theme \
-					   auto-move-windows \
-					   drive-menu \
-					   places-menu \
-					   native-window-placement \
-					   workspace-indicator \
-					   xrandr-indicator
-					   systemMonitor"
+%configure --enable-extensions="all"
+
 make %{?_smp_mflags}
 make %{?_smp_mflags}
 
 
 %install
 %install
 rm -rf $RPM_BUILD_ROOT
 rm -rf $RPM_BUILD_ROOT
 make install DESTDIR=$RPM_BUILD_ROOT
 make install DESTDIR=$RPM_BUILD_ROOT
 
 
+# Drop useless example extension
+rm -r $RPM_BUILD_ROOT%{_datadir}/gnome-shell/extensions/example*/
+rm $RPM_BUILD_ROOT%{_datadir}/glib-2.0/schemas/org.gnome.shell.extensions.example.gschema.xml
+
+desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/gnome-shell-classic.desktop 
+
 %find_lang %{name}
 %find_lang %{name}
 
 
 %files common -f %{name}.lang
 %files common -f %{name}.lang
@@ -217,6 +281,14 @@ make install DESTDIR=$RPM_BUILD_ROOT
 %doc README
 %doc README
 %dir %{_datadir}/gnome-shell/extensions/
 %dir %{_datadir}/gnome-shell/extensions/
 
 
+%files -n gnome-classic-session
+%{_datadir}/applications/gnome-shell-classic.desktop
+%{_datadir}/gnome-session/sessions/gnome-classic.session
+%{_datadir}/gnome-shell/modes/classic.json
+%{_datadir}/gnome-shell/theme/*.svg
+%{_datadir}/gnome-shell/theme/gnome-classic.css
+%{_datadir}/xsessions/gnome-classic.desktop
+
 %files alternate-tab
 %files alternate-tab
 %defattr(-,root,root,-)
 %defattr(-,root,root,-)
 %{_datadir}/gnome-shell/extensions/alternate-tab*
 %{_datadir}/gnome-shell/extensions/alternate-tab*
@@ -235,22 +307,27 @@ make install DESTDIR=$RPM_BUILD_ROOT
 %{_datadir}/glib-2.0/schemas/org.gnome.shell.extensions.user-theme.gschema.xml
 %{_datadir}/glib-2.0/schemas/org.gnome.shell.extensions.user-theme.gschema.xml
 %{_datadir}/gnome-shell/extensions/user-theme*
 %{_datadir}/gnome-shell/extensions/user-theme*
 
 
-%files auto-move-windows
-%defattr(-,root,root,-)
-%{_datadir}/gnome-shell/extensions/auto-move-windows*
+%files default-min-max
+%{_datadir}/gnome-shell/extensions/default-min-max*/
 
 
 %files drive-menu
 %files drive-menu
 %defattr(-,root,root,-)
 %defattr(-,root,root,-)
 %{_datadir}/gnome-shell/extensions/drive-menu*
 %{_datadir}/gnome-shell/extensions/drive-menu*
 
 
-%files places-menu
-%defattr(-,root,root,-)
-%{_datadir}/gnome-shell/extensions/places-menu*
+%files launch-new-instance
+%{_datadir}/gnome-shell/extensions/launch-new-instance*/
 
 
 %files places-menu
 %files places-menu
 %defattr(-,root,root,-)
 %defattr(-,root,root,-)
 %{_datadir}/gnome-shell/extensions/places-menu*
 %{_datadir}/gnome-shell/extensions/places-menu*
 
 
+%files static-workspaces
+%{_datadir}/gnome-shell/extensions/static-workspaces*/
+
+%files window-list
+%{_datadir}/gnome-shell/extensions/window-list*/
+%{_datadir}/glib-2.0/schemas/org.gnome.shell.extensions.window-list.gschema.xml
+
 %files auto-move-windows
 %files auto-move-windows
 %defattr(-,root,root,-)
 %defattr(-,root,root,-)
 %{_datadir}/glib-2.0/schemas/org.gnome.shell.extensions.auto-move-windows.gschema.xml
 %{_datadir}/glib-2.0/schemas/org.gnome.shell.extensions.auto-move-windows.gschema.xml
@@ -292,6 +369,9 @@ glib-compile-schemas --allow-any-name %{_datadir}/glib-2.0/schemas || :
 %posttrans native-window-placement
 %posttrans native-window-placement
 glib-compile-schemas --allow-any-name %{_datadir}/glib-2.0/schemas || :
 glib-compile-schemas --allow-any-name %{_datadir}/glib-2.0/schemas || :
 
 
+%posttrans window-list
+glib-compile-schemas --allow-any-name %{_datadir}/glib-2.0/schemas || :
+
 %postun user-theme
 %postun user-theme
 glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
 glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
 
 
@@ -307,8 +387,16 @@ glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
 %postun native-window-placement
 %postun native-window-placement
 glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
 glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
 
 
+%postun window-list
+glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
+
+
 
 
 %changelog
 %changelog
+* Mon Jun 03 2013 Daisuke SUZUKI <daisuke@linux.or.jp> 3.8.2-2
+- add gnome-classic-session, default-min-max, static-workspaces
+  and window-list.
+
 * Sun May 19 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.8.2-1
 * Sun May 19 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.8.2-1
 - new upstream release
 - new upstream release