diff --git a/opencv.spec b/opencv.spec index c2544ddfbe5d5efa52afb88e67e0328f6beb5cde..1144d05f671a37d1dd0f3bbfb6216e68555af3a5 100644 --- a/opencv.spec +++ b/opencv.spec @@ -1,6 +1,6 @@ Name: opencv Version: 4.5.2 -Release: 9 +Release: 10 Summary: OpenCV means IntelĀ® Open Source Computer Vision Library. License: Apache-2.0 URL: https://github.com/opencv/opencv @@ -22,6 +22,7 @@ Patch7: calib3d-use-OCV_LAPACK_FUNC.patch BuildRequires: qt5-qtbase-devel BuildRequires: gcc-c++ gcc autoconf pkgconfig protobuf-compiler protobuf BuildRequires: cmake +BuildRequires: chrpath BuildRequires: python3-numpy python3-devel BuildRequires: tesseract-devel BuildRequires: mesa-libGLU-devel @@ -32,8 +33,6 @@ OpenCV means IntelĀ® Open Source Computer Vision Library. It is a collection of C functions and a few C++ classes that implement some popular Image Processing and Computer Vision algorithms. -%global debug_package %{nil} - %prep cat %{SOURCE2} %{SOURCE3} %{SOURCE4} %{SOURCE5} %{SOURCE6} > %{SOURCE1} %autosetup -p1 -n %{name}-%{version} @@ -44,6 +43,9 @@ pwd mkdir -p cmake/build cd cmake/build cmake ../../ -DCMAKE_BUILD_TYPE=Release\ + -DCMAKE_C_FLAGS='-g'\ + -DCMAKE_CXX_FLAGS='-g'\ + -DCMAKE_SKIP_RPATH=ON\ -DWITH_PROTOBUF=ON\ -DWITH_WEBP=ON\ -DWITH_IPP=OFF\ @@ -88,7 +90,9 @@ cmake ../../ -DCMAKE_BUILD_TYPE=Release\ -DCMAKE_INSTALL_PREFIX=/usr \ -DOPENCV_CONFIG_INSTALL_PATH=%{_lib}/cmake/OpenCV \ -DOPENCV_GENERATE_PKGCONFIG=ON -make -j24 V=1 +make %{?_smp_mflags} V=1 + +export LD_LIBRARY_PATH=%{_builddir}/%{name}-%{version}/cmake/build/lib:$LD_LIBARY_PATH ctest -E "opencv_test_objdetect|opencv_test_photo|opencv_test_highgui" @@ -106,6 +110,9 @@ make install DESTDIR=%{buildroot} %{python3_sitelib}/cv2/* %changelog +* Mon Apr 08 2024 guoqinglan - 4.5.2-10 +- enable debug package build and remove rpath + * Wed Nov 22 2023 konglidong - 4.5.2-9 - backport upstraem patch to fix build failed