Fix pkgconfig data for tensorflow dev users.
Change-Id: I05718d5a733e2628a330a1226df6c74ecaf5b406
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
Name: tensorflow lite
Description: tensorflow lite static library
-Version: 0.1
+Version: 1.13.1
Requires:
Libs: -L@libdir@ -ltensorflow-lite
Cflags: -I@includedir@
-prefix=@CMAKE_INSTALL_PREFIX@
-exec_prefix=${prefix}
-libdir=@LIB_INSTALL_DIR@
-includedir=@INCLUDE_INSTALL_DIR@/tensorflow
-
-Name: @SERVICE_NAME@
-Description: @PACKAGE_DESCRIPTION@
-Version: @VERSION@
-Libs: -L${libdir} -lpywrap_tensorflow_internal
-Cflags: -I${includedir}
+Name: tensorflow
+Description: tensorflow library
+Version: 1.13.1
+Libs: -L@libdir@ -lpywrap_tensorflow_internal
+Cflags: -I@includedir@
cp -p nsync/install/include/*.h %{buildroot}%{_includedir}/%{name}/
mkdir %{buildroot}%{_libdir}/pkgconfig/
-cp -p tensorflow.pc %{buildroot}%{_libdir}/pkgconfig/
+cp %{SOURCE4001} .
+sed -i 's:@libdir@:%{_libdir}:g
+ s:@includedir@:%{_includedir}:g' ./tensorflow.pc.in
+cp -p tensorflow.pc.in %{buildroot}%{_libdir}/pkgconfig/tensorflow.pc
popd
%endif