Dominique Leuenberger
5a6eee9520
Fix scriptlets... OBS-URL: https://build.opensuse.org/request/show/161700 OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/gnome-shell-extensions?expand=0&rev=37
159 lines
6.5 KiB
RPMSpec
159 lines
6.5 KiB
RPMSpec
#
|
|
# spec file for package gnome-shell-extensions
|
|
#
|
|
# Copyright (c) 2013 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.8.0
|
|
Release: 0
|
|
Summary: A collection of extensions for GNOME Shell
|
|
License: GPL-2.0+
|
|
Group: System/GUI/GNOME
|
|
Url: http://live.gnome.org/GnomeShell/Extensions
|
|
Source: http://download.gnome.org/sources/gnome-shell-extensions/3.8/%{name}-%{version}.tar.xz
|
|
Source1: README.SUSE
|
|
# Users of the alternative-status-menu extension (from the package) shall be offered hibernate too
|
|
Source2: alternative-status-menu.gschema.override
|
|
# 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
|
|
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 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-extension-alternative-status-menu
|
|
Summary: GNOME Shell Extension -- Power Off Item in Status Menu
|
|
Group: System/GUI/GNOME
|
|
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}
|
|
%glib2_gsettings_schema_requires
|
|
|
|
%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-classic
|
|
Summary: gnome-shell classic -- collection of extensions
|
|
Group: System/GUI/GNOME
|
|
|
|
%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
|
|
%prep
|
|
%setup -q
|
|
cp %{S:1} .
|
|
|
|
%build
|
|
CLASSIC_EXTENSIONS=$(grep -e 'CLASSIC_EXTENSIONS=".*"' configure.ac | sed -e "s:CLASSIC_EXTENSIONS=::" -e 's:"::g')
|
|
%configure \
|
|
--enable-classic-mode \
|
|
--enable-extensions="$CLASSIC_EXTENSIONS alternative-status-menu"
|
|
make %{?_smp_mflags}
|
|
|
|
%install
|
|
%make_install
|
|
cp %{S:2} %{buildroot}%{_datadir}/glib-2.0/schemas/org.gnome.shell.extensions.alternative-status-menu.gschema.override
|
|
%find_lang %{name} %{?no_lang_C}
|
|
|
|
%post -n gnome-shell-extension-alternative-status-menu
|
|
%glib2_gsettings_schema_post
|
|
|
|
%postun -n gnome-shell-extension-alternative-status-menu
|
|
%glib2_gsettings_schema_postun
|
|
|
|
%post -n gnome-shell-classic
|
|
%glib2_gsettings_schema_post
|
|
|
|
%postun -n gnome-shell-classic
|
|
%glib2_gsettings_schema_postun
|
|
|
|
%files common
|
|
%defattr(-,root,root)
|
|
%doc COPYING README.SUSE
|
|
|
|
%files -n gnome-shell-classic
|
|
%defattr(-,root,root)
|
|
%doc COPYING
|
|
%{_datadir}/applications/gnome-shell-classic.desktop
|
|
%{_datadir}/glib-2.0/schemas/org.gnome.shell.extensions.window-list.gschema.xml
|
|
%{_datadir}/gnome-session/sessions/gnome-classic.session
|
|
%{_datadir}/gnome-shell/extensions/alternate-tab@gnome-shell-extensions.gcampax.github.com/
|
|
%{_datadir}/gnome-shell/extensions/apps-menu@gnome-shell-extensions.gcampax.github.com/
|
|
%{_datadir}/gnome-shell/extensions/default-min-max@gnome-shell-extensions.gcampax.github.com/
|
|
%{_datadir}/gnome-shell/extensions/launch-new-instance@gnome-shell-extensions.gcampax.github.com/
|
|
%{_datadir}/gnome-shell/extensions/places-menu@gnome-shell-extensions.gcampax.github.com/
|
|
%{_datadir}/gnome-shell/extensions/static-workspaces@gnome-shell-extensions.gcampax.github.com/
|
|
%{_datadir}/gnome-shell/extensions/window-list@gnome-shell-extensions.gcampax.github.com/
|
|
%dir %{_datadir}/gnome-shell/modes
|
|
%{_datadir}/gnome-shell/modes/classic.json
|
|
%{_datadir}/gnome-shell/theme/classic-toggle-off-intl.svg
|
|
%{_datadir}/gnome-shell/theme/classic-toggle-off-us.svg
|
|
%{_datadir}/gnome-shell/theme/classic-toggle-on-intl.svg
|
|
%{_datadir}/gnome-shell/theme/classic-toggle-on-us.svg
|
|
%{_datadir}/gnome-shell/theme/gnome-classic.css
|
|
%{_datadir}/xsessions/gnome-classic.desktop
|
|
|
|
%files -n gnome-shell-extension-alternative-status-menu
|
|
%defattr(-,root,root)
|
|
%doc COPYING
|
|
%{_datadir}/gnome-shell/extensions/alternative-status-menu@gnome-shell-extensions.gcampax.github.com/
|
|
%{_datadir}/glib-2.0/schemas/org.gnome.shell.extensions.alternative-status-menu.gschema.xml
|
|
%{_datadir}/glib-2.0/schemas/org.gnome.shell.extensions.alternative-status-menu.gschema.override
|
|
|
|
%files common-lang -f %{name}.lang
|
|
|
|
%changelog
|