!32 fix rpath error
From: @zhangxianting Reviewed-by: @zhunaipan Signed-off-by: @zhunaipan
This commit is contained in:
commit
6841b7b8c1
12
opencv.spec
12
opencv.spec
@ -1,6 +1,6 @@
|
|||||||
Name: opencv
|
Name: opencv
|
||||||
Version: 4.5.2
|
Version: 4.5.2
|
||||||
Release: 6
|
Release: 7
|
||||||
Summary: OpenCV means Intel® Open Source Computer Vision Library.
|
Summary: OpenCV means Intel® Open Source Computer Vision Library.
|
||||||
License: Apache-2.0
|
License: Apache-2.0
|
||||||
URL: https://github.com/opencv/opencv
|
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
|
Patch2: Fix_compilation_of_copy_assignment_operators_with_GCC.patch
|
||||||
Patch3: Repair_clang_abi.patch
|
Patch3: Repair_clang_abi.patch
|
||||||
BuildRequires: gcc-c++ gcc autoconf pkgconfig protobuf-compiler protobuf
|
BuildRequires: gcc-c++ gcc autoconf pkgconfig protobuf-compiler protobuf
|
||||||
BuildRequires: cmake
|
BuildRequires: cmake chrpath
|
||||||
BuildRequires: python3-numpy python3-devel
|
BuildRequires: python3-numpy python3-devel
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -79,6 +79,11 @@ ctest -E "opencv_test_objdetect|opencv_test_photo"
|
|||||||
cd cmake/build
|
cd cmake/build
|
||||||
make install DESTDIR=%{buildroot}
|
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
|
%files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%exclude /usr/bin/setup_vars_opencv4.sh
|
%exclude /usr/bin/setup_vars_opencv4.sh
|
||||||
@ -89,6 +94,9 @@ make install DESTDIR=%{buildroot}
|
|||||||
%{python3_sitelib}/cv2/*
|
%{python3_sitelib}/cv2/*
|
||||||
|
|
||||||
%changelog
|
%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
|
* Thu Jan 28 2022 douyan <douyan@kylinos.cn> - 4.5.2-6
|
||||||
- add pkgconfig file
|
- add pkgconfig file
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user