From 4b9a0658c8db6c76f0e2c16278e04b6d5a679c8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9rgio=20M=2E=20Basto?= Date: Wed, 6 Jul 2022 14:51:36 +0100 Subject: [PATCH] (#2104082) only build Java sub package on arches that java is supported --- opencv.spec | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/opencv.spec b/opencv.spec index 0faa6ee..272acd6 100644 --- a/opencv.spec +++ b/opencv.spec @@ -34,7 +34,12 @@ %bcond_with libmfx %endif %bcond_without clp +%ifarch %{java_arches} %bcond_without java +%else +%bcond_with java +%endif + %bcond_without vulkan %define _lto_cflags %{nil} @@ -54,7 +59,7 @@ Version: 4.6.0 %global minorver %(foo=%{version}; a=(${foo//./ }); echo ${a[1]} ) %global padding %(digits=00; num=%{minorver}; echo ${digits:${#num}:${#digits}} ) %global abiver %(echo %{majorver}%{padding}%{minorver} ) -Release: 2%{?dist} +Release: 3%{?dist} Summary: Collection of algorithms for computer vision # This is normal three clause BSD. License: BSD @@ -487,6 +492,9 @@ ln -s -r %{buildroot}%{_jnidir}/opencv-%{javaver}.jar %{buildroot}%{_jnidir}/ope %{_libdir}/libopencv_xphoto.so.{%{abiver},%{version}} %changelog +* Wed Jul 06 2022 Sérgio Basto - 4.6.0-3 +- (#2104082) only build Java sub package on arches that java is supported + * Mon Jun 20 2022 Sérgio Basto - 4.6.0-2 - Rebuilt for Python 3.11 (is just arrived to rawhide)