4 Summary: IoTivity Base Stack & IoTivity Services
5 Group: System Environment/Libraries
7 URL: https://www.iotivity.org/
8 Source0: %{name}-%{version}.tar.bz2
10 BuildRequires: gettext, expat-devel
11 BuildRequires: python, libcurl-devel
13 BuildRequires: openssl-devel
14 BuildRequires: boost-devel
15 Requires(postun): /sbin/ldconfig
16 Requires(post): /sbin/ldconfig
19 IoTivity Base (RICH & LITE) Stack & IoTivity Services
22 Summary: Development files for %{name}
23 Group: Development/Libraries
24 Requires: %{name} = %{version}-%{release}
28 The %{name}-devel package contains libraries and header files for
29 developing applications that use %{name}.
32 %setup -q -n %{name}-%{version}
36 export RPM_ARCH=armeabi-v7a
44 %ifarch i586 i686 %{ix86}
47 export RPM_ARCH=%{_arch}
54 scons -j 4 TARGET_OS=tizen TARGET_ARCH=$RPM_ARCH
58 mkdir -p %{buildroot}%{_includedir}
59 mkdir -p %{buildroot}%{_libdir}
60 mkdir -p %{buildroot}%{_sbindir}
62 cp out/tizen/*/release/lib*.so %{buildroot}%{_libdir}
63 cp out/tizen/*/release/lib*.a %{buildroot}%{_libdir}
64 cp out/tizen/*/release/service/protocol-plugin/plugins/mqtt-fan/*.so %{buildroot}%{_libdir}
65 cp out/tizen/*/release/service/protocol-plugin/plugins/mqtt-light/*.so %{buildroot}%{_libdir}
67 cp resource/csdk/stack/include/ocstack.h %{buildroot}%{_includedir}
68 cp resource/include/*.h %{buildroot}%{_includedir}
70 cp service/things-manager/sdk/inc/*.h %{buildroot}%{_includedir}
71 cp service/soft-sensor-manager/SDK/cpp/include/*.h %{buildroot}%{_includedir}
77 %post -p /sbin/ldconfig
79 %postun -p /sbin/ldconfig
82 %defattr(-,root,root,-)
85 %{_libdir}/fanserver*.so
86 %{_libdir}/lightserver*.so
89 %defattr(-,root,root,-)