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>
%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}