public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/opencv] opencv5: Add without_compat_opencv_pc with conditional
@ 2026-08-28 13:31 Nicolas Chauvet
0 siblings, 0 replies; only message in thread
From: Nicolas Chauvet @ 2026-08-28 13:31 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/opencv
Branch : opencv5
Commit : bc40108ce3cf3f2356cf5b5a34c621103d2a4815
Author : Nicolas Chauvet <kwizart@gmail.com>
Date : 2020-03-26T09:10:36+01:00
Stats : +8/-1 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/opencv/c/bc40108ce3cf3f2356cf5b5a34c621103d2a4815?branch=opencv5
Log:
Add without_compat_opencv_pc with conditional
---
diff --git a/opencv.spec b/opencv.spec
index db11351..d59da81 100644
--- a/opencv.spec
+++ b/opencv.spec
@@ -327,7 +327,6 @@ popd
-DWITH_OPENMP=ON \
-DOPENCV_CONFIG_INSTALL_PATH=%{_lib}/cmake/OpenCV \
-DOPENCV_GENERATE_PKGCONFIG=ON \
- -DOPENCV_PC_FILE_NAME=opencv.pc \
%{?with_gdcm: -DWITH_GDCM=ON } \
%{?with_libmfx: -DWITH_MFX=ON } \
%{?with_clp: -DWITH_CLP=ON } \
@@ -354,6 +353,11 @@ ln -s -r %{buildroot}%{_jnidir}/opencv-%{javaver}.jar %{buildroot}%{_jnidir}/ope
ln -s opencv4/opencv2 %{buildroot}%{_includedir}
ln -s opencv4 %{buildroot}%{_datadir}/opencv
+# For compatibility with existing opencv.pc application
+%{!?without_compat_openvc_pc:
+ ln -s opencv4.pc %{buildroot}%{_libdir}/pkgconfig/opencv.pc
+}
+
%check
# Check fails since we don't support most video
@@ -417,7 +421,10 @@ popd
%dir %{_includedir}/opencv4
%{_includedir}/opencv4/opencv2
%{_libdir}/lib*.so
+%{!?without_compat_openvc_pc:
%{_libdir}/pkgconfig/opencv.pc
+}
+%{_libdir}/pkgconfig/opencv4.pc
%{_libdir}/cmake/OpenCV/*.cmake
%files doc
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-08-28 13:31 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-28 13:31 [rpms/opencv] opencv5: Add without_compat_opencv_pc with conditional Nicolas Chauvet
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox