From 4a551a80a8bc16de66ad52edac05bab11c06811b Mon Sep 17 00:00:00 2001 From: zhangxianting Date: Thu, 14 Dec 2023 03:58:24 +0000 Subject: [PATCH] fix rpath error Signed-off-by: zhangxianting --- opencv.spec | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/opencv.spec b/opencv.spec index 6df5d6e..ea8ac94 100644 --- a/opencv.spec +++ b/opencv.spec @@ -1,6 +1,6 @@ Name: opencv Version: 4.5.2 -Release: 6 +Release: 7 Summary: OpenCV means IntelĀ® Open Source Computer Vision Library. License: Apache-2.0 URL: https://github.com/opencv/opencv @@ -15,7 +15,7 @@ Patch1: Fix-OpenCV-build-with-OpenEXR-before-2.2.0.patch Patch2: Fix_compilation_of_copy_assignment_operators_with_GCC.patch Patch3: Repair_clang_abi.patch BuildRequires: gcc-c++ gcc autoconf pkgconfig protobuf-compiler protobuf -BuildRequires: cmake +BuildRequires: cmake chrpath BuildRequires: python3-numpy python3-devel %description @@ -79,6 +79,11 @@ ctest -E "opencv_test_objdetect|opencv_test_photo" cd cmake/build make install DESTDIR=%{buildroot} +chrpath -d %{buildroot}%{_bindir}/%{name}_test_* +chrpath -d %{buildroot}%{_libdir}/lib%{name}_*.so.%{version} +chrpath -d %{buildroot}%{python3_sitelib}/cv2/python-%{python3_version}/cv2.cpython-*.so + + %files %defattr(-,root,root) %exclude /usr/bin/setup_vars_opencv4.sh @@ -89,6 +94,9 @@ make install DESTDIR=%{buildroot} %{python3_sitelib}/cv2/* %changelog +* Thu Dec 14 2023 zhangxianting 4.5.2-7 +- fix rpath error + * Thu Jan 28 2022 douyan - 4.5.2-6 - add pkgconfig file -- Gitee