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")
%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}
%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
%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/*
# 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")
--- /dev/null
+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/