Fix devel package 36/213936/1
authorKichan Kwon <k_c.kwon@samsung.com>
Tue, 17 Sep 2019 01:15:37 +0000 (10:15 +0900)
committerKichan Kwon <k_c.kwon@samsung.com>
Tue, 17 Sep 2019 01:16:22 +0000 (10:16 +0900)
- Move header to the /usr/include/system
- Include the symbolic link of library

Change-Id: I489b776a9966cb3a8a542097145a23d15c9bee4d
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
CMakeLists.txt
capi-system-battery-monitor.pc.in
packaging/capi-system-battery-monitor.spec

index a4302eb..2c15b5b 100644 (file)
@@ -57,7 +57,7 @@ SET_TARGET_PROPERTIES(${LIB_NAME}
 
 INSTALL(TARGETS ${LIB_NAME} DESTINATION ${LIB_DIR})
 INSTALL(
-       DIRECTORY ${INC_DIR}/ DESTINATION ${LIB_INCLUDE_DIR}
+       DIRECTORY ${INC_DIR}/ DESTINATION ${LIB_INCLUDE_DIR}/system
        FILES_MATCHING
        PATTERN "${INC_DIR}/battery_monitor.h"
 )
index 328ec23..cefb0bb 100644 (file)
@@ -3,7 +3,7 @@
 prefix=@PREFIX@
 exec_prefix=/usr
 libdir=@LIB_INSTALL_DIR@
-includedir=@INCLUDE_INSTALL_DIR@
+includedir=@INCLUDE_INSTALL_DIR@/system
 
 Name: @PC_NAME@
 Description: @PACKAGE_DESCRIPTION@
index 1f9666e..a012f68 100644 (file)
@@ -65,10 +65,9 @@ make %{?jobs:-j%jobs}
 %attr(644,-,-) %{_libdir}/lib%{name}.so.*
 
 %files devel
-%manifest %{name}-devel.manifest
-%defattr(-,root,root,-)
+%{_libdir}/lib*.so
 %{_libdir}/pkgconfig/%{name}.pc
-%{_includedir}/*
+%{_includedir}/system/*.h
 
 %files test
 %manifest %{name}.manifest