summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt8
-rw-r--r--location-appman.pc.in2
-rw-r--r--packaging/liblocation-appman.spec4
3 files changed, 7 insertions, 7 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 30edd2a..51333b9 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -28,7 +28,7 @@ ADD_DEFINITIONS("-DPREFIX=\"${CMAKE_INSTALL_PREFIX}\"")
ADD_DEFINITIONS("-DTIZEN_DEBUG")
ADD_DEFINITIONS("-DLOCATION_APPMAN_DBDIR=\"${DBDIR}\"")
-SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib")
+SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=${LIB_INSTALL_DIR}")
aux_source_directory(src SOURCES)
ADD_LIBRARY(${fw_name} SHARED ${SOURCES})
@@ -41,9 +41,9 @@ SET_TARGET_PROPERTIES(${fw_name}
TARGET_LINK_LIBRARIES(${fw_name} ${${fw_name}_LDFLAGS} "-lgcrypt")
-INSTALL(TARGETS ${fw_name} DESTINATION lib)
+INSTALL(TARGETS ${fw_name} DESTINATION ${LIB_INSTALL_DIR})
INSTALL(
- DIRECTORY ${INC_DIR}/ DESTINATION include/location-appman
+ DIRECTORY ${INC_DIR}/ DESTINATION ${INCLUDE_INSTALL_DIR}/location-appman
FILES_MATCHING
PATTERN "${INC_DIR}/location-appman.h"
PATTERN "${INC_DIR}/location-appman-crypt.h"
@@ -67,7 +67,7 @@ CONFIGURE_FILE(
${CMAKE_CURRENT_SOURCE_DIR}/${fw_name}.pc
@ONLY
)
-INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/${fw_name}.pc DESTINATION lib/pkgconfig)
+INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/${fw_name}.pc DESTINATION ${LIB_INSTALL_DIR}/pkgconfig)
#create db
#INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/location-appman.sql DESTINATION ${ETCDIR})
diff --git a/location-appman.pc.in b/location-appman.pc.in
index 3c4555a..be70491 100644
--- a/location-appman.pc.in
+++ b/location-appman.pc.in
@@ -3,7 +3,7 @@
prefix=@PREFIX@
exec_prefix=/usr
-libdir=/usr/lib
+libdir=@LIB_INSTALL_DIR@
includedir=/usr/include/location-appman
Name: @PC_NAME@
diff --git a/packaging/liblocation-appman.spec b/packaging/liblocation-appman.spec
index 033e28b..ec9acaf 100644
--- a/packaging/liblocation-appman.spec
+++ b/packaging/liblocation-appman.spec
@@ -34,7 +34,7 @@ Description : Location DB controller Development Package
%build
-cmake . -DCMAKE_INSTALL_PREFIX=/usr
+%cmake .
# Call make instruction with smp support
make %{?jobs:-j%jobs}
@@ -44,7 +44,7 @@ make %{?jobs:-j%jobs}
chown 0:5000 /opt/dbspace/.location-appman.db*
chmod 664 /opt/dbspace/.location-appman.db*
-if [ -f /usr/lib/rpm-plugins/msm.so ]
+if [ -f %{_libdir}/rpm-plugins/msm.so ]
then
chsmack -a 'location_fw::db' /opt/dbspace/.location-appman.db*
fi