From be4be5c5d2d6c2ef34e9e9b5b5f03c20827c2e99 Mon Sep 17 00:00:00 2001 From: Hailiang Date: Thu, 22 May 2025 18:08:55 +0800 Subject: [PATCH] provides devel --- opencv.spec | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/opencv.spec b/opencv.spec index c2544dd..e98d19e 100644 --- a/opencv.spec +++ b/opencv.spec @@ -1,6 +1,7 @@ +%global debug_package %{nil} 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 @@ -32,7 +33,13 @@ 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} +%package devel +Summary: Development files for OpenCV +Requires: %{name}%{?_isa} = %{version}-%{release} + +%description devel +This package contains the development files for OpenCV including headers, +cmake files, and unversioned shared libraries. %prep cat %{SOURCE2} %{SOURCE3} %{SOURCE4} %{SOURCE5} %{SOURCE6} > %{SOURCE1} @@ -100,12 +107,21 @@ make install DESTDIR=%{buildroot} %defattr(-,root,root) %exclude /usr/bin/setup_vars_opencv4.sh %{_bindir}/* -%{_libdir}/* -%{_includedir}/* +%{_libdir}/*.so.* %exclude /usr/share/* %{python3_sitelib}/cv2/* +%files devel +%defattr(-,root,root) +%{_includedir}/* +%{_libdir}/*.so +%{_libdir}/cmake/OpenCV/*.cmake +%{_libdir}/pkgconfig/*.pc + %changelog +* Thu May 22 2025 mahailiang - 4.5.2-10 +- provides devel + * Wed Nov 22 2023 konglidong - 4.5.2-9 - backport upstraem patch to fix build failed -- Gitee