diff --git a/opencv.spec b/opencv.spec index 35f7f9830bb6869f2ec6b332037a6683af46b23f..6df5d6e52363b9f1fc52c537704a9334f15bcd02 100644 --- a/opencv.spec +++ b/opencv.spec @@ -1,6 +1,6 @@ Name: opencv Version: 4.5.2 -Release: 5 +Release: 6 Summary: OpenCV means IntelĀ® Open Source Computer Vision Library. License: Apache-2.0 URL: https://github.com/opencv/opencv @@ -68,7 +68,9 @@ cmake ../../ -DCMAKE_BUILD_TYPE=Release\ -DPYTHON3_LIBRARY=$(python3 -c "import distutils.sysconfig as sysconfig; print(sysconfig.get_config_var('LIBDIR')+ '/libpython3.so')")\ -DPYTHON_LIBRARIES=$(python3 -c "import distutils.sysconfig as sysconfig; print(sysconfig.get_config_var('LIBDIR')+ '/libpython3.so')")\ -DPYTHON_LIBRARY=$(python3 -c "import distutils.sysconfig as sysconfig; print(sysconfig.get_config_var('LIBDIR')+ '/libpython3.so')")\ - -DCMAKE_INSTALL_PREFIX=/usr + -DCMAKE_INSTALL_PREFIX=/usr \ + -DOPENCV_CONFIG_INSTALL_PATH=%{_lib}/cmake/OpenCV \ + -DOPENCV_GENERATE_PKGCONFIG=ON make -j24 V=1 ctest -E "opencv_test_objdetect|opencv_test_photo" @@ -87,6 +89,9 @@ make install DESTDIR=%{buildroot} %{python3_sitelib}/cv2/* %changelog +* Thu Jan 28 2022 douyan - 4.5.2-6 +- add pkgconfig file + * Thu Jan 27 2022 douyan - 4.5.2-5 - use %{python3_sitelib} instead of /usr/lib/python3.8/site-packages