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

index d8f80d9..16f3895 100644 (file)
@@ -17,7 +17,7 @@ INCLUDE_DIRECTORIES(
 )
 
 ADD_DEFINITIONS(-O2 -Wall -fPIC -flto -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")
 
 # Build
 pkg_check_modules(pkgs REQUIRED ${dependency})
@@ -43,12 +43,11 @@ INSTALL(
 SET(VERSION ${FULLVER})
 SET(PC_PREFIX ${CMAKE_INSTALL_PREFIX})
 SET(PC_NAME ${PROJECT_NAME})
-SET(PC_LIBDIR "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}")
+SET(PC_LIBDIR "${CMAKE_INSTALL_LIBDIR}")
 SET(PC_INCLUDE "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_INCLUDEDIR}/${inc_subdir}")
-SET(PC_DESCRIPTION "Tizen Native Motion Recognition API")
+SET(PC_DESCRIPTION "Tizen Native Motion Recognition API")
 SET(PC_REQUIRED ${dependency})
 SET(PC_LDFLAGS -l${target})
-SET(PC_CFLAGS -I\${includedir}/${inc_subdir})
 
 CONFIGURE_FILE(
        ${PROJECT_NAME}.pc.in
index 1c3da8b..3f925dd 100644 (file)
@@ -52,7 +52,7 @@ ln -s lib%{name}.so.%{version} %{buildroot}/%{_libdir}/libcore-context-manager.s
 
 %files
 %manifest packaging/%{name}.manifest
-%{_libdir}/*.so*
+%{_libdir}/*.so.*
 %license LICENSE
 
 %package devel
@@ -65,4 +65,5 @@ Tizen Native Motion Recognition API (Development)
 
 %files devel
 %{_includedir}/*/*.h
+%{_libdir}/*.so
 %{_libdir}/pkgconfig/*.pc