[*KONA_ID]RQ210407-00753 [Tizen 6.5] Full 64bit platform preparation from 9218520 43/273643/1 accepted/tizen/unified/20220412.100326 submit/tizen/20220411.123240 submit/tizen/20220412.031025
authorsangwook lee <sangwook96.lee@samsung.com>
Tue, 12 Apr 2022 02:34:38 +0000 (11:34 +0900)
committersangwook lee <sangwook96.lee@samsung.com>
Tue, 12 Apr 2022 02:34:38 +0000 (11:34 +0900)
Change-Id: I59d1aacbc0b15743d2ebd1889a23e6c996f00837
Signed-off-by: sangwook lee <sangwook96.lee@samsung.com>
CMakeLists.txt
packaging/sdbd.pc [deleted file]
packaging/sdbd.pc.in [new file with mode: 0755]
packaging/sdbd.spec

index 915d312340db9c58a8f9ad485a5371bd53c21a05..099b54f417bb3eb75060cf3c176757b277eb4faa 100755 (executable)
@@ -195,6 +195,7 @@ if(USE_FUNCTION_FS)
         )
 endif()
 
+CONFIGURE_FILE(packaging/sdbd.pc.in packaging/sdbd.pc @ONLY)
 install(TARGETS sdbd sdbd-user sdbd-service DESTINATION /usr/sbin)
 install(FILES script/sdbd DESTINATION /etc/init.d)
 
diff --git a/packaging/sdbd.pc b/packaging/sdbd.pc
deleted file mode 100755 (executable)
index 8221e52..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-prefix=/usr
-exec_prefix=${prefix}
-libdir=${exec_prefix}/lib
-includedir=${prefix}/include
-
-Name: sdbd
-Description: sdb daemon
-Version: 3.0
-Cflags: -I${includedir}/sdb
diff --git a/packaging/sdbd.pc.in b/packaging/sdbd.pc.in
new file mode 100755 (executable)
index 0000000..e5d5822
--- /dev/null
@@ -0,0 +1,9 @@
+prefix=/usr
+exec_prefix=${prefix}
+libdir=@LIBDIR@
+includedir=${prefix}/include
+
+Name: sdbd
+Description: sdb daemon
+Version: 3.0
+Cflags: -I${includedir}/sdb
index 953e052501f9eb330f64cef446aa0ce48ddca08e..6b4d5c4c89f76c2ae135984dfb3000bc4acf0d10 100644 (file)
@@ -76,7 +76,7 @@ SDBD plugin API library
 cp %{SOURCE10} .
 
 %build
-cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} %{?asan:-DCMAKE_EXE_LINKER_FLAGS="-pthread"}
+cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} -DLIBDIR=%{_libdir} %{?asan:-DCMAKE_EXE_LINKER_FLAGS="-pthread"}
 
 make %{?jobs:-j%jobs}