From fdd10b3d53e15cee50b8f4837f344b3a2106571e Mon Sep 17 00:00:00 2001 From: yanhailiang Date: Fri, 19 Nov 2021 10:00:25 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9E=84=E5=BB=BApython=20=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- opencv.spec | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/opencv.spec b/opencv.spec index ea8fd65..dab493e 100644 --- a/opencv.spec +++ b/opencv.spec @@ -70,7 +70,7 @@ cmake ../../ -DCMAKE_BUILD_TYPE=Release\ -DPYTHON_LIBRARY=$(python3 -c "import distutils.sysconfig as sysconfig; print(sysconfig.get_config_var('LIBDIR')+ '/libpython3.so')")\ -DCMAKE_INSTALL_PREFIX=/usr make -j24 V=1 -ctest -E "opencv_test_imgproc" +ctest -E "opencv_test_objdetect opencv_test_photo" %install @@ -84,6 +84,7 @@ make install DESTDIR=%{buildroot} %{_libdir}/* %{_includedir}/* %exclude /usr/share/* +/usr/lib/python3.8/site-packages/cv2/* %changelog * Wed Nov 17 2021 shenwei - 4.5.2-4