Commit 0cc36122 authored by Philippe Coval's avatar Philippe Coval Committed by Philippe Coval

packaging: Bump version to 0.9.0

Example subpackage is added and some static libs

Change-Id: I4ddbf3e1eef8648ceaeae6c62175308cb6f3fec1
Signed-off-by: default avatarPhilippe Coval <>
parent aed21c17
Name: iotivity
Version: 0.9
Version: 0.9.0
Release: 0
Summary: IoTivity Base Stack & IoTivity Services
Group: System Environment/Libraries
License: Apache-2.0
Source0: %{name}-%{version}.tar.bz2
BuildRequires: gettext, expat-devel
Source10: cereal.tar.bz2
BuildRequires: gettext-tools
BuildRequires: expat-devel
BuildRequires: python, libcurl-devel
BuildRequires: scons
BuildRequires: openssl-devel
BuildRequires: boost-devel
BuildRequires: boost-devel, boost-program-options
Requires(postun): /sbin/ldconfig
Requires(post): /sbin/ldconfig
......@@ -28,33 +29,96 @@ Requires: pkgconfig
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.
%package examples
Summary: Examples files for %{name}
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
Requires: pkgconfig
%description examples
Contains samples applications that use %{name}.
%setup -q -n %{name}-%{version}
%setup -q -n %{name}-%{version} -a 10
%ifarch %arm
export RPM_ARCH=arm
%ifarch aarch64
export RPM_ARCH=arm64
%ifarch i586 i686 %{ix86}
export RPM_ARCH=x86
export RPM_ARCH=%{_arch}
find . -iname "*.h*" -exec chmod -v a-x "{}" \;
%__make \
-C examples/OICMiddle \
touch resource/deps resource/applyDepPatches
%__make \
-C resource \
%__make \
-C resource/csdk \
rm -rf %{buildroot}
mkdir -p %{buildroot}%{_includedir}
mkdir -p %{buildroot}%{_libdir}
mkdir -p %{buildroot}%{_sbindir}
cp out/linux/*/release/lib*.so %{buildroot}%{_libdir}
cp out/linux/*/release/lib*.a %{buildroot}%{_libdir}
%__make \
-C resource \
DEPEND_DIR=$(pwd)/extlibs/ \
DEST_LIB_DIR=%{buildroot}%{_libdir}/%{name}/ \
%__make \
-C resource/csdk \
DEPEND_DIR=$(pwd)/extlibs/ \
DESTDIR=%{buildroot} \
%__make \
-C resource/oc_logger \
DEPEND_DIR=$(pwd)/extlibs/ \
DESTDIR=%{buildroot} \
install -d %{buildroot}%{_sbindir}
install -d %{buildroot}%{_libdir}
cp resource/csdk/stack/include/ocstack.h %{buildroot}%{_includedir}
cp resource/include/*.h %{buildroot}%{_includedir}
find . -iname "lib*.a" -exec install "{}" %{buildroot}%{_libdir}/ \;
find . -iname "lib*.so" -exec install "{}" %{buildroot}%{_libdir}/ \;
cp service/things-manager/sdk/inc/*.h %{buildroot}%{_includedir}
cp service/soft-sensor-manager/SDK/cpp/include/*.h %{buildroot}%{_includedir}
install -d %{buildroot}%{_includedir}
install -d %{buildroot}%{_includedir}/%{name}/
install resource/include/*.h %{buildroot}%{_includedir}/%{name}/
install service/things-manager/sdk/inc/*.h %{buildroot}%{_includedir}/%{name}/
install service/soft-sensor-manager/SDK/cpp/include/*.h %{buildroot}%{_includedir}/%{name}/
install -d %{buildroot}%{_bindir}
install examples/OICMiddle/debug/OICMiddle %{buildroot}%{_bindir}
rm -fv %{buildroot}%{_libdir}/libcoap.a
rm -fv %{buildroot}%{_libdir}/liboc.a
rm -fv %{buildroot}%{_libdir}/liboc_logger.a
rm -fv %{buildroot}%{_libdir}/libmosquitto.a
rm -rf %{buildroot}
......@@ -66,8 +130,16 @@ rm -rf %{buildroot}
%files devel
%files examples
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment