gnome-shell-extensions/gnome-shell-extensions.spec

233 lines
7.9 KiB
RPMSpec

#
# spec file for package gnome-shell-extensions
#
# Copyright (c) 2011 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 http://bugs.opensuse.org/
#
Name: gnome-shell-extensions
Version: 3.0.1
Release: 1
# git show-ref HEAD
# f016b95f772f7ca3947ecee7dc2cea55a15e5138 refs/remotes/origin/HEAD
License: GPLv2+
Summary: A collection of extensions for GNOME Shell
Url: http://live.gnome.org/GnomeShell/Extensions
Group: System/GUI/GNOME
Source: %{name}.tar.bz2
Source1: README.SUSE
# Needed because we build from a git checkout
BuildRequires: gnome-common
# Needed for directory ownership
BuildRequires: gnome-shell
BuildRequires: pkgconfig(gnome-desktop-3.0)
Requires: gnome-shell
Recommends: gnome-shell-extension-alt-status-menu
Recommends: gnome-shell-extension-alternate-tab
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-user-theme
Recommends: gnome-shell-extension-windows-navigator
Recommends: gnome-shell-extension-xrandr-indicator
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%description
GNOME Shell Extensions is a collection of extensions providing
additional and optional functionality to GNOME Shell.
%package -n gnome-shell-extension-alt-status-menu
Summary: GNOME Shell Extension -- Power Off Item in Status Menu
Group: System/GUI/GNOME
License: GPLv2+
Requires: gnome-shell
Recommends: %{name}-lang
%description -n gnome-shell-extension-alt-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: GPLv2+
Requires: gnome-shell
Recommends: %{name}-lang
%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-auto-move-windows
Summary: GNOME Shell Extension -- Assign specific workspaces to applications
Group: System/GUI/GNOME
License: GPLv2+
Requires: gnome-shell
Recommends: %{name}-lang
%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: GPLv2+
Requires: gnome-shell
Recommends: %{name}-lang
%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: GPLv2+
Requires: gnome-shell
Recommends: %{name}-lang
%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: GPLv2+
Requires: gnome-shell
Recommends: %{name}-lang
%description -n gnome-shell-extension-gajim
This GNOME Shell extension adds integration with the Gajim instant
messaging client.
%package -n gnome-shell-extension-user-theme
Summary: GNOME Shell Extension -- Support for Custom Themes
Group: System/GUI/GNOME
License: GPLv2+
Requires: gnome-shell
Recommends: %{name}-lang
%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: GPLv2+
Requires: gnome-shell
Recommends: %{name}-lang
%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-xrandr-indicator
Summary: GNOME Shell Extension -- Status Menu for Rotating Monitors
Group: System/GUI/GNOME
License: GPLv2+
Requires: gnome-shell
Recommends: %{name}-lang
%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
%prep
%setup -q -n %{name}
cp %{S:1} .
%build
# Needed because we build from a git checkout
[ -x autogen.sh ] && NOCONFIGURE=1 ./autogen.sh
%configure --enable-extensions=all
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-auto-move-windows
%glib2_gsettings_schema_post
%postun -n gnome-shell-extension-auto-move-windows
%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 README.SUSE
%files -n gnome-shell-extension-alt-status-menu
%defattr(-,root,root)
%{_datadir}/gnome-shell/extensions/alternative-status-menu@gnome-shell-extensions.gnome.org/
%files -n gnome-shell-extension-alternate-tab
%defattr(-,root,root)
%{_datadir}/gnome-shell/extensions/alternate-tab@gnome-shell-extensions.gnome.org/
%files -n gnome-shell-extension-auto-move-windows
%defattr(-,root,root)
%{_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)
%{_datadir}/gnome-shell/extensions/dock@gnome-shell-extensions.gnome.org/
%files -n gnome-shell-extension-drive-menu
%defattr(-,root,root)
%{_datadir}/gnome-shell/extensions/drive-menu@gnome-shell-extensions.gnome.org/
%files -n gnome-shell-extension-gajim
%defattr(-,root,root)
%{_datadir}/gnome-shell/extensions/gajim@gnome-shell-extensions.gnome.org/
%files -n gnome-shell-extension-user-theme
%defattr(-,root,root)
%{_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)
%{_datadir}/gnome-shell/extensions/windowsNavigator@gnome-shell-extensions.gnome.org/
%files -n gnome-shell-extension-xrandr-indicator
%defattr(-,root,root)
%{_datadir}/gnome-shell/extensions/xrandr-indicator@gnome-shell-extensions.gnome.org/
%files lang -f %{name}.lang
%changelog