Fix the build script typos and nonconventional so symlink packaging 28/123328/1
authorMu-Woong Lee <muwoong.lee@samsung.com>
Wed, 5 Apr 2017 07:55:54 +0000 (16:55 +0900)
committerMu-Woong Lee <muwoong.lee@samsung.com>
Wed, 5 Apr 2017 07:55:54 +0000 (16:55 +0900)
Change-Id: If1e8854fadd882f2b00867635f992fc88af5ced5
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
CMakeLists.txt
packaging/capi-context.spec

index dfc7c2e..9ab14ec 100644 (file)
@@ -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
index 71c97df..1e5ee16 100644 (file)
@@ -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