dist: cut the dependency on custom tflite binary
authorMyungJoo Ham <myungjoo.ham@samsung.com>
Tue, 19 Apr 2022 07:41:24 +0000 (16:41 +0900)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Fri, 10 Jun 2022 05:49:33 +0000 (14:49 +0900)
Custom tflite binary is supposed to be installed by users
afterwards.

Thus, cut the dependency from the rpm packaging.

Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
packaging/nnstreamer.spec

index 2b3bd19..e34ebc5 100644 (file)
@@ -196,6 +196,9 @@ BuildRequires: tensorflow-lite-devel
 %if 0%{?tensorflow2_lite_support}
 # for tensorflow2-lite
 BuildRequires: tensorflow2-lite-devel
+# tensorflow2-lite-custom requires scripts for rpm >= 4.9
+BuildRequires:  rpm >= 4.9
+%global __requires_exclude ^libtensorflow2-lite-custom.so$
 %endif
 # custom_example_opencv filter requires opencv-devel
 BuildRequires: opencv-devel