From: Mu-Woong Lee Date: Tue, 3 Jan 2017 05:44:14 +0000 (+0900) Subject: Fix smack labels of so symlinks X-Git-Tag: submit/tizen/20170103.072008^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cadd517c6e4e481785a7c76bed31af3f55108fd0;p=platform%2Fcore%2Fapi%2Fsensor.git Fix smack labels of so symlinks Change-Id: Ife0d01a5a18784d0867f52c9b911e31db499b50d Signed-off-by: Mu-Woong Lee --- diff --git a/CMakeLists.txt b/CMakeLists.txt index db86c5f..2add92e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -53,5 +53,5 @@ TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${${PROJECT_NAME}_LDFLAGS}) SET_TARGET_PROPERTIES(${PROJECT_NAME} PROPERTIES VERSION ${FULLVER} SOVERSION ${MAJORVER} CLEAN_DIRECT_OUTPUT 1) CONFIGURE_FILE(${PROJECT_NAME}.pc.in ${CMAKE_CURRENT_SOURCE_DIR}/${PROJECT_NAME}.pc @ONLY) INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/${PROJECT_NAME}.pc DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig) -INSTALL(TARGETS ${PROJECT_NAME} DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT RuntimeLibraries) INSTALL(FILES include/sensor.h DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/sensor) +INSTALL(TARGETS ${PROJECT_NAME} LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}) diff --git a/packaging/capi-system-sensor.spec b/packaging/capi-system-sensor.spec index 703a4d0..48c2e19 100644 --- a/packaging/capi-system-sensor.spec +++ b/packaging/capi-system-sensor.spec @@ -111,12 +111,13 @@ popd %if "%{?profile}" != "tv" && "%{?profile}" != "ivi" %post extension-recorder pushd %{_libdir} -for FILE in libcapi-system-sensor.so.*.recorder; do ln -sf "${FILE}" "${FILE%.recorder}"; done +for FILE in libcapi-system-sensor.so.*.recorder; do ln -sf "${FILE}" "${FILE%.recorder}"; chsmack -a "_" "${FILE%.recorder}"; done popd %preun extension-recorder echo "You need to reinstall %{name} if you want to keep using %{name} after uninstalling this extension." %files extension-recorder +%manifest packaging/capi-system-sensor.manifest %{_libdir}/libcapi-system-sensor.so.*.recorder %endif