packaging: pack flatbuffer schema file 28/227428/2 accepted/tizen/unified/20200315.214809 accepted/tizen/unified/20200316.221056 submit/tizen/20200312.050336 submit/tizen/20200316.062837 submit/tizen/20200316.070427
authorInki Dae <inki.dae@samsung.com>
Thu, 12 Mar 2020 02:59:54 +0000 (11:59 +0900)
committerInki Dae <inki.dae@samsung.com>
Thu, 12 Mar 2020 05:03:22 +0000 (14:03 +0900)
This patch generates a new package file, tensorflow-lite-flatbuf,
and the schema file is added to the package.
The schema file is used by ARMNN - armnn internally compiles
tensorflow lite parser using the schema file.

Changelog v1:
- Added Requires: tensorflow-lite-devel package
- Updated description

Change-Id: I398254cdd4c032f2110b457c2bdf491172c738cf
Signed-off-by: Inki Dae <inki.dae@samsung.com>
packaging/tensorflow.spec

index da96ebf..1926590 100644 (file)
@@ -42,6 +42,13 @@ Summary: Tensorflow Lite development headers and object file
 %description -n tensorflow-lite-devel
 Tensorflow Lite development headers and object file
 
+%package -n tensorflow-lite-flatbuf-schema
+Summary: Tensorflow Lite schema file
+Requires: tensorflow-lite-devel = %{version}-%{release}
+
+%description -n tensorflow-lite-flatbuf-schema
+Tensorflow-Lite Flatbuffer schema file
+
 %prep
 %setup -q
 
@@ -179,6 +186,7 @@ mkdir -p %{buildroot}%{_includedir}/tensorflow/lite/tools
 mkdir -p %{buildroot}%{_includedir}/tensorflow/lite/schema
 mkdir -p %{buildroot}%{_includedir}/tensorflow/lite/profiling
 mkdir -p %{buildroot}%{_includedir}/flatbuffers
+mkdir -p %{buildroot}%{_datadir}/tensorflow/lite/schema/
 
 # For backward compatibility with v1.09, where tf-lite was in contrib
 mkdir -p %{buildroot}%{_includedir}/tensorflow/contrib
@@ -198,6 +206,7 @@ install -m 0644 tensorflow/lite/tools/*.h %{buildroot}%{_includedir}/tensorflow/
 install -m 0644 tensorflow/lite/schema/*.h %{buildroot}%{_includedir}/tensorflow/lite/schema
 install -m 0644 tensorflow/lite/profiling/*.h %{buildroot}%{_includedir}/tensorflow/lite/profiling
 install -m 0644 tensorflow/lite/tools/make/downloads/flatbuffers/include/flatbuffers/*.h %{buildroot}%{_includedir}/flatbuffers
+install -m 0644 tensorflow/lite/schema/schema.fbs %{buildroot}%{_datadir}/tensorflow/lite/schema
 install -m 0644 ./tensorflow-lite.pc.in %{buildroot}%{_libdir}/pkgconfig/tensorflow-lite.pc
 
 %files -n tensorflow-lite-devel
@@ -207,3 +216,6 @@ install -m 0644 ./tensorflow-lite.pc.in %{buildroot}%{_libdir}/pkgconfig/tensorf
 %{_includedir}/tensorflow/contrib/lite
 %{_includedir}/flatbuffers
 %{_libdir}/cmake/flatbuffers/*.cmake
+
+%files -n tensorflow-lite-flatbuf-schema
+%{_datadir}/tensorflow/lite/schema/schema.fbs