Hello community,

here is the log from the commit of package xfce4-session for openSUSE:Factory 
checked in at 2017-07-07 10:17:04
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/xfce4-session (Old)
 and      /work/SRC/openSUSE:Factory/.xfce4-session.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "xfce4-session"

Fri Jul  7 10:17:04 2017 rev:76 rq:508357 version:4.12.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/xfce4-session/xfce4-session.changes      
2017-05-21 12:31:11.756196518 +0200
+++ /work/SRC/openSUSE:Factory/.xfce4-session.new/xfce4-session.changes 
2017-07-07 10:17:05.453530539 +0200
@@ -1,0 +2,11 @@
+Mon Jul  3 14:06:52 UTC 2017 - [email protected]
+
+- Do not mark %{_datadir}/xsessions/default.desktop as %ghost,
+  it needs to be installed as normal file.
+
+-------------------------------------------------------------------
+Wed May 17 14:19:47 UTC 2017 - [email protected]
+
+- Use update-alternatives to create default.desktop xsession (boo#1030873)
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ xfce4-session.spec ++++++
--- /var/tmp/diff_new_pack.IQt4zU/_old  2017-07-07 10:17:06.397396987 +0200
+++ /var/tmp/diff_new_pack.IQt4zU/_new  2017-07-07 10:17:06.397396987 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package xfce4-session
 #
-# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -55,6 +55,8 @@
 Requires:       xfconf
 # bnc#845264
 Requires:       iceauth
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
 Recommends:     %{name}-doc = %{version}
 Recommends:     %{name}-lang = %{version}
 # minimal packages for an Xfce session
@@ -139,6 +141,10 @@
 rm %{buildroot}%{_datadir}/polkit-1/actions/org.xfce.session.policy \
     %{buildroot}%{_libdir}/xfce4/session/xfsm-shutdown-helper
 
+mkdir -p %{buildroot}%{_sysconfdir}/alternatives
+touch %{buildroot}%{_sysconfdir}/alternatives/default-xsession.desktop
+ln -s %{_sysconfdir}/alternatives/default-xsession.desktop 
%{buildroot}%{_datadir}/xsessions/default.desktop
+
 %post -n %{libname} -p /sbin/ldconfig
 
 %postun -n %{libname} -p /sbin/ldconfig
@@ -146,10 +152,14 @@
 %post
 %desktop_database_post
 %icon_theme_cache_post
+%{_sbindir}/update-alternatives --install 
%{_datadir}/xsessions/default.desktop \
+  default-xsession.desktop %{_datadir}/xsessions/xfce.desktop 20
 
 %postun
 %desktop_database_postun
 %icon_theme_cache_postun
+[ -f %{_datadir}/xsessions/xfce.desktop ] || %{_sbindir}/update-alternatives \
+  --remove default-xsession.desktop %{_datadir}/xsessions/xfce.desktop
 
 %files
 %defattr(-,root,root)
@@ -166,6 +176,8 @@
 %{_libdir}/xfce4
 %{_datadir}/xfce
 %{_datadir}/xsessions/xfce.desktop
+%{_datadir}/xsessions/default.desktop
+%ghost %{_sysconfdir}/alternatives/default-xsession.desktop
 %{_datadir}/themes/*
 %{_datadir}/applications/*.desktop
 %{_datadir}/icons/*/*/*


Reply via email to