WIP
authorMyungJoo Ham <myungjoo.ham@samsung.com>
Tue, 18 Jun 2019 04:11:50 +0000 (13:11 +0900)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Tue, 18 Jun 2019 04:11:50 +0000 (13:11 +0900)
Change-Id: Ifad90cf9964e63277c57fa9c2fd27c4eab17f4e6
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
packaging/tensorflow.spec

index 58ccd83e19ba976a4b27f36b4fb88052163cf68c..7660477ffba2ab95ce370019f7c936125823b812 100644 (file)
@@ -52,9 +52,6 @@ research organization for the purposes of conducting machine learning and deep
 neural networks research, but the system is general enough to be applicable in
 a wide variety of other domains as well.
 
-%{!?tflite_single_build: %define tflite_single_build 1}
-
-%ifarch %arm aarch64 x86_64
 %package devel
 Summary:        Tensorflow devel packages
 Group:          Development/Libraries
@@ -69,7 +66,6 @@ Provides:       %{name}-devel-taos = %{version}
 %description devel
 TensorFlow is an open source software library for numerical computation using
 data flow graphs.
-%endif
 
 %package -n tensorflow-lite-devel
 Summary: Tensorflow Lite development headers and object file
@@ -80,7 +76,6 @@ Tensorflow Lite development headers and object file
 %prep
 %setup -q
 
-%ifarch %arm aarch64 x86_64
 cp %{SOURCE1001} .
 cp %{SOURCE4001} ./tensorflow/contrib/cmake/
 
@@ -224,8 +219,6 @@ sed -i "s|LOG(FATAL)|LOG(WARNING)|" tensorflow/core/platform/cpu_feature_guard.c
 
 %build
 
-%if "%{tflite_single_build}" == "0"
-
 export PATH=${PATH}:`pwd`
 # Downgrade compiler flags for google code.
 CFLAGS=`echo $CFLAGS | sed -e "s|-Wformat-security||"`
@@ -272,10 +265,6 @@ popd
 make -j%{?max_cpus} -l %{max_load}
 popd
 
-%endif
-
-%endif
-
 # build for tensorflow lite
 %ifarch arm armv7l aarch64
 make -f tensorflow/lite/tools/make/Makefile TARGET=TIZEN TARGET_ARCH=%{_target_cpu} TIZEN_CXXFLAGS="${CXXFLAGS} -D__ARM_NEON" TIZEN_CFLAGS="${CFLAGS} -D__ARM_NEON"
@@ -288,7 +277,6 @@ make -f tensorflow/lite/tools/make/Makefile TARGET=TIZEN TARGET_ARCH=%{_target_c
 
 %install
 
-%if "%{tflite_single_build}" == "0"
 %ifarch %arm aarch64 x86_64
 pushd build
 mkdir -p %{buildroot}%{_libdir}
@@ -332,7 +320,6 @@ mkdir %{buildroot}%{_libdir}/pkgconfig/
 cp -p tensorflow.pc %{buildroot}%{_libdir}/pkgconfig/
 popd
 %endif
-%endif
 
 #install for tensorflow lite
 mkdir -p %{buildroot}%{_libdir}
@@ -357,15 +344,13 @@ install -m 0644 tensorflow/contrib/lite/tools/make/downloads/flatbuffers/include
 install -m 0644 tensorflow/contrib/lite/tensorflow-lite.pc.in %{buildroot}%{_libdir}/pkgconfig/tensorflow-lite.pc
 
 
-%if "%{tflite_single_build}" == "0"
-%files
 %ifarch %arm aarch64 x86_64
+%files
 %manifest tensorflow.manifest
 %{_libdir}/*.so
 %{python_sitelib}/tensorflow
 %{python_sitelib}/tensorflow/*
 %endif
-%endif
 
 %ifarch %arm aarch64 x86_64
 %files devel