Accepting request 580405 from GNOME:Factory

- Fix build on s390/s390x without wayland: do not setup the system
  for default-waylandsession alternatives.

OBS-URL: https://build.opensuse.org/request/show/580405
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gnome-session?expand=0&rev=177
This commit is contained in:
Dominique Leuenberger 2018-02-28 19:00:58 +00:00 committed by Git OBS Bridge
commit e150c33089
2 changed files with 13 additions and 9 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Feb 26 16:44:00 CET 2018 - ro@suse.de
- Fix build on s390/s390x without wayland: do not setup the system
for default-waylandsession alternatives.
------------------------------------------------------------------- -------------------------------------------------------------------
Sun Dec 24 15:19:46 UTC 2017 - zaitor@opensuse.org Sun Dec 24 15:19:46 UTC 2017 - zaitor@opensuse.org

View File

@ -1,7 +1,7 @@
# #
# spec file for package gnome-session # spec file for package gnome-session
# #
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -20,7 +20,7 @@ Name: gnome-session
Version: 3.26.1 Version: 3.26.1
Release: 0 Release: 0
Summary: Session Tools for the GNOME Desktop Summary: Session Tools for the GNOME Desktop
License: GPL-2.0+ License: GPL-2.0-or-later
Group: System/GUI/GNOME Group: System/GUI/GNOME
Url: http://www.gnome.org Url: http://www.gnome.org
Source: http://download.gnome.org/sources/gnome-session/3.26/%{name}-%{version}.tar.xz Source: http://download.gnome.org/sources/gnome-session/3.26/%{name}-%{version}.tar.xz
@ -125,7 +125,7 @@ translation-update-upstream
make %{?_smp_mflags} make %{?_smp_mflags}
%install %install
make DESTDIR=%{buildroot} install %{?_smp_mflags} %make_install
# install startup script and xsession file # install startup script and xsession file
install -d -m755 %{buildroot}%{_bindir} install -d -m755 %{buildroot}%{_bindir}
install -m755 %{SOURCE1} %{buildroot}%{_bindir}/gnome install -m755 %{SOURCE1} %{buildroot}%{_bindir}/gnome
@ -143,8 +143,10 @@ rm -fr %{buildroot}%{_datadir}/wayland-sessions
mkdir -p %{buildroot}%{_sysconfdir}/alternatives mkdir -p %{buildroot}%{_sysconfdir}/alternatives
touch %{buildroot}%{_sysconfdir}/alternatives/default-xsession.desktop touch %{buildroot}%{_sysconfdir}/alternatives/default-xsession.desktop
ln -s %{_sysconfdir}/alternatives/default-xsession.desktop %{buildroot}%{_datadir}/xsessions/default.desktop ln -s %{_sysconfdir}/alternatives/default-xsession.desktop %{buildroot}%{_datadir}/xsessions/default.desktop
%ifnarch s390 s390x
touch %{buildroot}%{_sysconfdir}/alternatives/default-waylandsession.desktop touch %{buildroot}%{_sysconfdir}/alternatives/default-waylandsession.desktop
ln -s %{_sysconfdir}/alternatives/default-waylandsession.desktop %{buildroot}%{_datadir}/wayland-sessions/default.desktop ln -s %{_sysconfdir}/alternatives/default-waylandsession.desktop %{buildroot}%{_datadir}/wayland-sessions/default.desktop
%endif
%post %post
%{_sbindir}/update-alternatives --install %{_datadir}/xsessions/default.desktop \ %{_sbindir}/update-alternatives --install %{_datadir}/xsessions/default.desktop \
@ -155,7 +157,6 @@ ln -s %{_sysconfdir}/alternatives/default-waylandsession.desktop %{buildroot}%{_
--remove default-xsession.desktop %{_datadir}/xsessions/gnome.desktop --remove default-xsession.desktop %{_datadir}/xsessions/gnome.desktop
%files %files
%defattr (-, root, root)
%{_bindir}/gnome %{_bindir}/gnome
%{_datadir}/xsessions/default.desktop %{_datadir}/xsessions/default.desktop
%{_datadir}/xsessions/gnome.desktop %{_datadir}/xsessions/gnome.desktop
@ -163,7 +164,6 @@ ln -s %{_sysconfdir}/alternatives/default-waylandsession.desktop %{buildroot}%{_
%ghost %{_sysconfdir}/alternatives/default-xsession.desktop %ghost %{_sysconfdir}/alternatives/default-xsession.desktop
%files default-session %files default-session
%defattr (-, root, root)
%{_datadir}/gnome-session/sessions/gnome.session %{_datadir}/gnome-session/sessions/gnome.session
%{_datadir}/gnome-session/sessions/gnome-dummy.session %{_datadir}/gnome-session/sessions/gnome-dummy.session
@ -177,7 +177,6 @@ ln -s %{_sysconfdir}/alternatives/default-waylandsession.desktop %{buildroot}%{_
--remove default-waylandsession.desktop %{_datadir}/wayland-sessions/gnome.desktop --remove default-waylandsession.desktop %{_datadir}/wayland-sessions/gnome.desktop
%files wayland %files wayland
%defattr (-, root, root)
%dir %{_datadir}/wayland-sessions %dir %{_datadir}/wayland-sessions
%{_datadir}/wayland-sessions/default.desktop %{_datadir}/wayland-sessions/default.desktop
%{_datadir}/wayland-sessions/gnome.desktop %{_datadir}/wayland-sessions/gnome.desktop
@ -187,8 +186,8 @@ ln -s %{_sysconfdir}/alternatives/default-waylandsession.desktop %{buildroot}%{_
%endif %endif
%files core %files core
%defattr (-, root, root) %license COPYING
%doc AUTHORS COPYING ChangeLog NEWS README %doc AUTHORS ChangeLog NEWS README
%{_bindir}/gnome-session %{_bindir}/gnome-session
%{_bindir}/gnome-session-inhibit %{_bindir}/gnome-session-inhibit
%{_bindir}/gnome-session-quit %{_bindir}/gnome-session-quit
@ -208,6 +207,5 @@ ln -s %{_sysconfdir}/alternatives/default-waylandsession.desktop %{buildroot}%{_
%{_datadir}/gnome-session/hardware-compatibility %{_datadir}/gnome-session/hardware-compatibility
%files lang -f %{name}-3.0.lang %files lang -f %{name}-3.0.lang
%defattr(-,root,root)
%changelog %changelog