Ana Guerrero 2024-11-14 15:07:27 +00:00 committed by Git OBS Bridge
commit 27fe9ca1c0
2 changed files with 17 additions and 22 deletions

View File

@ -1,3 +1,12 @@
-------------------------------------------------------------------
Wed Nov 13 08:00:01 UTC 2024 - Dominique Leuenberger <dimstar@opensuse.org>
- Move update-alternative post/postun scriptlets from the main
package to the xsession sub-package (boo#1233299).
- Drop gnome-session-default-session: this was there to also
support the alternative fallback-session, but that one was
dropped at the times of GNOME 3.8.
-------------------------------------------------------------------
Wed Oct 30 07:54:32 UTC 2024 - Bjørn Lie <bjorn.lie@gmail.com>

View File

@ -57,27 +57,15 @@ BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(xcomposite)
BuildRequires: pkgconfig(xtrans)
Requires: %{name}-core = %{version}
Requires: %{name}-default-session = %{version}
# gnome-session-wayland not recommended by default yet: causes various issues:
# qemu's default video mode is 'cirrus', which stays black with GNOME Wayland
# YaST cannot be started without additional tricks
# All together this blocks us from passing openQA
# Recommends: %%{name}-wayland
# gnome-session-default-session merged into gnome-session; the alternative - fallback-session - disappeared
# with GNOME 3.8
Provides: %{name}-default-session = %{version}
Obsoletes: %{name}-default-session <= %{version}
%description
This package provides the basic session tools, like session management
functionality, for the GNOME Desktop.
%package default-session
Summary: Default session support for the GNOME Session Manager
Group: System/GUI/GNOME
Requires: %{name} = %{version}
Requires: gnome-settings-daemon
Requires: gnome-shell
%description default-session
This package contains the definition of the default GNOME session.
%package wayland
Summary: Wayland support for the GNOME Session Manager
Group: System/GUI/GNOME
@ -149,16 +137,18 @@ touch %{buildroot}%{_sysconfdir}/alternatives/default-waylandsession.desktop
ln -s %{_sysconfdir}/alternatives/default-waylandsession.desktop %{buildroot}%{_datadir}/wayland-sessions/default.desktop
%endif
%post
%post xsession
%{_sbindir}/update-alternatives --install %{_datadir}/xsessions/default.desktop \
default-xsession.desktop %{_datadir}/xsessions/gnome.desktop 25
%postun
%postun xsession
[ -f %{_datadir}/xsessions/gnome.desktop ] || %{_sbindir}/update-alternatives \
--remove default-xsession.desktop %{_datadir}/xsessions/gnome.desktop
%files
%{_bindir}/gnome
%{_datadir}/gnome-session/sessions/gnome.session
%{_datadir}/gnome-session/sessions/gnome-dummy.session
%files xsession
%{_datadir}/xsessions/default.desktop
@ -166,10 +156,6 @@ ln -s %{_sysconfdir}/alternatives/default-waylandsession.desktop %{buildroot}%{_
%{_datadir}/xsessions/gnome-xorg.desktop
%ghost %{_sysconfdir}/alternatives/default-xsession.desktop
%files default-session
%{_datadir}/gnome-session/sessions/gnome.session
%{_datadir}/gnome-session/sessions/gnome-dummy.session
%ifnarch s390 s390x
%post wayland
%{_sbindir}/update-alternatives --install %{_datadir}/wayland-sessions/default.desktop \