Commit b75fa537 authored by Philippe Coval's avatar Philippe Coval Committed by Philippe Coval

packaging: Initial packaging on 0.9 for Tizen

This is a vanilla copy of upstream spec file from :

Change-Id: Ib45d37341fe326d42e9bdd8a81a6d479623fd8c0
Signed-off-by: default avatarPhilippe Coval <>
parent e12c8a3b
Name: iotivity
Version: 0.9
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
BuildRequires: python, libcurl-devel
BuildRequires: scons
BuildRequires: openssl-devel
BuildRequires: boost-devel
Requires(postun): /sbin/ldconfig
Requires(post): /sbin/ldconfig
IoTivity Base (RICH & LITE) Stack & IoTivity Services
%package devel
Summary: Development files for %{name}
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
Requires: pkgconfig
%description devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.
%setup -q -n %{name}-%{version}
%ifarch %arm
export RPM_ARCH=arm
export RPM_ARCH=x86
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}
cp resource/csdk/stack/include/ocstack.h %{buildroot}%{_includedir}
cp resource/include/*.h %{buildroot}%{_includedir}
cp service/things-manager/sdk/inc/*.h %{buildroot}%{_includedir}
cp service/soft-sensor-manager/SDK/cpp/include/*.h %{buildroot}%{_includedir}
rm -rf %{buildroot}
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files devel
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