From aa36df9345d64cc4e75d60367b77b81ff02b630a Mon Sep 17 00:00:00 2001 From: Yongjoo Ahn Date: Wed, 14 Sep 2022 11:26:12 +0900 Subject: [PATCH] [packaging] Disable Aitt related files when aitt_support is not set - Exclude Aitt related files when aitt_support is not set Signed-off-by: Yongjoo Ahn --- packaging/nnstreamer-edge.spec | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packaging/nnstreamer-edge.spec b/packaging/nnstreamer-edge.spec index 421504c..65853fc 100644 --- a/packaging/nnstreamer-edge.spec +++ b/packaging/nnstreamer-edge.spec @@ -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 -- 2.34.1