[packaging] Disable Aitt related files when aitt_support is not set
authorYongjoo Ahn <yongjoo1.ahn@samsung.com>
Wed, 14 Sep 2022 02:26:12 +0000 (11:26 +0900)
committerjaeyun-jung <39614140+jaeyun-jung@users.noreply.github.com>
Wed, 14 Sep 2022 02:46:38 +0000 (11:46 +0900)
- Exclude Aitt related files when aitt_support is not set

Signed-off-by: Yongjoo Ahn <yongjoo1.ahn@samsung.com>
packaging/nnstreamer-edge.spec

index 421504c2ca79ac65578e5823ca054695b0aa9132..65853fc69ec98f5c0644e06a06952e4a7939dfc0 100644 (file)
@@ -112,7 +112,10 @@ popd
 
 %if 0%{?unit_test}
 LD_LIBRARY_PATH=./src bash %{test_script} ./tests/unittest_nnstreamer-edge
+
+%if 0%{?aitt_support}
 LD_LIBRARY_PATH=./src bash %{test_script} ./tests/unittest_nnstreamer-edge-aitt
+%endif
 
 %if 0%{?testcoverage}
 # 'lcov' generates the date format with UTC time zone by default. Let's replace UTC with KST.
@@ -158,7 +161,10 @@ rm -rf %{buildroot}
 %manifest nnstreamer-edge.manifest
 %defattr(-,root,root,-)
 %{_bindir}/unittest_nnstreamer-edge
+
+%if 0%{?aitt_support}
 %{_bindir}/unittest_nnstreamer-edge-aitt
+%endif
 
 %if 0%{?testcoverage}
 %files unittest-coverage