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}
41 scons -j 4 TARGET_ARCH=$RPM_ARCH
45 mkdir -p %{buildroot}%{_includedir}
46 mkdir -p %{buildroot}%{_libdir}
47 mkdir -p %{buildroot}%{_sbindir}
49 cp out/linux/*/release/lib*.so %{buildroot}%{_libdir}
50 cp out/linux/*/release/lib*.a %{buildroot}%{_libdir}
52 cp resource/csdk/stack/include/ocstack.h %{buildroot}%{_includedir}
53 cp resource/include/*.h %{buildroot}%{_includedir}
55 cp service/things-manager/sdk/inc/*.h %{buildroot}%{_includedir}
56 cp service/soft-sensor-manager/SDK/cpp/include/*.h %{buildroot}%{_includedir}
62 %post -p /sbin/ldconfig
64 %postun -p /sbin/ldconfig
67 %defattr(-,root,root,-)
72 %defattr(-,root,root,-)