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
%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
%prep
%setup -q
-%ifarch %arm aarch64 x86_64
cp %{SOURCE1001} .
cp %{SOURCE4001} ./tensorflow/contrib/cmake/
%build
-%if "%{tflite_single_build}" == "0"
-
export PATH=${PATH}:`pwd`
# Downgrade compiler flags for google code.
CFLAGS=`echo $CFLAGS | sed -e "s|-Wformat-security||"`
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"
%install
-%if "%{tflite_single_build}" == "0"
%ifarch %arm aarch64 x86_64
pushd build
mkdir -p %{buildroot}%{_libdir}
cp -p tensorflow.pc %{buildroot}%{_libdir}/pkgconfig/
popd
%endif
-%endif
#install for tensorflow lite
mkdir -p %{buildroot}%{_libdir}
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