Hello community,
here is the log from the commit of package gnome-shell-extensions for
openSUSE:Factory checked in at 2017-09-25 13:51:37
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/gnome-shell-extensions (Old)
and /work/SRC/openSUSE:Factory/.gnome-shell-extensions.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "gnome-shell-extensions"
Mon Sep 25 13:51:37 2017 rev:63 rq:528350 version:3.26.0
Changes:
--------
---
/work/SRC/openSUSE:Factory/gnome-shell-extensions/gnome-shell-extensions.changes
2017-09-21 12:30:52.700759156 +0200
+++
/work/SRC/openSUSE:Factory/.gnome-shell-extensions.new/gnome-shell-extensions.changes
2017-09-25 13:51:40.540180880 +0200
@@ -1,0 +2,8 @@
+Fri Sep 22 08:44:34 UTC 2017 - [email protected]
+
+- Register SLE-Classic with u-a handler for default.desktop
+ implementation, which obsoletes the change in
+ /etc/sysconfig/windowmanager to pick the 'default window manager'
+ (boo#1039756).
+
+-------------------------------------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ gnome-shell-extensions.spec ++++++
--- /var/tmp/diff_new_pack.ylMtN3/_old 2017-09-25 13:51:41.216085781 +0200
+++ /var/tmp/diff_new_pack.ylMtN3/_new 2017-09-25 13:51:41.216085781 +0200
@@ -18,7 +18,6 @@
%global __requires_exclude typelib\\(Meta\\)
-
Name: gnome-shell-extensions
Version: 3.26.0
Release: 0
@@ -41,15 +40,15 @@
Patch1000: gse-sle-classic-ext.patch
# 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: gnome-patch-translation
+# Needed for directory ownership
+BuildRequires: gnome-shell
BuildRequires: gobject-introspection
BuildRequires: intltool
+BuildRequires: pkgconfig
BuildRequires: translation-update-upstream
BuildRequires: pkgconfig(gio-2.0)
-BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%description
@@ -92,8 +91,8 @@
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
%if !0%{?is_opensuse}
@@ -107,7 +106,7 @@
##gnome-patch-translation-update
# 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
-cp %{S:1} .
+cp %{SOURCE1} .
%if !0%{?is_opensuse}
sed -i -e 's/openSUSE/SUSE Linux Enterprise/g' README.SUSE
%endif
@@ -126,13 +125,29 @@
%make_install
%find_lang %{name} %{?no_lang_C}
%if !0%{?is_opensuse}
-install -m0644 %{S:2} %{buildroot}/%{_datadir}/xsessions/sle-classic.desktop
+install -m0644 %{SOURCE2}
%{buildroot}/%{_datadir}/xsessions/sle-classic.desktop
# Install SLE theme
tar -xzvf %{SOURCE3}
install -d %{buildroot}%{_datadir}/gnome-shell/theme
cp SLE-theme/theme/* %{buildroot}%{_datadir}/gnome-shell/theme
+
+# 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
+%endif
+
+%if !0%{?is_opensuse}
+%post -n gnome-shell-classic
+%{_sbindir}/update-alternatives --install
%{_datadir}/xsessions/default.desktop \
+ default-xsession.desktop %{_datadir}/xsessions/sle-classic.desktop 30
+
+%postun -n gnome-shell-classic
+[ -f %{_datadir}/xsessions/sle-classic.desktop ] ||
%{_sbindir}/update-alternatives \
+ --remove default-xsession.desktop %{_datadir}/xsessions/sle-classic.desktop
%endif
+
%files common
%defattr(-,root,root)
%doc COPYING README.SUSE
@@ -164,8 +179,10 @@
%{_datadir}/gnome-shell/theme/gnome-classic-high-contrast.css
%{_datadir}/xsessions/gnome-classic.desktop
%if !0%{?is_opensuse}
+%{_datadir}/xsessions/default.desktop
%{_datadir}/xsessions/sle-classic.desktop
%{_datadir}/gnome-shell/theme/sle-background.png
+%ghost %{_sysconfdir}/alternatives/default-xsession.desktop
%endif
%files common-lang -f %{name}.lang