!32 fix rpath error

From: @zhangxianting 
Reviewed-by: @zhunaipan 
Signed-off-by: @zhunaipan
This commit is contained in:
openeuler-ci-bot 2023-12-19 09:39:36 +00:00 committed by Gitee
commit 6841b7b8c1
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -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 <zhangxianting@uniontech.com> 4.5.2-7
- fix rpath error
* Thu Jan 28 2022 douyan <douyan@kylinos.cn> - 4.5.2-6
- add pkgconfig file