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}
65 cp resource/csdk/stack/include/ocstack.h %{buildroot}%{_includedir}
66 cp resource/include/*.h %{buildroot}%{_includedir}
68 cp service/things-manager/sdk/inc/*.h %{buildroot}%{_includedir}
69 cp service/soft-sensor-manager/SDK/cpp/include/*.h %{buildroot}%{_includedir}
75 %post -p /sbin/ldconfig
77 %postun -p /sbin/ldconfig
80 %defattr(-,root,root,-)
85 %defattr(-,root,root,-)