cmake shared library version sync with spec summary 52/51452/2
authorKyungwook Tak <k.tak@samsung.com>
Tue, 10 Nov 2015 01:22:33 +0000 (10:22 +0900)
committerKyungwook Tak <k.tak@samsung.com>
Tue, 10 Nov 2015 01:50:09 +0000 (10:50 +0900)
Change-Id: I7e052958602e5da144aa6f0611aa5f9bd2740152
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
CMakeLists.txt
packaging/cert-svc.spec

index 5fabfad..8d2a8f4 100644 (file)
@@ -3,8 +3,7 @@ PROJECT(cert-svc)
 
 INCLUDE(FindPkgConfig)
 
-SET(SO_VERSION 1)
-SET(VERSION "${SO_VERSION}.0.0")
+STRING(REGEX MATCH "([^.]*)" SO_VERSION "${VERSION}")
 
 # compiler options
 SET(GC_SECTIONS_FLAGS         "-fdata-sections -ffunction-sections -Wl,--gc-sections")
index 8ac991d..38f26cc 100644 (file)
@@ -69,6 +69,7 @@ export FFLAGS="$FFLAGS -DTIZEN_EMULATOR_MODE"
 
 %{!?build_type:%define build_type "Release"}
 %cmake . -DPREFIX=%{_prefix} \
+        -DVERSION=%{version} \
         -DEXEC_PREFIX=%{_exec_prefix} \
         -DLIBDIR=%{_libdir} \
         -DINCLUDEDIR=%{_includedir} \