In 64-bit TV emulator gumd service is failed to launch.
So, webapps could not be installed.
Switch to public tizen gumd init mechanism for 64-bit emulator.
Change-Id: I05d0cb8ca76d0f3516a9a0685ad14c3cf8bffd95
Signed-off-by: Gaurav Gupta <g.gupta@samsung.com>
cp -a %{SOURCE1001} %{name}.manifest
cp -a %{SOURCE1002} libgum.manifest
cp data/gumd.service data/gumd.service.wearable
cp -a %{SOURCE1001} %{name}.manifest
cp -a %{SOURCE1002} libgum.manifest
cp data/gumd.service data/gumd.service.wearable
+%ifarch x86_64
+%define emul_arch x86_64
+%endif
-%if "%{tizen_profile_name}" == "tv"
+%if "%{tizen_profile_name}" == "tv" && "%{emul_arch}" != "x86_64"
mv "%{GUMD_DBUS_SERVICE}".vd.in "%{GUMD_DBUS_SERVICE}".in
%else
mv "%{GUMD_DBUS_SERVICE}".common.in "%{GUMD_DBUS_SERVICE}".in
mv "%{GUMD_DBUS_SERVICE}".vd.in "%{GUMD_DBUS_SERVICE}".in
%else
mv "%{GUMD_DBUS_SERVICE}".common.in "%{GUMD_DBUS_SERVICE}".in
install -m 644 data/tizen/etc/%{name}/%{name}-tizen-common.conf %{buildroot}%{_sysconfdir}/%{name}/%{name}.conf
install -m 755 -d %{buildroot}%{_unitdir}
install -m 644 data/gumd.service.wearable %{buildroot}%{_unitdir}
install -m 644 data/tizen/etc/%{name}/%{name}-tizen-common.conf %{buildroot}%{_sysconfdir}/%{name}/%{name}.conf
install -m 755 -d %{buildroot}%{_unitdir}
install -m 644 data/gumd.service.wearable %{buildroot}%{_unitdir}
+%if "%{tizen_profile_name}" == "tv" && "%{emul_arch}" == "x86_64"
+install -m 644 data/gumd.service %{buildroot}%{_unitdir}
+%endif
%if "%{tizen_profile_name}" != "tv"
install -m 644 data/gumd.service %{buildroot}%{_unitdir}
%endif
%if "%{tizen_profile_name}" != "tv"
install -m 644 data/gumd.service %{buildroot}%{_unitdir}
%endif
%dir %{_sysconfdir}/dbus-1
%dir %{_sysconfdir}/dbus-1/system.d
%config(noreplace) %{_sysconfdir}/dbus-1/system.d/gumd-dbus.conf
%dir %{_sysconfdir}/dbus-1
%dir %{_sysconfdir}/dbus-1/system.d
%config(noreplace) %{_sysconfdir}/dbus-1/system.d/gumd-dbus.conf
+%if "%{tizen_profile_name}" == "tv" && "%{emul_arch}" == "x86_64"
+%{_unitdir}/gumd.service
+%endif
%if "%{tizen_profile_name}" != "tv"
%{_unitdir}/gumd.service
%endif
%if "%{tizen_profile_name}" != "tv"
%{_unitdir}/gumd.service
%endif