1 %define PREFIX /usr/apps/com.oic.ri
2 %define ROOTDIR %{_builddir}/%{name}-%{version}
3 %define DEST_INC_DIR %{buildroot}/%{_includedir}/OICHeaders
4 %define DEST_LIB_DIR %{buildroot}/%{_libdir}
9 Summary: Tizen oicri application
10 URL: http://slp-source.sec.samsung.net
11 Source: %{name}-%{version}.tar.gz
13 Group: Applications/OIC
14 BuildRequires: pkgconfig(dlog)
15 BuildRequires: pkgconfig(glib-2.0)
16 BuildRequires: pkgconfig(capi-network-wifi)
17 BuildRequires: pkgconfig(capi-network-bluetooth)
18 BuildRequires: pkgconfig(uuid)
19 BuildRequires: pkgconfig(sqlite3)
20 BuildRequires: boost-devel
21 BuildRequires: boost-thread
22 BuildRequires: boost-system
23 BuildRequires: boost-filesystem
38 scons TARGET_OS=tizen -c
39 scons TARGET_OS=tizen TARGET_TRANSPORT=%{TARGET_TRANSPORT} SECURED=%{SECURED} RELEASE=%{RELEASE} LOGGING=%{LOGGING} ROUTING=%{ROUTING}
42 mkdir -p %{DEST_INC_DIR}
43 mkdir -p %{DEST_LIB_DIR}/pkgconfig
45 cp -f %{ROOTDIR}/resource/csdk/liboctbstack.so %{buildroot}/%{_libdir}
46 cp -f %{ROOTDIR}/resource/c_common/libc_common.a %{buildroot}/%{_libdir}
47 cp -f %{ROOTDIR}/resource/csdk/security/libocsrm.a %{buildroot}/%{_libdir}
48 cp -f %{ROOTDIR}/resource/csdk/connectivity/src/libconnectivity_abstraction.so %{buildroot}/%{_libdir}
49 cp -f %{ROOTDIR}/resource/csdk/connectivity/lib/libcoap-4.1.1/libcoap.a %{buildroot}/%{_libdir}
50 cp /usr/lib/libuuid.so.1 %{buildroot}%{_libdir}
51 if echo %{SECURED}|grep -qi '1'; then
52 cp -f %{ROOTDIR}/extlibs/tinydtls/libtinydtls.a %{buildroot}/%{_libdir}
55 cp -rf %{ROOTDIR}/resource/csdk/stack/include/ocstack.h* %{DEST_INC_DIR}/
56 cp -rf %{ROOTDIR}/resource/csdk/stack/include/ocstackconfig.h* %{DEST_INC_DIR}/
57 cp -rf %{ROOTDIR}/resource/csdk/stack/include/octypes.h* %{DEST_INC_DIR}/
58 cp -rf %{ROOTDIR}/resource/csdk/logger/include/logger.h* %{DEST_INC_DIR}/
59 cp -rf %{ROOTDIR}/resource/csdk/logger/include/logger_types.h* %{DEST_INC_DIR}/
60 cp resource/oc_logger/include/oc_logger.hpp %{DEST_INC_DIR}/
61 cp resource/oc_logger/include/oc_log_stream.hpp %{DEST_INC_DIR}/
62 cp resource/oc_logger/include/oc_logger.h %{DEST_INC_DIR}/
63 cp resource/oc_logger/include/oc_logger_types.h %{DEST_INC_DIR}/
64 cp resource/oc_logger/include/targets/oc_console_logger.h %{DEST_INC_DIR}
65 cp resource/oc_logger/include/targets/oc_ostream_logger.h %{DEST_INC_DIR}
66 cp resource/csdk/stack/include/ocpresence.h %{DEST_INC_DIR}
67 cp resource/csdk/stack/include/ocpayload.h %{DEST_INC_DIR}
68 cp resource/c_common/platform_features.h %{DEST_INC_DIR}
69 cp resource/c_common/*/include/*.h %{DEST_INC_DIR}
70 cp resource/csdk/stack/include/payload_logging.h %{DEST_INC_DIR}
71 cp resource/csdk/stack/include/rdpayload.h %{DEST_INC_DIR}
72 cp extlibs/tinycbor/tinycbor/src/cbor.h %{DEST_INC_DIR}
73 cp extlibs/cjson/cJSON.h %{DEST_INC_DIR}
74 cp -rf %{ROOTDIR}/com.oic.ri.pc %{DEST_LIB_DIR}/pkgconfig/
77 %manifest com.oic.ri.manifest
78 %defattr(-,root,root,-)
81 %{_includedir}/OICHeaders/*
82 %{_libdir}/pkgconfig/*.pc