From 6eab18dcc362947222204739069645dece9c4eb6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9rgio=20M=2E=20Basto?= Date: Sat, 19 Mar 2022 23:45:16 +0000 Subject: [PATCH] opencv package dont need setup_vars we may turn OFF setup_vars_opencv --- opencv.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opencv.spec b/opencv.spec index 6334b6a..f156b51 100644 --- a/opencv.spec +++ b/opencv.spec @@ -319,6 +319,7 @@ install -pm 0644 %{SOURCE4} .cache/ade/ -DINSTALL_PYTHON_EXAMPLES=ON \ -DPYTHON3_EXECUTABLE=%{__python3} \ -DPYTHON3_PACKAGES_PATH=%{python3_sitearch} \ + -DOPENCV_GENERATE_SETUPVARS=OFF \ -DENABLE_PYLINT=ON \ -DBUILD_PROTOBUF=OFF \ -DPROTOBUF_UPDATE_FILES=ON \ @@ -423,7 +424,6 @@ ln -s -r %{buildroot}%{_jnidir}/opencv-%{javaver}.jar %{buildroot}%{_jnidir}/ope %{_datadir}/opencv4/samples %files -n python3-opencv -%exclude %{_bindir}/setup_vars_opencv4.sh %{python3_sitearch}/cv2.cpython-3*.so %if %{with java}