[IMPROVE] Remove debug pkgs dependency for Rainbow 33/46533/3
authorAlexander Aksenov <a.aksenov@samsung.com>
Fri, 21 Aug 2015 08:53:50 +0000 (11:53 +0300)
committerAlexander Aksenov <a.aksenov@samsung.com>
Fri, 21 Aug 2015 10:37:46 +0000 (13:37 +0300)
Change-Id: I4b2e058c3c4595d61877a69d27869c855776144c
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
packaging/swap-manager.spec
scripts/gen_nsp_data.sh
scripts/gen_wsi_prof.sh
scripts/gen_wsp_data.sh

index fae67ef..46fb01b 100644 (file)
@@ -22,14 +22,18 @@ BuildRequires:  swap-probe-devel
 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
@@ -47,6 +51,7 @@ This binary will be installed in target.
 %build
 pushd scripts
 echo "__tizen_profile_name__="%{?tizen_profile_name} > dyn_vars
+echo "__tizen_product_tv__="%{?TIZEN_PRODUCT_TV} >> dyn_vars
 popd
 cd daemon
 
index 49c200b..232a3da 100755 (executable)
@@ -30,12 +30,19 @@ check_null_or_exit()
        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
index bc95602..9c1467a 100755 (executable)
@@ -25,7 +25,13 @@ if [ "$__tizen_profile_name__" == "tv" ]; then
 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=()
index d6a1241..7d1cd95 100755 (executable)
@@ -11,7 +11,13 @@ else
 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=()