This fixes build errors in 64bit systems.
Never hardcode library install paths.
Change-Id: I41b337ed9a918353692d94d23f27b05e512cb776
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
prefix=@PREFIX@
exec_prefix=/usr
-libdir=/usr/lib
-includedir=/usr/include/network
+libdir=@LIB_INSTALL_DIR@
+includedir=@INCLUDE_INSTALL_DIR@/network
Name: @PC_NAME@
Description: @PACKAGE_DESCRIPTION@
export CFLAGS+=' -Wno-unused-local-typedefs'
MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
cmake -DCMAKE_INSTALL_PREFIX=/usr -DFULLVER=%{version} -DMAJORVER=${MAJORVER} \
+ -DLIB_INSTALL_DIR=%{_libdir} -DINCLUDE_INSTALL_DIR=%{_includedir} \
-DLIB_PATH=%{_lib} \
.