%{!?build_type: %define build_type Release}
+%package test
+Summary: NNFW Test
+Requires: nnfw
+
+%description test
+NNFW test rpm. It does not depends on nnfw rpm since it contains nnfw runtime.
+
%define install_prefix /usr
+%define test_install_prefix /opt/usr/nnfw-test
%ifarch %{arm}
%define target_arch armv7l
%install
OBS_BUILD=1 BUILD_TYPE=%{build_type} INSTALL_PATH=%{buildroot}%{install_prefix} TARGET_ARCH=%{target_arch} HOST_OS=tizen make install
+mkdir -p %{buildroot}%{test_install_prefix}
+mv %{buildroot}%{install_prefix}/unittest %{buildroot}%{test_install_prefix}
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%defattr(-,root,root,-)
%{install_prefix}/lib/*
%{install_prefix}/bin/*
-%{install_prefix}/unittest/*
+%exclude %{install_prefix}/unittest/*
+
+%files test
+%manifest %{name}.manifest
+%defattr(-,root,root,-)
+%{test_install_prefix}/unittest/*
%changelog
* Thu Mar 15 2018 Chunseok Lee <chunseok.lee@samsung.com>