(#2104082) only build Java sub package on arches that java is supported

This commit is contained in:
Sérgio M. Basto 2022-07-06 14:51:36 +01:00
parent e8bdd3b6ca
commit 4b9a0658c8
1 changed files with 9 additions and 1 deletions

View File

@ -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 <sergio@serjux.com> - 4.6.0-3
- (#2104082) only build Java sub package on arches that java is supported
* Mon Jun 20 2022 Sérgio Basto <sergio@serjux.com> - 4.6.0-2
- Rebuilt for Python 3.11 (is just arrived to rawhide)