BuildRequires: swap-probe-elf
%if "%{?tizen_profile_name}" == "tv"
BuildRequires: webkit2-efl-tv
+%if "%{TIZEN_PRODUCT_TV}" != "1"
BuildRequires: webkit2-efl-tv-debuginfo
+%endif
%else
BuildRequires: webkit2-efl
BuildRequires: webkit2-efl-debuginfo
%endif
BuildRequires: launchpad
BuildRequires: app-core-efl
+%if "%{TIZEN_PRODUCT_TV}" != "1"
BuildRequires: app-core-debuginfo
+%endif
%if "%_project" != "Kirana_SWA_OPEN:Build" && "%_project" != "Kirana_SWA_OPEN:Daily"
Requires: swap-modules
%endif
%build
pushd scripts
echo "__tizen_profile_name__="%{?tizen_profile_name} > dyn_vars
+echo "__tizen_product_tv__="%{?TIZEN_PRODUCT_TV} >> dyn_vars
popd
cd daemon
fi
}
+script_dir=$(readlink -f $0 | xargs dirname)
+source $script_dir/dyn_vars
+
# get libappcore-efl.so path
path_app_core_efl=$(rpm -ql app-core-efl | grep libappcore-efl | head -1)
check_null_or_exit path_app_core_efl
# get libappcore-efl.so debug_path
-dpath_app_core_efl=$(rpm -ql app-core-debuginfo | grep "libappcore-efl\.so\.debug$" | head -1)
+if [ "$__tizen_product_tv__" == "1" ]; then
+ dpath_app_core_efl=$path_app_core_efl
+else
+ dpath_app_core_efl=$(rpm -ql app-core-debuginfo | grep "libappcore-efl\.so\.debug$" | head -1)
+fi
check_null_or_exit dpath_app_core_efl
# get launchpad path
else
webkit_package_name=webkit2-efl
fi
-lib_file=$(rpm -ql ${webkit_package_name}-debuginfo | grep "/usr/lib/debug/usr/lib/libewebkit2.so.debug$" | head -1)
+
+if [ "$__tizen_product_tv__" == "1" ]; then
+ lib_file=$(rpm -ql ${webkit_package_name} | grep "/usr/lib/libewebkit2.so$" | head -1)
+else
+ lib_file=$(rpm -ql ${webkit_package_name}-debuginfo | grep "/usr/lib/debug/usr/lib/libewebkit2.so.debug$" | head -1)
+fi
+
tmp=$(mktemp)
func_names=()
fi
path_libewebkit2=`rpm -ql $webkit_package_name | grep "libewebkit2.so$" | head -1`
-path_libewebkit2_debuginfo=`rpm -ql ${webkit_package_name}-debuginfo | grep "libewebkit2.so.debug$" | head -1`
+
+if [ "$__tizen_profile_name__" == "1" ]; then
+ path_libewebkit2_debuginfo=$path_libewebkit2
+else
+ path_libewebkit2_debuginfo=`rpm -ql ${webkit_package_name}-debuginfo | grep "libewebkit2.so.debug$" | head -1`
+fi
+
g_names=()