[Dist/Tizen] Disable tensorflow (non-lite) for Tizen accepted/tizen/unified/20190722.074756 submit/tizen/20190719.063413
authorMyungJoo Ham <myungjoo.ham@samsung.com>
Thu, 18 Jul 2019 10:40:11 +0000 (19:40 +0900)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Fri, 19 Jul 2019 06:33:45 +0000 (15:33 +0900)
With the Tensorflow update from 1.09 to 1.13 @ Tizen,
we have decided to drop tensorflow (non-lite).

Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
packaging/nnstreamer.spec

index b44f178..9358f29 100644 (file)
@@ -2,6 +2,7 @@
 %define                gstpostfix      gstreamer-1.0
 %define                gstlibdir       %{_libdir}/%{gstpostfix}
 %define                nnstexampledir  /usr/lib/nnstreamer/bin
+%define                tensorflow-support      0
 
 # If it is tizen, we can export Tizen API packages.
 %bcond_with tizen
@@ -52,7 +53,7 @@ BuildRequires: opencv-devel
 # For './testAll.sh' time limit.
 BuildRequires: procps
 # for tensorflow
-%ifarch x86_64 aarch64
+%if 0%{?tensorflow-support}
 BuildRequires: protobuf-devel >= 3.4.0
 BuildRequires: tensorflow
 BuildRequires: tensorflow-devel
@@ -95,7 +96,7 @@ NNStreamer is a set of gstreamer plugins to support general neural networks
 and their plugins in a gstreamer stream.
 
 # for tensorflow
-%ifarch x86_64 aarch64
+%if 0%{?tensorflow-support}
 %package tensorflow
 Summary:       NNStreamer TensorFlow Support
 Requires:      nnstreamer = %{version}-%{release}
@@ -173,7 +174,7 @@ CFLAGS="${CFLAGS} -fprofile-arcs -ftest-coverage"
 
 mkdir -p build
 
-%ifarch x86_64 aarch64
+%if 0%{?tensorflow-support}
 %define enable_tf true
 %else
 %define enable_tf false
@@ -273,7 +274,7 @@ popd
 %{_sysconfdir}/nnstreamer.ini
 
 # for tensorflow
-%ifarch x86_64 aarch64
+%if 0%{?tensorflow-support}
 %files tensorflow
 %defattr(-,root,root,-)
 %{_prefix}/lib/nnstreamer/filters/libnnstreamer_filter_tensorflow.so