From 67137cd18b3ad6e732d3f8e5db52f75a6a4566fb Mon Sep 17 00:00:00 2001 From: hekra Date: Sun, 22 Nov 2015 16:49:24 -0800 Subject: [PATCH] [IOT-844] Modify Tizen spec forprovisioning Signed-off-by: Hugues Ekra Change-Id: I6ef65066d68a45767b0a825bf309454d289bfb61 Reviewed-on: https://gerrit.iotivity.org/gerrit/4309 Tested-by: jenkins-iotivity Reviewed-by: koushik girijala Reviewed-by: Dmitriy Zhuravlev --- tools/tizen/iotivity.spec | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/tools/tizen/iotivity.spec b/tools/tizen/iotivity.spec index 30ddba4..72b6eef 100644 --- a/tools/tizen/iotivity.spec +++ b/tools/tizen/iotivity.spec @@ -20,7 +20,11 @@ BuildRequires: pkgconfig(dlog) BuildRequires: pkgconfig(uuid) BuildRequires: pkgconfig(capi-network-wifi) BuildRequires: pkgconfig(capi-network-bluetooth) +%if 0%{?tizen_version_major} < 3 BuildRequires: pkgconfig(capi-appfw-app-common) +%else +BuildRequires: pkgconfig(capi-appfw-application) +%endif BuildRequires: pkgconfig(glib-2.0) Requires(postun): /sbin/ldconfig Requires(post): /sbin/ldconfig @@ -124,6 +128,27 @@ cp out/tizen/*/%{build_mode}/resource/examples/simpleserverHQ %{buildroot}%{_bin cp out/tizen/*/%{build_mode}/resource/examples/threadingsample %{buildroot}%{_bindir} if echo %{secure_mode}|grep -qi '1'; then cp out/tizen/*/%{build_mode}/libocpmapi.a %{buildroot}%{_libdir} + cp resource/c_common/*.h %{buildroot}%{_includedir} + cp resource/csdk/connectivity/api/*.h %{buildroot}%{_includedir} + cp extlibs/tinycbor/tinycbor/src/*.h %{buildroot}%{_includedir} + cp ./extlibs/cjson/*.h %{buildroot}%{_includedir} + cp ./resource/c_common/oic_string/include/*.h %{buildroot}%{_includedir} + cp ./resource/csdk/security/provisioning/include/oxm/*.h %{buildroot}%{_includedir} + cp ./resource/csdk/security/include/*.h %{buildroot}%{_includedir} + cp ./resource/csdk/security/provisioning/include/internal/*.h %{buildroot}%{_includedir} + cp ./resource/csdk/security/provisioning/include/*.h %{buildroot}%{_includedir} + cp ./resource/csdk/connectivity/lib/libcoap-4.1.1/*.h %{buildroot}%{_includedir} + + cp out/tizen/*/%{build_mode}/resource/csdk/stack/samples/linux/secure/occlientbasicops %{buildroot}%{_bindir} + cp out/tizen/*/%{build_mode}/resource/csdk/stack/samples/linux/secure/ocserverbasicops %{buildroot}%{_bindir} + cp out/tizen/*/%{build_mode}/resource/csdk/stack/samples/linux/secure/ocamsservice %{buildroot}%{_bindir} + cp out/tizen/*/%{build_mode}/resource/examples/*.json %{buildroot}%{_bindir} + cp out/tizen/*/%{build_mode}/resource/csdk/stack/samples/linux/secure/*.json %{buildroot}%{_bindir} + + cp out/tizen/*/%{build_mode}/resource/csdk/security/provisioning/sample/provisioningclient %{buildroot}%{_bindir} + cp out/tizen/*/%{build_mode}/resource/csdk/security/provisioning/sample/sampleserver_justworks %{buildroot}%{_bindir} + cp out/tizen/*/%{build_mode}/resource/csdk/security/provisioning/sample/sampleserver_randompin %{buildroot}%{_bindir} + cp out/tizen/*/%{build_mode}/resource/csdk/security/provisioning/sample/*.json %{buildroot}%{_bindir} fi cp out/tizen/*/%{build_mode}/libcoap.a %{buildroot}%{_libdir} cp out/tizen/*/%{build_mode}/lib*.so %{buildroot}%{_libdir} -- 2.7.4