From 91031d272f1263b179f800326a2ac2a7d1d2c55f Mon Sep 17 00:00:00 2001 From: =?utf8?q?=EC=9D=B4=EC=B6=98=EC=84=9D/=EB=8F=99=EC=9E=91=EC=A0=9C?= =?utf8?q?=EC=96=B4Lab=28SR=29/Senior=20Engineer/=EC=82=BC=EC=84=B1?= =?utf8?q?=EC=A0=84=EC=9E=90?= Date: Fri, 27 Apr 2018 07:30:44 +0900 Subject: [PATCH] Add test rpm for obs build (#914) * Add test rpm for obs build nnfw-test.rpm contains unittests and its install path is /opt/usr/nnfw-test/ Signed-off-by: Chunseok Lee --- packaging/nnfw.spec | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/packaging/nnfw.spec b/packaging/nnfw.spec index 50d4537..9e29f4a 100644 --- a/packaging/nnfw.spec +++ b/packaging/nnfw.spec @@ -28,7 +28,15 @@ nnfw is a high-performance, on-device neural network framework for Tizen %{!?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 @@ -49,6 +57,8 @@ OBS_BUILD=1 BUILD_TYPE=%{build_type} INSTALL_PATH=%{buildroot}%{install_prefix} %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 @@ -58,7 +68,12 @@ OBS_BUILD=1 BUILD_TYPE=%{build_type} INSTALL_PATH=%{buildroot}%{install_prefix} %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 -- 2.7.4