From: Mu-Woong Lee Date: Wed, 5 Apr 2017 07:55:54 +0000 (+0900) Subject: Fix the build script typos and nonconventional so symlink packaging X-Git-Tag: submit/tizen/20170413.031950^2~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=386f53aea5827a333e6ae7d5f8625d87e9a4f995;p=platform%2Fcore%2Fapi%2Fcontext.git Fix the build script typos and nonconventional so symlink packaging Change-Id: If1e8854fadd882f2b00867635f992fc88af5ced5 Signed-off-by: Mu-Woong Lee --- diff --git a/CMakeLists.txt b/CMakeLists.txt index dfc7c2e..9ab14ec 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -18,7 +18,7 @@ INCLUDE_DIRECTORIES( ${CMAKE_SOURCE_DIR}/include ) ADD_DEFINITIONS(-O2 -Wall -fPIC -fdata-sections -ffunction-sections -fvisibility=hidden) -SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -fPIC -Wl,--as-needed -Wl,--gc-section -Wl,--print-gc-section") +SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -fPIC -Wl,--as-needed -Wl,--gc-sections -Wl,--print-gc-sections") # Building Library pkg_check_modules(api_pkg REQUIRED ${DEPS}) @@ -46,11 +46,10 @@ SET(VERSION ${FULLVER}) SET(PREFIX ${CMAKE_INSTALL_PREFIX}) SET(PC_NAME ${PROJECT_NAME}) SET(PC_INCLUDE "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_INCLUDEDIR}/context-service") -SET(PC_LIBDIR "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}") +SET(PC_LIBDIR "${CMAKE_INSTALL_LIBDIR}") SET(PC_DESCRIPTION "Tizen Context Framework Native API") SET(PC_REQUIRED ${DEPS}) SET(PC_LDFLAGS -l${target}) -SET(PC_CFLAGS -I\${includedir}/context-service) CONFIGURE_FILE( ${PROJECT_NAME}.pc.in diff --git a/packaging/capi-context.spec b/packaging/capi-context.spec index 71c97df..1e5ee16 100644 --- a/packaging/capi-context.spec +++ b/packaging/capi-context.spec @@ -49,7 +49,7 @@ ln -s lib%{name}.so.%{version} %{buildroot}/%{_libdir}/libcontext.so.0 %files %manifest packaging/%{name}.manifest -%{_libdir}/*.so* +%{_libdir}/*.so.* %license LICENSE %package devel @@ -62,6 +62,7 @@ Tizen Context Framework Native API (Development) %files devel %{_includedir}/context-service/*.h +%{_libdir}/*.so %{_libdir}/pkgconfig/*.pc %package test @@ -74,3 +75,4 @@ Tizen Context Framework Testsuite %files test %manifest testsuite/capi-context-test.manifest %{_bindir}/context-test +%license LICENSE