From b6b5490150e19f91b77d5fb1d9ea8f341ed821b9 Mon Sep 17 00:00:00 2001 From: Philippe Coval Date: Thu, 7 Aug 2014 11:40:09 +0200 Subject: [PATCH] packaging: make xdg-shell conditionnal at runtime Using env variable : EFL_WAYLAND_USE_XDG_SHELL (name is inspired from Qt implementation of xdg-shell) Warning: the variable will be enabled for login shells so make sure env is set to expect it to be activated (in doubt: sh -l -c "application" ) Change-Id: I202f276120d0de2245deda6820261398d88c335d Bug-Tizen: TC-1353/part Signed-off-by: Philippe Coval --- packaging/efl.spec | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/packaging/efl.spec b/packaging/efl.spec index 1112009..a2290b2 100644 --- a/packaging/efl.spec +++ b/packaging/efl.spec @@ -567,7 +567,15 @@ rm -rf %{buildroot}%{_libdir}/ecore/system/upower %post -n evas -p /sbin/ldconfig %postun -n evas -p /sbin/ldconfig -%post -n ecore -p /sbin/ldconfig +%post -n ecore +/sbin/ldconfig + +%if %{with wayland} +f="/etc/profile.d/ecore.sh" +grep EFL_WAYLAND_USE_XDG_SHELL "$f" 2>/dev/null \ + || printf "\nEFL_WAYLAND_USE_XDG_SHELL='defined'\nexport EFL_WAYLAND_USE_XDG_SHELL\n" >> "$f" +%endif + %postun -n ecore -p /sbin/ldconfig %post -n eldbus -p /sbin/ldconfig -- 2.7.4