tizen: Replace speedpython by python-accel
authorPhilippe Coval <philippe.coval@osg.samsung.com>
Mon, 19 Dec 2016 09:23:47 +0000 (10:23 +0100)
committerPhil Coval <philippe.coval@osg.samsung.com>
Thu, 29 Dec 2016 16:05:59 +0000 (16:05 +0000)
Tizen toolchain provide same functionality with python-accel's macro

Also Chan Lee from Tizen toolchain project reported:
{
Speedpython macro sometimes cause some build problem

Speedpython macro is parsed when spec parsing time
and it includes other macro in its own.
(I mean, %{build_hostarch} macro)

And when the OBS project config updates,
OBS sometimes cannot sync-up the changes perfectly.

It this case, build error occurs when we use speedpython macro.

It seems OBS limitation but,
we can avoid this problem by using other macro
which provides same functionality.
}

Change-Id: I265220b5e1f2dcb1956ef546a799a94eb460dd88
Signed-off-by: Philippe Coval <philippe.coval@osg.samsung.com>
Origin: https://review.tizen.org/gerrit/#/c/105925/
Reviewed-on: https://gerrit.iotivity.org/gerrit/15833
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jaehong Jo <jaehong.jo@samsung.com>
Reviewed-by: Mats Wichmann <mats@linux.com>
tools/tizen/iotivity.spec

index d7d9a25..9edbcb2 100644 (file)
@@ -27,13 +27,6 @@ Source1002: %{name}-test.manifest
 %define TARGET_TRANSPORT IP
 %endif
 
-%define JOB "-j4"
-%if 0%{?speedpython}
-%define JOB %{?_smp_mflags}
-%endif
-%if 0%{?speedpython:1} && 0%{?en_speedpython:1}
-%en_speedpython
-%endif
 
 # default is RELEASE mode.
 # If DEBUG mode is needed, please use tizen_build_devel_mode
@@ -46,9 +39,11 @@ Source1002: %{name}-test.manifest
 %endif
 
 %ifarch armv7l armv7hl armv7nhl armv7tnhl armv7thl
+BuildRequires: python-accel-armv7l-cross-arm
 %define TARGET_ARCH "armeabi-v7a"
 %endif
 %ifarch aarch64
+BuildRequires: python-accel-aarch64-cross-aarch64
 %define TARGET_ARCH "arm64"
 %endif
 %ifarch x86_64
@@ -174,7 +169,7 @@ cp %{SOURCE1001} ./%{name}-test.manifest
 %endif
 
 %build
-scons %{JOB} --prefix=%{_prefix} \
+scons %{?_smp_mflags} --prefix=%{_prefix} \
     ES_TARGET_ENROLLEE=%{ES_TARGET_ENROLLEE} \
     LIB_INSTALL_DIR=%{_libdir} \
     LOGGING=%{LOGGING} \