Make logs available in devel package 40/32940/2
authorAdam Malinowski <a.malinowsk2@partner.samsung.com>
Tue, 30 Dec 2014 11:21:00 +0000 (12:21 +0100)
committerAdam Malinowski <a.malinowsk2@partner.samsung.com>
Tue, 30 Dec 2014 13:15:04 +0000 (14:15 +0100)
Header for logs is now installed for cynara related components
that want to use cynara logs e.g. plugins.

Change-Id: I174ce7ed4770cbf76511716e879885cffca32316

packaging/cynara.spec
src/common/CMakeLists.txt
src/include/cynara-plugin.h

index f62aed9..2d5a620 100644 (file)
@@ -65,6 +65,7 @@ Requires:   libcynara-creds-dbus = %{version}-%{release}
 Requires:   libcynara-creds-socket = %{version}-%{release}
 Requires:   libcynara-session = %{version}-%{release}
 Requires:   pkgconfig(dbus-1)
+Requires:   pkgconfig(libsystemd-journal)
 Obsoletes:  libcynara-admin-devel
 Obsoletes:  libcynara-agent-devel
 Obsoletes:  libcynara-client-async-devel
@@ -307,6 +308,7 @@ fi
 
 %files -n cynara-devel
 %{_includedir}/cynara/*.h
+%{_includedir}/cynara/log/*.h
 %{_includedir}/cynara/plugin/*.h
 %{_includedir}/cynara/types/*.h
 %{_libdir}/pkgconfig/*.pc
index 90f1b4b..f3670ad 100644 (file)
@@ -103,6 +103,10 @@ TARGET_LINK_LIBRARIES(${TARGET_CYNARA_COMMON}
 
 INSTALL(TARGETS ${TARGET_CYNARA_COMMON} DESTINATION ${LIB_INSTALL_DIR})
 INSTALL(FILES
+    ${COMMON_PATH}/log/log.h
+    DESTINATION ${INCLUDE_INSTALL_DIR}/cynara/log
+    )
+INSTALL(FILES
     ${COMMON_PATH}/types/ClientSession.h
     ${COMMON_PATH}/types/PolicyDescription.h
     ${COMMON_PATH}/types/PolicyResult.h
index 20e5e5c..4318f23 100644 (file)
@@ -28,6 +28,7 @@
 #include <string>
 #include <vector>
 
+#include <log/log.h>
 #include <plugin/ExternalPluginInterface.h>
 #include <types/PolicyResult.h>
 #include <types/PolicyType.h>