Fix smack labels of so symlinks 21/108121/1
authorMu-Woong Lee <muwoong.lee@samsung.com>
Tue, 3 Jan 2017 05:44:14 +0000 (14:44 +0900)
committerMu-Woong Lee <muwoong.lee@samsung.com>
Tue, 3 Jan 2017 05:44:14 +0000 (14:44 +0900)
Change-Id: Ife0d01a5a18784d0867f52c9b911e31db499b50d
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
CMakeLists.txt
packaging/capi-system-sensor.spec

index db86c5f..2add92e 100644 (file)
@@ -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})
index 703a4d0..48c2e19 100644 (file)
@@ -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