Developement package for common app-installers library 88/54288/3
authorTomasz Iwanek <t.iwanek@samsung.com>
Mon, 14 Dec 2015 12:25:39 +0000 (13:25 +0100)
committerPawel Sikorski <p.sikorski@samsung.com>
Thu, 17 Dec 2015 15:34:55 +0000 (07:34 -0800)
Change-Id: I1c2740fb315b4a6b4a5a71e287382e5f7e6e32cf

CMakeLists.txt
packaging/app-installers.spec
src/common/CMakeLists.txt
src/common/app-installers.pc.in [new file with mode: 0644]

index 6c2e88a..e0e9f61 100644 (file)
@@ -22,7 +22,7 @@ SET(CMAKE_CXX_FLAGS_RELEASE    "-O2 -std=c++11 -g")
 SET(CMAKE_CXX_FLAGS_CCOV       "-O0 -std=c++11 -g --coverage")
 
 # Targets
-SET(TARGET_LIBNAME_COMMON "common-installer")
+SET(TARGET_LIBNAME_COMMON "app-installers")
 SET(TARGET_LIBNAME_WGT "wgt-installer")
 SET(TARGET_LIBNAME_TPK "tpk-installer")
 SET(TARGET_WGT_BACKEND "wgt-backend")
index 0dcccac..19b6f81 100644 (file)
@@ -57,6 +57,14 @@ Summary: Backend of TPK files
 %description -n tpk-backend
 Backend for tizen package files
 
+%package devel
+Summary:    App-installers development files
+Group:      Application Framework/Package Management
+Requires:   %{name} = %{version}
+
+%description devel
+This package contains header files of app-installers common library
+
 %package tests
 Summary: Unit tests for app-installers
 Requires: %{name} = %{version}
@@ -98,7 +106,7 @@ ln -sf %{_bindir}/pkgdir-tool %{_bindir}/pkgdir_maker
 %files
 %defattr(-,root,root)
 %manifest app-installers.manifest
-%{_libdir}/libcommon-installer.so*
+%{_libdir}/libapp-installers.so*
 %attr(6750,root,users) %{_bindir}/pkgdir-tool
 %license LICENSE
 
@@ -112,6 +120,11 @@ ln -sf %{_bindir}/pkgdir-tool %{_bindir}/pkgdir_maker
 %manifest tpk-backend.manifest
 %{_bindir}/tpk-backend
 
+%files devel
+%{_includedir}/app-installers/common/*.h
+%{_includedir}/app-installers/common/*/*.h
+%{_libdir}/pkgconfig/app-installers.pc
+
 %files tests
 %manifest app-installers-tests.manifest
 %{_bindir}/app-installers-ut/*
index ee47b7f..4a15a29 100644 (file)
@@ -78,3 +78,9 @@ SET_TARGET_PROPERTIES(${TARGET_LIBNAME_COMMON} PROPERTIES SOVERSION ${VERSION_MA
 
 # Install
 INSTALL(TARGETS ${TARGET_LIBNAME_COMMON} DESTINATION ${LIB_INSTALL_DIR})
+
+# Export devel package
+CONFIGURE_FILE(app-installers.pc.in app-installers.pc @ONLY)
+INSTALL(FILES app-installers.pc DESTINATION ${LIB_INSTALL_DIR}/pkgconfig)
+INSTALL(DIRECTORY ./ DESTINATION ${INCLUDEDIR}/app-installers/common/
+        FILES_MATCHING PATTERN "*.h")
diff --git a/src/common/app-installers.pc.in b/src/common/app-installers.pc.in
new file mode 100644 (file)
index 0000000..0d1f585
--- /dev/null
@@ -0,0 +1,11 @@
+prefix=@PREFIX@
+exec_prefix=@PREFIX@
+libdir=@LIBDIR@
+includedir=@INCLUDEDIR@
+
+Name: app-installers
+Description: Common library for pkgmgr backends
+Version: @VERSION@
+Requires: pkgmgr pkgmgr-installer minizip zlib libtzplatform-config security-manager manifest-parser manifest-handlers delta-manifest-handlers tpk-manifest-handlers cert-svc-vcore pkgmgr-parser pkgmgr-info libxml-2.0 capi-security-privilege-manager libwebappenc capi-appfw-app-manager
+Libs: -L${libdir} -lapp-installers
+Cflags: -I${includedir}/app-installers/