From 159a977bbd181fac1ba847d66396efcb1fb7bcdb Mon Sep 17 00:00:00 2001 From: Nicolas Chauvet Date: Fri, 18 Oct 2019 12:34:23 +0200 Subject: [PATCH] Add compat symlinks --- opencv.spec | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/opencv.spec b/opencv.spec index 30ac293..b5d6a54 100644 --- a/opencv.spec +++ b/opencv.spec @@ -338,6 +338,11 @@ ln -s -r %{buildroot}%{_jnidir}/libopencv_java%{javaver}.so %{buildroot}%{_jnidi ln -s -r %{buildroot}%{_jnidir}/opencv-%{javaver}.jar %{buildroot}%{_jnidir}/opencv.jar %endif +# For compatiblity with downstream expectation +ln -s opencv4/opencv2 %{buildroot}%{_includedir} +ln -s opencv4 %{buildroot}%{_datadir}/opencv + + %check # Check fails since we don't support most video # read/write capability and we don't provide a display @@ -361,6 +366,8 @@ popd %files %doc README.md %{_bindir}/opencv_* +# Symlink for compatibilty with older version +%{_datadir}/opencv %dir %{_datadir}/opencv4 %{_datadir}/opencv4/haarcascades %{_datadir}/opencv4/lbpcascades @@ -392,6 +399,8 @@ popd %endif %files devel +# Symlink for compatibilty with older version +%{_includedir}/opencv2 %dir %{_includedir}/opencv4 %{_includedir}/opencv4/opencv2 %{_libdir}/lib*.so