For the purpose of filtering out sources which should not be include in
Tizen packages, this patch adds a script for generating source tarball
at build time.
Signed-off-by: Wook Song <wook16.song@samsung.com>
--- /dev/null
+#!/bin/sh
+
+set -e
+
+NNS_PKG_NAME=$1
+VERSION=$2
+
+tar xzf ${NNS_PKG_NAME}-${VERSION}.tar.gz
+rm -f ${NNS_PKG_NAME}-$VERSION.tar.gz
+rm -rf ${NNS_PKG_NAME}-$VERSION/api/capi/include/platform
+tar czf ${NNS_PKG_NAME}-$VERSION.tar.gz ${NNS_PKG_NAME}-${VERSION}/*
Packager: MyungJoo Ham <myungjoo.ham@samsung.com>
License: LGPL-2.1
Source0: nnstreamer-%{version}.tar.gz
+Source1: generate-tarball.sh
Source1001: nnstreamer.manifest
%if %{with tizen}
Source1002: capi-nnstreamer.manifest
%setup -q
cp %{SOURCE1001} .
%if %{with tizen}
+pushd %{_sourcedir}
+sh %{SOURCE1} %{name} %{version}
+popd
cp %{SOURCE1002} .
+rm -rf ./api/capi/include/platform
%endif
cp %{SOURCE1001} ./nnstreamer-cpp.manifest