BuildArch: noarch
Source0: %{name}-%{version}.tar.bz2
Source1001: weston-ivi.manifest
-Requires: weekeyboard
+Provides: weston-startup
%description
-This package contains Tizen IVI-specific configuration and set-up for
-the Weston compositor.
+This package contains Tizen IVI-specific set-up for the Weston
+compositor, including systemd unit files, etc.
+
+%package config
+Summary: Tizen IVI Weston configuration
+Group: Automotive/Configuration
+Requires: weekeyboard
+%description config
+This package contains Tizen IVI-specific configuration for the Weston
+compositor.
%prep
%setup -q
%install
+install -d %{buildroot}%{_unitdir_user}/weston.target.wants
+install -m 644 weston.service %{buildroot}%{_unitdir_user}/weston.service
+ln -sf ../weston.service %{buildroot}/%{_unitdir_user}/weston.target.wants/
+
+mkdir -p %{buildroot}%{_sysconfdir}/profile.d/
+install -m 0644 weston.sh %{buildroot}%{_sysconfdir}/profile.d/
+
%define weston_config_dir %{_sysconfdir}/xdg/weston
mkdir -p %{buildroot}%{weston_config_dir}
install -m 0644 weston.ini %{buildroot}%{weston_config_dir}
%manifest %{name}.manifest
%defattr(-,root,root)
%license COPYING
+%{_unitdir_user}/weston.service
+%{_unitdir_user}/weston.target.wants/weston.service
+%config %{_sysconfdir}/profile.d/*
+
+%files config
+%manifest %{name}.manifest
%config %{weston_config_dir}/weston.ini
--- /dev/null
+export ELM_ENGINE=wayland_egl
+export ECORE_EVAS_ENGINE=wayland_egl
+
+# Make EFL apps use the wayland-based input method.
+export ECORE_IMF_MODULE=wayland
+
+# also export dbus session address for dbus clients (details on bug TIVI-1686 [https://bugs.tizen.org/jira/browse/TIVI-1686])
+export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$UID/dbus/user_bus_socket