tizen: Support Tizen:2 by avoiding python accelerator
authorPhilippe Coval <philippe.coval@osg.samsung.com>
Thu, 12 Jan 2017 10:56:02 +0000 (11:56 +0100)
committerPhil Coval <philippe.coval@osg.samsung.com>
Thu, 12 Jan 2017 14:35:42 +0000 (14:35 +0000)
Change-Id: I8714771d36a158fafc838c8d5e71d8e563682a1b
Signed-off-by: Philippe Coval <philippe.coval@osg.samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/16347
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Mats Wichmann <mats@linux.com>
tools/tizen/iotivity.spec

index 4665a41..f9dc955 100644 (file)
@@ -39,11 +39,15 @@ Source1002: %{name}-test.manifest
 %endif
 
 %ifarch armv7l armv7hl armv7nhl armv7tnhl armv7thl
+%if 3 <= 0%{?tizen_version_major}
 BuildRequires: python-accel-armv7l-cross-arm
+%endif
 %define TARGET_ARCH "armeabi-v7a"
 %endif
 %ifarch aarch64
+%if 3 <= 0%{?tizen_version_major}
 BuildRequires: python-accel-aarch64-cross-aarch64
+%endif
 %define TARGET_ARCH "arm64"
 %endif
 %ifarch x86_64