Change-Id: I1523725401dad2fa8d7e8edbe7cb02952a314daf
Signed-off-by: Jiwan Kim <ji-wan.kim@samsung.com>
# INCLUDE(FindPkgConfig)
SET(PREFIX ${CMAKE_INSTALL_PREFIX})
SET(EXEC_PREFIX "\${prefix}")
-SET(LIBDIR "\${prefix}/lib")
+SET(LIBDIR ${LIB_INSTALL_DIR})
SET(INCLUDEDIR "\${prefix}/include")
# Set required packages
# install
INSTALL(TARGETS nitz-plugin
- LIBRARY DESTINATION lib/telephony/plugins)
+ LIBRARY DESTINATION ${LIBDIR}/telephony/plugins)
%build
versionint=$[%{major} * 1000000 + %{minor} * 1000 + %{patchlevel}]
-cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} -DVERSION=$versionint
+cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} \
+ -DLIB_INSTALL_DIR=%{_libdir} \
+ -DVERSION=$versionint
make %{?jobs:-j%jobs}
%post