BuildRequires: app-signer
%if 0%{?_use_d2d}
BuildRequires: squashfs
-BuildRequires: vd-wgt-backend
%endif
%endif
BuildRequires: hash-signer, zip
%if "%{?tizen_profile_name}" == "tv"
%define _d2d_app_file_name device_home.tmg
%define _d2d_app_extension tmg
+ %define _d2d_install_path %{TZ_SYS_HOME}/owner/apps_rw/xwalk-service
%else
%define _d2d_app_file_name device_home.wgt
%define _d2d_app_extension wgt
+ %define _d2d_install_path %{_appdir}/.preload-rw-wgt
%endif
install -m 0644 key.pem device_home/signaling_server/gen/
install -m 0644 cert.pem device_home/signaling_server/gen/
tizen/build/build_app.sh %{buildroot} device_home %{_d2d_app_file_name} %{_d2d_app_extension} platform %{?profile}
- install -d %{buildroot}%{_appdir}/.preload-rw-wgt/
- install -m 0755 %{buildroot}/%{_d2d_app_file_name} %{buildroot}%{_appdir}/.preload-rw-wgt/
+ install -d %{buildroot}/%{_d2d_install_path}
+ install -m 0755 %{buildroot}/%{_d2d_app_file_name} %{buildroot}/%{_d2d_install_path}/
rm -f %{buildroot}/%{_d2d_app_file_name}
%endif
%post
%if "%{?_local_build}" == "1"
%if 0%{?_use_d2d}
- pkgcmd -i -t wgt -p %{_appdir}/.preload-rw-wgt/%{_d2d_app_file_name}
+ pkgcmd -i -t wgt -p %{_d2d_install_path}/%{_d2d_app_file_name}
%endif
%endif
%manifest packaging/wrtjs.manifest
%license LICENSE
%if 0%{?_use_d2d}
- %{_appdir}/.preload-rw-wgt/%{_d2d_app_file_name}
+ %{_d2d_install_path}/%{_d2d_app_file_name}
%endif
%if "%{?tizen_profile_name}" != "tv"
%caps(cap_setgid,cap_sys_admin=ei) %{_bindir}/wrt-loader