bugfix: fix the so name properly 83/40983/1 submit/tizen/20150610.130749
authorSangjung Woo <sangjung.woo@samsung.com>
Wed, 10 Jun 2015 12:38:14 +0000 (21:38 +0900)
committerSangjung Woo <sangjung.woo@samsung.com>
Wed, 10 Jun 2015 12:38:14 +0000 (21:38 +0900)
Because omiting both MAJORVER and FULLVER macro, the so name is not
right format (i.e. libcapi-system-info.so.SOVERSION) As a result, the
build break occurs when building some modules that use system-info APIs.
This patch fixs this bug.

Change-Id: I9fe53365784c125397fb39e297fb4c814db375cd
Signed-off-by: Sangjung Woo <sangjung.woo@samsung.com>
packaging/capi-system-info.spec

index 90d7cdb..24beb38 100644 (file)
@@ -37,10 +37,14 @@ cp %{SOURCE1001} .
 %define tizen_id_path /opt/home/root/tizenid
 
 %build
+MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
+
 %cmake . -DCONFIG_FILE_PATH=%{config_file_path} \
                 -DINFO_FILE_PATH=%{info_file_path} \
                 -DOS_RELEASE_FILE_PATH=%{os_release_file_path} \
                 -DSERIAL_PATH=%{serial_path} \
+                -DMAJORVER=${MAJORVER} \
+                -DFULLVER=%{version} \
                 -DTIZEN_ID_PATH=%{tizen_id_path}
 
 %__make %{?_smp_mflags}