[Dist] Update pkgconfig data
authorMyungJoo Ham <myungjoo.ham@samsung.com>
Tue, 9 Jul 2019 09:17:40 +0000 (18:17 +0900)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Tue, 9 Jul 2019 09:17:40 +0000 (18:17 +0900)
Fix pkgconfig data for tensorflow dev users.

Change-Id: I05718d5a733e2628a330a1226df6c74ecaf5b406
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
packaging/tensorflow-lite.pc.in
packaging/tensorflow.pc.in
packaging/tensorflow.spec

index 4fb222bb301ec76c92a67ce3b49c5bff19be86b5..21b19a3b1d372813712f1a06aa296737ed085a81 100644 (file)
@@ -1,6 +1,6 @@
 Name: tensorflow lite
 Description: tensorflow lite static library
-Version: 0.1
+Version: 1.13.1
 Requires:
 Libs: -L@libdir@ -ltensorflow-lite
 Cflags: -I@includedir@
index 8a95d1c328a49ad13cd911b14587fd69de7c0df9..1d6fb0511ae9f4d1e319e1ca453d4f84c829a0a9 100644 (file)
@@ -1,10 +1,5 @@
-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@
index 16468a327a5b7400035c2a3fefcd196de75dfbea..4d45976898d2f48f7d00cc49c7f292d66a2cc7d1 100644 (file)
@@ -389,7 +389,10 @@ popd
 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