4 Summary: IoTivity Base Stack & IoTivity Services
5 Group: System Environment/Libraries
7 URL: https://www.iotivity.org/
8 Source0: %{name}-%{version}.tar.bz2
9 Source10: cereal.tar.bz2
10 BuildRequires: gettext-tools
11 BuildRequires: expat-devel
12 BuildRequires: python, libcurl-devel
14 BuildRequires: openssl-devel
15 BuildRequires: boost-devel, boost-program-options
16 Requires(postun): /sbin/ldconfig
17 Requires(post): /sbin/ldconfig
20 IoTivity Base (RICH & LITE) Stack & IoTivity Services
23 Summary: Development files for %{name}
24 Group: Development/Libraries
25 Requires: %{name} = %{version}-%{release}
29 The %{name}-devel package contains libraries and header files for
30 developing applications that use %{name}.
33 Summary: Examples files for %{name}
34 Group: Development/Libraries
35 Requires: %{name} = %{version}-%{release}
39 Contains samples applications that use %{name}.
42 %setup -q -n %{name}-%{version} -a 10
51 %ifarch i586 i686 %{ix86}
54 export RPM_ARCH=%{_arch}
59 find . -iname "*.h*" -exec chmod -v a-x "{}" \;
61 scons -j 4 TARGET_ARCH=$RPM_ARCH
64 -C examples/OICMiddle \
67 touch resource/deps resource/applyDepPatches
71 DEPEND_DIR=$(pwd)/extlibs/
75 DEPEND_DIR=$(pwd)/extlibs/
83 DEPEND_DIR=$(pwd)/extlibs/ \
84 DEST_LIB_DIR=%{buildroot}%{_libdir}/%{name}/ \
89 DEPEND_DIR=$(pwd)/extlibs/ \
90 DESTDIR=%{buildroot} \
94 -C resource/oc_logger \
95 DEPEND_DIR=$(pwd)/extlibs/ \
96 DESTDIR=%{buildroot} \
100 install -d %{buildroot}%{_sbindir}
102 install -d %{buildroot}%{_libdir}
104 find . -iname "lib*.a" -exec install "{}" %{buildroot}%{_libdir}/ \;
105 find . -iname "lib*.so" -exec install "{}" %{buildroot}%{_libdir}/ \;
108 install -d %{buildroot}%{_includedir}
109 install -d %{buildroot}%{_includedir}/%{name}/
110 install resource/include/*.h %{buildroot}%{_includedir}/%{name}/
112 install service/things-manager/sdk/inc/*.h %{buildroot}%{_includedir}/%{name}/
113 install service/soft-sensor-manager/SDK/cpp/include/*.h %{buildroot}%{_includedir}/%{name}/
115 install -d %{buildroot}%{_bindir}
116 install examples/OICMiddle/debug/OICMiddle %{buildroot}%{_bindir}
118 rm -fv %{buildroot}%{_libdir}/libcoap.a
119 rm -fv %{buildroot}%{_libdir}/liboc.a
120 rm -fv %{buildroot}%{_libdir}/liboc_logger.a
121 rm -fv %{buildroot}%{_libdir}/libmosquitto.a
126 %post -p /sbin/ldconfig
128 %postun -p /sbin/ldconfig
131 %defattr(-,root,root,-)
135 %defattr(644,root,root,755)
136 %{_includedir}/*/*.h*
137 %{_includedir}/*/*/*.h*
141 %defattr(-,root,root,-)
143 %{_libdir}/%{name}/examples/*client*
144 %{_libdir}/%{name}/examples/*server*
145 %{_libdir}/%{name}/examples/*sample*