Fix for 64-bit build compatibility 27/37327/1 tizen_3.0.2015.q2_common accepted/tizen/common/20150408.103059 accepted/tizen/mobile/20150403.075046 accepted/tizen/tv/20150402.122859 accepted/tizen/wearable/20150402.065342 submit/tizen_common/20150406.051135 submit/tizen_mobile/20150326.074553 submit/tizen_mobile/20150326.075104 submit/tizen_mobile/20150402.005016 submit/tizen_tv/20150401.081735 submit/tizen_wearable/20150401.070435
authorJiwan Kim <ji-wan.kim@samsung.com>
Tue, 24 Mar 2015 11:38:52 +0000 (20:38 +0900)
committerJiwan Kim <ji-wan.kim@samsung.com>
Tue, 24 Mar 2015 11:38:52 +0000 (20:38 +0900)
Change-Id: I0cbcac262b486a4967972096307908fe607bd7e6
Signed-off-by: Jiwan Kim <ji-wan.kim@samsung.com>
CMakeLists.txt
packaging/tel-plugin-indicator.spec

index be7e833..c9314ca 100755 (executable)
@@ -1,6 +1,9 @@
 CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
 PROJECT(indicator-plugin C)
 
+SET(PREFIX ${CMAKE_INSTALL_PREFIX})
+SET(LIBDIR ${LIB_INSTALL_DIR})
+
 ### Set required packages ###
 INCLUDE(FindPkgConfig)
 pkg_check_modules(pkgs REQUIRED glib-2.0 dlog deviced tcore vconf)
@@ -51,5 +54,5 @@ SET_TARGET_PROPERTIES(indicator-plugin
                COMPILE_DEFINITIONS "${PROFILE_DEFINITIONS}")
 # install
 INSTALL(TARGETS ${PLUGIN_NAME} LIBRARY DESTINATION ${PLUGIN_DEST})
-INSTALL(TARGETS indicator-plugin LIBRARY DESTINATION ${LIB_INSTALL_DIR}/telephony/plugins)
+INSTALL(TARGETS indicator-plugin LIBRARY DESTINATION ${LIBDIR}/telephony/plugins)
 INSTALL(FILES ${CMAKE_SOURCE_DIR}/LICENSE DESTINATION /usr/share/license RENAME tel-plugin-indicator)
index 33b46db..ab103b0 100755 (executable)
@@ -27,7 +27,9 @@ Telephony Indicator plugin
 %build
 versionint=$[%{major} * 1000000 + %{minor} * 1000 + %{patchlevel}]
 
-%cmake . -DVERSION=$versionint \
+%cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} \
+       -DLIB_INSTALL_DIR=%{_libdir} \
+       -DVERSION=$versionint \
 
 make %{?_smp_mflags}