In wayland segment, launch weston.target instead of Xorg.target.
Change-Id: I8f4079e2699124e1529d63c0a7ac28a4427dc427
Signed-off-by: Alex Wu <zhiwen.wu@linux.intel.com>
+%bcond_with wayland
+
Name: app-core
Summary: Application basic
Version: 1.2
Group: Application Framework
License: Apache License, Version 2.0
Source0: app-core-%{version}.tar.gz
-Source101: packaging/core-efl.target
+%if %{with wayland}
+Source101: packaging/core-efl-wayland.target
+%else
+Source101: packaging/core-efl-x.target
+%endif
Source1001: app-core.manifest
BuildRequires: pkgconfig(sensor)
BuildRequires: pkgconfig(vconf)
rm -rf %{buildroot}
%make_install
install -d %{buildroot}%{_unitdir_user}/core-efl.target.wants
-install -m0644 %{SOURCE101} %{buildroot}%{_unitdir_user}
+install -m0644 %{SOURCE101} %{buildroot}%{_unitdir_user}/core-efl.target
mkdir -p %{buildroot}/usr/share/license
cp LICENSE %{buildroot}/usr/share/license/%{name}
--- /dev/null
+#
+# This virtual unit maps the default core components and their dependencies.
+#
+# The real desktop services should go into the final desktop target
+# folder, which should require this virtual target. While starting
+# up, systemd will assure that the core EFL and daemons start before
+# anything else. After the core target finishes, dependencies should
+# not matter too much anymore and less fine-grained dependencies can
+# be used.
+#
+
+[Unit]
+Description=Core EFL UI target
+After=weston.target
+Requires=weston.target
--- /dev/null
+#
+# This virtual unit maps the default core components and their dependencies.
+#
+# The real desktop services should go into the final desktop target
+# folder, which should require this virtual target. While starting
+# up, systemd will assure that the core EFL and daemons start before
+# anything else. After the core target finishes, dependencies should
+# not matter too much anymore and less fine-grained dependencies can
+# be used.
+#
+
+[Unit]
+Description=Core EFL UI target
+After=xorg.target
+Requires=xorg.target