summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKangho Hur <kangho.hur@samsung.com>2012-02-14 18:23:16 +0900
committerKangho Hur <kangho.hur@samsung.com>2012-02-14 18:23:16 +0900
commit549fdb67f99b2ea0d28f82247a3a485e457c84b4 (patch)
treefa012bdbeb6670ecde0d2554ad65327168b4f2d6
parentbaf374be8907dddba192d638e29618c1719f2575 (diff)
downloadgeocoder-549fdb67f99b2ea0d28f82247a3a485e457c84b4.tar.gz
geocoder-549fdb67f99b2ea0d28f82247a3a485e457c84b4.tar.bz2
geocoder-549fdb67f99b2ea0d28f82247a3a485e457c84b4.zip
Apply the SOVERSION
-rwxr-xr-xCMakeLists.txt8
-rw-r--r--debian/changelog6
-rwxr-xr-xdebian/rules5
3 files changed, 17 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index bca700b..8fde9ce 100755
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,4 +1,3 @@
-
CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
SET(fw_name "capi-location-geocoder")
@@ -33,6 +32,13 @@ SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib")
aux_source_directory(src SOURCES)
ADD_LIBRARY(${fw_name} SHARED ${SOURCES})
+SET_TARGET_PROPERTIES(${fw_name}
+ PROPERTIES
+ VERSION ${FULLVER}
+ SOVERSION ${MAJORVER}
+ CLEAN_DIRECT_OUTPUT 1
+)
+
TARGET_LINK_LIBRARIES(${fw_name} ${${fw_name}_LDFLAGS})
INSTALL(TARGETS ${fw_name} DESTINATION lib)
diff --git a/debian/changelog b/debian/changelog
index 89bcb7e..35b57b5 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+capi-location-geocoder (0.1.0-8) unstable; urgency=low
+
+ * Apply the SOVERSION
+
+ -- Kangho Hur <kangho.hur@samsung.com> Tue, 14 Feb 2012 18:22:56 +0900
+
capi-location-geocoder (0.1.0-7) unstable; urgency=low
* Support to multiple geocoding result
diff --git a/debian/rules b/debian/rules
index 0f44a2e..fe29dd9 100755
--- a/debian/rules
+++ b/debian/rules
@@ -2,6 +2,9 @@
CFLAGS = -Wall -g
+FULLVER ?= $(shell dpkg-parsechangelog | grep Version: | cut -d ' ' -f 2 | cut -d '-' -f 1)
+MAJORVER ?= $(shell echo $(FULLVER) | cut -d '.' -f 1)
+
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
CFLAGS += -O0
else
@@ -13,7 +16,7 @@ CMAKE_BUILD_DIR ?= $(CURDIR)/cmake_build_tmp
configure: configure-stamp
configure-stamp:
dh_testdir
- mkdir -p $(CMAKE_BUILD_DIR) && cd $(CMAKE_BUILD_DIR) && cmake ..
+ mkdir -p $(CMAKE_BUILD_DIR) && cd $(CMAKE_BUILD_DIR) && cmake .. -DFULLVER=${FULLVER} -DMAJORVER=${MAJORVER}
touch configure-stamp