2011-03-04 10:39:34 +01:00
|
|
|
#
|
|
|
|
# spec file for package gnome-shell-extensions
|
|
|
|
#
|
2020-02-15 20:52:20 +01:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
2011-03-04 10:39:34 +01:00
|
|
|
# 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.
|
|
|
|
|
2018-10-11 10:41:12 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2011-03-04 10:39:34 +01:00
|
|
|
#
|
|
|
|
|
2011-07-11 16:51:46 +02:00
|
|
|
|
2016-09-08 23:21:56 +02:00
|
|
|
%global __requires_exclude typelib\\(Meta\\)
|
2011-03-04 10:39:34 +01:00
|
|
|
Name: gnome-shell-extensions
|
2020-04-30 11:42:28 +02:00
|
|
|
Version: 3.36.2
|
2012-06-04 19:38:02 +02:00
|
|
|
Release: 0
|
2011-03-04 12:17:05 +01:00
|
|
|
Summary: A collection of extensions for GNOME Shell
|
2018-03-09 11:02:15 +01:00
|
|
|
License: GPL-2.0-or-later
|
2011-03-04 10:39:34 +01:00
|
|
|
Group: System/GUI/GNOME
|
2018-09-24 09:19:06 +02:00
|
|
|
URL: https://wiki.gnome.org/Projects/GnomeShell/Extensions
|
2020-04-18 00:56:26 +02:00
|
|
|
Source0: https://download.gnome.org/sources/gnome-shell-extensions/3.36/%{name}-%{version}.tar.xz
|
2011-04-28 23:19:19 +02:00
|
|
|
Source1: README.SUSE
|
2016-09-01 12:12:54 +02:00
|
|
|
Source2: sle-classic.desktop
|
2017-05-10 15:24:41 +02:00
|
|
|
Source3: SLE-theme.tar.gz
|
2017-11-07 10:42:17 +01:00
|
|
|
Source5: sle-classic.json
|
|
|
|
Source6: sle-classic@suse.com.tar.gz
|
2018-09-24 09:19:06 +02:00
|
|
|
Source7: 00_org.gnome.shell.extensions.sle-classic.gschema.override
|
2017-11-01 13:08:28 +01:00
|
|
|
# PATCH-FEATURE-OPENSUSE gnome-shell-add-app-to-desktop.patch bnc#870580 dliang@suse.com -- allow adding app shortcut to desktop easily.
|
2016-09-01 12:12:54 +02:00
|
|
|
Patch1: gnome-shell-add-app-to-desktop.patch
|
2019-04-17 14:56:20 +02:00
|
|
|
# PATCH-FIX-OPENSUSE gnome-classic-s390-not-require-g-s-d_wacom.patch bsc#1129412 yfjiang@suse.com -- Remove the runtime requirement of g-s-d Wacom plugin
|
2019-10-04 17:46:50 +02:00
|
|
|
Patch2: gnome-classic-s390-not-require-g-s-d_wacom.patch
|
2020-03-28 13:10:30 +01:00
|
|
|
# PATCH-FIX-UPSTREAM gnome-session-remove-gsd-XSettings.patch bsc#1163262 glgo#GNOME/gnome-session#51 xwang@suse.com -- remove org.gnome.SettingsDaemon.XSettings from gnome-classic.session
|
|
|
|
Patch3: gnome-shell-extensions-remove-gsd-XSettings.patch
|
2019-08-05 11:58:15 +02:00
|
|
|
|
2016-09-01 12:12:54 +02:00
|
|
|
## NOTE keep SLE Classic patch at the bottom
|
|
|
|
# PATCH-FIX-SLE gse-sle-classic-ext.patch Fate#318572 cxiong@suse.com -- add sle classic support
|
|
|
|
Patch1000: gse-sle-classic-ext.patch
|
2018-09-24 09:19:06 +02:00
|
|
|
# PATCH-FEATURE-SLE sle-classic-lock-screen-background.patch bsc#1007468 xwang@suse.com -- add SUSE logo on lock screen when auth is requested
|
|
|
|
Patch1001: sle-classic-lock-screen-background.patch
|
2018-03-14 19:39:40 +01:00
|
|
|
BuildRequires: fdupes
|
2018-03-22 10:41:30 +01:00
|
|
|
BuildRequires: gnome-patch-translation
|
2017-09-22 22:29:15 +02:00
|
|
|
# Needed for directory ownership
|
|
|
|
BuildRequires: gnome-shell
|
2018-03-14 19:39:40 +01:00
|
|
|
# gobject-introspection is needed for the typelib() rpm magic.
|
2011-08-11 21:39:37 +02:00
|
|
|
BuildRequires: gobject-introspection
|
2018-03-09 11:02:15 +01:00
|
|
|
BuildRequires: meson >= 0.44.0
|
|
|
|
BuildRequires: sassc
|
2018-03-14 19:39:40 +01:00
|
|
|
BuildRequires: translation-update-upstream
|
2011-03-04 10:39:34 +01:00
|
|
|
|
|
|
|
%description
|
2011-03-04 12:17:05 +01:00
|
|
|
GNOME Shell Extensions is a collection of extensions providing
|
|
|
|
additional and optional functionality to GNOME Shell.
|
2011-03-04 10:39:34 +01:00
|
|
|
|
2011-10-28 12:13:52 +02:00
|
|
|
%package common
|
2017-09-11 12:17:26 +02:00
|
|
|
Summary: Common files for GNOME Shell extensions
|
2011-10-28 12:13:52 +02:00
|
|
|
Group: System/GUI/GNOME
|
|
|
|
Requires: gnome-shell
|
2012-06-04 19:38:02 +02:00
|
|
|
# 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-windows-navigator < %{version}
|
|
|
|
Obsoletes: gnome-shell-extension-workspace-indicator < %{version}
|
|
|
|
Obsoletes: gnome-shell-extension-xrandr-indicator < %{version}
|
|
|
|
Obsoletes: gnome-shell-extensions < %{version}
|
2019-05-31 17:12:02 +02:00
|
|
|
BuildArch: noarch
|
2011-10-28 12:13:52 +02:00
|
|
|
|
|
|
|
%description common
|
|
|
|
This package provides files common to several GNOME Shell Extensions
|
|
|
|
|
2013-03-13 23:54:07 +01:00
|
|
|
%package -n gnome-shell-classic
|
2017-09-11 12:17:26 +02:00
|
|
|
Summary: A collection of extensions for Gnome-shell classic
|
2013-03-13 23:54:07 +01:00
|
|
|
Group: System/GUI/GNOME
|
2019-05-31 17:12:02 +02:00
|
|
|
Requires: gnome-shell-classic-session
|
2019-10-08 14:56:35 +02:00
|
|
|
Requires: gnome-shell-extension-desktop-icons
|
2019-05-31 17:12:02 +02:00
|
|
|
BuildArch: noarch
|
2013-03-13 23:54:07 +01:00
|
|
|
|
|
|
|
%description -n gnome-shell-classic
|
|
|
|
This GNOME Shell extension adds a power off item in the status
|
|
|
|
menu, and provides the ability to hibernate.
|
|
|
|
|
2019-05-31 17:12:02 +02:00
|
|
|
This package provides the extensions required to switch to
|
|
|
|
gnome-shell classic.
|
|
|
|
|
|
|
|
%package -n gnome-shell-classic-session
|
|
|
|
Summary: A collection of extensions for Gnome-shell classic
|
|
|
|
Group: System/GUI/GNOME
|
|
|
|
|
|
|
|
%description -n gnome-shell-classic-session
|
|
|
|
This packages provides architecture dependent session files to
|
|
|
|
gnome-shell classic.
|
2013-03-13 23:54:07 +01:00
|
|
|
|
2020-02-15 20:52:20 +01:00
|
|
|
%package -n gnome-shell-extension-user-theme
|
|
|
|
Summary: Allow the user to change GNOME Shell Themes
|
|
|
|
Group: System/GUI/GNOME
|
2020-04-18 00:56:26 +02:00
|
|
|
BuildArch: noarch
|
2020-02-15 20:52:20 +01:00
|
|
|
|
|
|
|
%description -n gnome-shell-extension-user-theme
|
|
|
|
This extension allows the user to switch to different themes. It's possible
|
|
|
|
to pick system installed themes or even themes installed in the user's home.
|
|
|
|
|
2011-10-28 12:13:52 +02:00
|
|
|
%lang_package -n %{name}-common
|
2017-09-22 22:29:15 +02:00
|
|
|
|
2011-03-04 10:39:34 +01:00
|
|
|
%prep
|
2011-05-27 00:15:20 +02:00
|
|
|
%setup -q
|
2017-11-01 13:08:28 +01:00
|
|
|
%patch1 -p1
|
2019-04-17 14:56:20 +02:00
|
|
|
%ifarch s390 s390x
|
2019-10-04 17:46:50 +02:00
|
|
|
%patch2 -p1
|
2019-04-17 14:56:20 +02:00
|
|
|
%endif
|
2020-03-28 13:10:30 +01:00
|
|
|
%patch3 -p1
|
2018-07-24 23:07:39 +02:00
|
|
|
translation-update-upstream po %{name}
|
|
|
|
gnome-patch-translation-prepare po %{name}
|
2019-04-17 14:56:20 +02:00
|
|
|
|
2018-09-24 09:19:06 +02:00
|
|
|
%patch1000 -p1
|
2018-03-22 10:41:30 +01:00
|
|
|
%if !0%{?is_opensuse}
|
2018-09-24 09:19:06 +02:00
|
|
|
%patch1001 -p1
|
2016-09-01 12:12:54 +02:00
|
|
|
%endif
|
2013-04-13 18:09:22 +02:00
|
|
|
# In openSUSE GNOME, we don't launch gnome-session directly, but wrap this through a shell script, /usr/bin/gnome
|
|
|
|
sed -i "s:Exec=gnome-session:Exec=gnome:g" data/gnome-classic.desktop.in
|
2017-09-22 22:29:15 +02:00
|
|
|
cp %{SOURCE1} .
|
2016-09-01 12:12:54 +02:00
|
|
|
%if !0%{?is_opensuse}
|
|
|
|
sed -i -e 's/openSUSE/SUSE Linux Enterprise/g' README.SUSE
|
|
|
|
%endif
|
2011-03-04 10:39:34 +01:00
|
|
|
|
|
|
|
%build
|
2018-03-09 11:02:15 +01:00
|
|
|
%meson \
|
|
|
|
-D classic_mode=true \
|
|
|
|
-D extension_set=classic \
|
2020-02-15 20:52:20 +01:00
|
|
|
-D enable_extensions="apps-menu,places-menu,launch-new-instance,window-list,workspace-indicator,horizontal-workspaces,user-theme"
|
2018-03-09 11:02:15 +01:00
|
|
|
%meson_build
|
2011-03-04 10:39:34 +01:00
|
|
|
|
|
|
|
%install
|
2018-03-09 11:02:15 +01:00
|
|
|
%meson_install
|
2011-03-04 12:17:05 +01:00
|
|
|
%find_lang %{name} %{?no_lang_C}
|
2018-09-24 09:19:06 +02:00
|
|
|
#Install SLE theme
|
|
|
|
#Install sle-classic@suse.com extension
|
2017-09-22 22:29:15 +02:00
|
|
|
install -m0644 %{SOURCE2} %{buildroot}/%{_datadir}/xsessions/sle-classic.desktop
|
2019-10-04 17:46:50 +02:00
|
|
|
cp %{_builddir}/%{name}-%{version}/extensions/window-list/sle-classic.css \
|
2017-11-07 10:42:17 +01:00
|
|
|
%{buildroot}/%{_datadir}/gnome-shell/extensions/window-list@gnome-shell-extensions.gcampax.github.com/sle-classic.css
|
|
|
|
install -m0644 %{SOURCE5} %{buildroot}/%{_datadir}/gnome-shell/modes/sle-classic.json
|
|
|
|
tar -xzvf %{SOURCE6}
|
2018-09-24 09:19:06 +02:00
|
|
|
install -d %{buildroot}/%{_datadir}/gnome-shell/extensions/sle-classic@suse.com
|
|
|
|
cp sle-classic@suse.com/* %{buildroot}/%{_datadir}/gnome-shell/extensions/sle-classic@suse.com
|
|
|
|
install -m0644 %{SOURCE7} %{buildroot}/%{_datadir}/glib-2.0/schemas/00_org.gnome.shell.extensions.sle-classic.gschema.override
|
2017-11-10 15:47:02 +01:00
|
|
|
%if !0%{?is_opensuse}
|
|
|
|
tar -xzvf %{SOURCE3}
|
|
|
|
install -d %{buildroot}%{_datadir}/gnome-shell/theme
|
|
|
|
cp SLE-theme/theme/* %{buildroot}%{_datadir}/gnome-shell/theme
|
|
|
|
%endif
|
2018-03-14 19:39:40 +01:00
|
|
|
%fdupes %{buildroot}%{_datadir}
|
2017-09-22 22:29:15 +02:00
|
|
|
|
2017-11-10 15:47:02 +01:00
|
|
|
%if !0%{?is_opensuse}
|
2017-09-22 22:29:15 +02:00
|
|
|
# Prepare for 'default.desktop' being update-alternative handled, boo#1039756
|
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}/alternatives
|
|
|
|
touch %{buildroot}%{_sysconfdir}/alternatives/default-xsession.desktop
|
|
|
|
ln -s %{_sysconfdir}/alternatives/default-xsession.desktop %{buildroot}%{_datadir}/xsessions/default.desktop
|
2017-10-20 16:36:27 +02:00
|
|
|
touch %{buildroot}%{_sysconfdir}/alternatives/default-waylandsession.desktop
|
2018-09-24 09:19:06 +02:00
|
|
|
install -d -m755 %{buildroot}%{_datadir}/wayland-sessions
|
2017-10-20 16:36:27 +02:00
|
|
|
ln -s %{_sysconfdir}/alternatives/default-waylandsession.desktop %{buildroot}%{_datadir}/wayland-sessions/default.desktop
|
2017-09-22 22:29:15 +02:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%if !0%{?is_opensuse}
|
|
|
|
%post -n gnome-shell-classic
|
|
|
|
%{_sbindir}/update-alternatives --install %{_datadir}/xsessions/default.desktop \
|
2017-11-24 10:45:58 +01:00
|
|
|
default-xsession.desktop %{_datadir}/xsessions/sle-classic.desktop 20
|
2017-09-22 22:29:15 +02:00
|
|
|
|
|
|
|
%postun -n gnome-shell-classic
|
|
|
|
[ -f %{_datadir}/xsessions/sle-classic.desktop ] || %{_sbindir}/update-alternatives \
|
|
|
|
--remove default-xsession.desktop %{_datadir}/xsessions/sle-classic.desktop
|
2016-09-01 12:12:54 +02:00
|
|
|
%endif
|
2011-03-04 10:39:34 +01:00
|
|
|
|
2011-10-28 12:13:52 +02:00
|
|
|
%files common
|
2018-03-09 11:02:15 +01:00
|
|
|
%license COPYING
|
2018-03-14 19:39:40 +01:00
|
|
|
%doc README.SUSE HACKING.md NEWS README.md
|
2011-08-11 21:39:37 +02:00
|
|
|
|
2013-03-13 23:54:07 +01:00
|
|
|
%files -n gnome-shell-classic
|
2018-03-09 11:02:15 +01:00
|
|
|
%{_datadir}/glib-2.0/schemas/org.gnome.shell.extensions.auto-move-windows.gschema.xml
|
2018-09-24 09:19:06 +02:00
|
|
|
%{_datadir}/glib-2.0/schemas/00_org.gnome.shell.extensions.classic.gschema.override
|
2018-03-09 11:02:15 +01:00
|
|
|
%{_datadir}/glib-2.0/schemas/org.gnome.shell.extensions.native-window-placement.gschema.xml
|
|
|
|
%{_datadir}/glib-2.0/schemas/org.gnome.shell.extensions.screenshot-window-sizer.gschema.xml
|
|
|
|
%{_datadir}/glib-2.0/schemas/org.gnome.shell.extensions.user-theme.gschema.xml
|
2013-03-13 23:54:07 +01:00
|
|
|
%{_datadir}/glib-2.0/schemas/org.gnome.shell.extensions.window-list.gschema.xml
|
2018-09-24 09:19:06 +02:00
|
|
|
%{_datadir}/glib-2.0/schemas/00_org.gnome.shell.extensions.sle-classic.gschema.override
|
2018-01-08 14:49:51 +01:00
|
|
|
%dir %{_datadir}/gnome-shell/extensions
|
2013-03-13 23:54:07 +01:00
|
|
|
%{_datadir}/gnome-shell/extensions/apps-menu@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/
|
2016-09-01 12:12:54 +02:00
|
|
|
%{_datadir}/gnome-shell/extensions/workspace-indicator@gnome-shell-extensions.gcampax.github.com/
|
2013-03-13 23:54:07 +01:00
|
|
|
%{_datadir}/gnome-shell/extensions/window-list@gnome-shell-extensions.gcampax.github.com/
|
2019-10-04 17:46:50 +02:00
|
|
|
%{_datadir}/gnome-shell/extensions/horizontal-workspaces@gnome-shell-extensions.gcampax.github.com/
|
2013-03-13 23:54:07 +01:00
|
|
|
%dir %{_datadir}/gnome-shell/modes
|
|
|
|
%{_datadir}/gnome-shell/modes/classic.json
|
2015-03-19 15:36:40 +01:00
|
|
|
%dir %{_datadir}/gnome-shell/theme/
|
2015-10-19 11:56:03 +02:00
|
|
|
%{_datadir}/gnome-shell/theme/calendar-today.svg
|
2013-04-19 11:38:18 +02:00
|
|
|
%{_datadir}/gnome-shell/theme/classic-process-working.svg
|
2013-03-13 23:54:07 +01:00
|
|
|
%{_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
|
2015-03-19 15:36:40 +01:00
|
|
|
%{_datadir}/gnome-shell/theme/gnome-classic-high-contrast.css
|
2013-03-13 23:54:07 +01:00
|
|
|
%{_datadir}/xsessions/gnome-classic.desktop
|
2016-09-01 12:12:54 +02:00
|
|
|
%{_datadir}/xsessions/sle-classic.desktop
|
2017-11-07 10:42:17 +01:00
|
|
|
%{_datadir}/gnome-shell/extensions/window-list@gnome-shell-extensions.gcampax.github.com/sle-classic.css
|
|
|
|
%{_datadir}/gnome-shell/modes/sle-classic.json
|
|
|
|
%{_datadir}/gnome-shell/extensions/sle-classic@suse.com/
|
2017-11-10 15:47:02 +01:00
|
|
|
%if !0%{?is_opensuse}
|
2018-09-24 09:19:06 +02:00
|
|
|
%dir %{_datadir}/wayland-sessions
|
2017-05-10 15:24:41 +02:00
|
|
|
%{_datadir}/gnome-shell/theme/sle-background.png
|
2017-11-10 15:47:02 +01:00
|
|
|
%{_datadir}/xsessions/default.desktop
|
|
|
|
%{_datadir}/wayland-sessions/default.desktop
|
2017-09-22 22:29:15 +02:00
|
|
|
%ghost %{_sysconfdir}/alternatives/default-xsession.desktop
|
2017-10-20 16:36:27 +02:00
|
|
|
%ghost %{_sysconfdir}/alternatives/default-waylandsession.desktop
|
2016-09-01 12:12:54 +02:00
|
|
|
%endif
|
2013-03-13 23:54:07 +01:00
|
|
|
|
2019-05-31 17:12:02 +02:00
|
|
|
%files -n gnome-shell-classic-session
|
|
|
|
%defattr(-,root,root)
|
2019-08-08 12:13:26 +02:00
|
|
|
%license COPYING
|
2019-05-31 17:12:02 +02:00
|
|
|
%{_datadir}/gnome-session/sessions/gnome-classic.session
|
|
|
|
|
2020-02-15 20:52:20 +01:00
|
|
|
%files -n gnome-shell-extension-user-theme
|
|
|
|
%license COPYING
|
|
|
|
%{_datadir}/gnome-shell/extensions/user-theme@gnome-shell-extensions.gcampax.github.com/
|
|
|
|
|
2011-10-28 12:13:52 +02:00
|
|
|
%files common-lang -f %{name}.lang
|
2011-03-04 10:39:34 +01:00
|
|
|
|
|
|
|
%changelog
|