From cadd517c6e4e481785a7c76bed31af3f55108fd0 Mon Sep 17 00:00:00 2001 From: Mu-Woong Lee Date: Tue, 3 Jan 2017 14:44:14 +0900 Subject: [PATCH] Fix smack labels of so symlinks Change-Id: Ife0d01a5a18784d0867f52c9b911e31db499b50d Signed-off-by: Mu-Woong Lee --- CMakeLists.txt | 2 +- packaging/capi-system-sensor.spec | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) 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 -- 2.7.4