OBS_BUILD=1 BUILD_TYPE=%{build_type} INSTALL_PATH=%{buildroot}%{install_prefix} TARGET_ARCH=%{target_arch} TARGET_OS=tizen make %{?jobs:-j%jobs}
%install
-OBS_BUILD=1 BUILD_TYPE=%{build_type} INSTALL_PATH=%{buildroot}%{install_prefix} TARGET_ARCH=%{target_arch} TARGET_OS=tizen make install
-mkdir -p %{buildroot}%{test_install_prefix}
-mv %{buildroot}%{install_prefix}/unittest %{buildroot}%{test_install_prefix}
-# install tests
+OBS_BUILD=1 BUILD_TYPE=%{build_type} INSTALL_PATH=%{buildroot}%{install_prefix} TARGET_ARCH=%{target_arch} HOST_OS=tizen make install
+
+# nnfw-test rpm(like test-suite on cross build)
+## install Product
+mkdir -p %{buildroot}%{test_install_prefix}/Product/out
+mv %{buildroot}%{install_prefix}/unittest %{buildroot}%{test_install_prefix}/Product/out
+mv %{buildroot}%{install_prefix}/bin %{buildroot}%{test_install_prefix}/Product/out
+mv %{buildroot}%{install_prefix}/lib %{buildroot}%{test_install_prefix}/Product/out
+## install tests
cp -rf ./tests %{buildroot}%{test_install_prefix}/.
-# install tools
+## install tools
mkdir -p %{buildroot}%{test_install_prefix}/tools
cp -rf ./tools/test_driver %{buildroot}%{test_install_prefix}/tools
%manifest %{name}.manifest
%defattr(-,root,root,-)
%{install_prefix}/lib/*
-%{install_prefix}/bin/*
+%exclude %{install_prefix}/bin/*
%exclude %{install_prefix}/unittest/*
%files test