Add compat symlinks
This commit is contained in:
parent
e8eab8a9ac
commit
159a977bbd
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user