public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Nicolas Chauvet <kwizart@gmail.com>
To: git-commits@fedoraproject.org
Subject: [rpms/opencv] opencv5: Add without_compat_opencv_pc with conditional
Date: Fri, 28 Aug 2026 13:31:32 GMT	[thread overview]
Message-ID: <178792389229.1.5598477093458825276.rpms-opencv-bc40108ce3cf@fedoraproject.org> (raw)

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

                 reply	other threads:[~2026-08-28 13:31 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178792389229.1.5598477093458825276.rpms-opencv-bc40108ce3cf@fedoraproject.org \
    --to=kwizart@gmail.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox