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

epel9
Sérgio M. Basto 3 years ago
parent e8bdd3b6ca
commit 4b9a0658c8

@ -34,7 +34,12 @@
%bcond_with libmfx %bcond_with libmfx
%endif %endif
%bcond_without clp %bcond_without clp
%ifarch %{java_arches}
%bcond_without java %bcond_without java
%else
%bcond_with java
%endif
%bcond_without vulkan %bcond_without vulkan
%define _lto_cflags %{nil} %define _lto_cflags %{nil}
@ -54,7 +59,7 @@ Version: 4.6.0
%global minorver %(foo=%{version}; a=(${foo//./ }); echo ${a[1]} ) %global minorver %(foo=%{version}; a=(${foo//./ }); echo ${a[1]} )
%global padding %(digits=00; num=%{minorver}; echo ${digits:${#num}:${#digits}} ) %global padding %(digits=00; num=%{minorver}; echo ${digits:${#num}:${#digits}} )
%global abiver %(echo %{majorver}%{padding}%{minorver} ) %global abiver %(echo %{majorver}%{padding}%{minorver} )
Release: 2%{?dist} Release: 3%{?dist}
Summary: Collection of algorithms for computer vision Summary: Collection of algorithms for computer vision
# This is normal three clause BSD. # This is normal three clause BSD.
License: BSD License: BSD
@ -487,6 +492,9 @@ ln -s -r %{buildroot}%{_jnidir}/opencv-%{javaver}.jar %{buildroot}%{_jnidir}/ope
%{_libdir}/libopencv_xphoto.so.{%{abiver},%{version}} %{_libdir}/libopencv_xphoto.so.{%{abiver},%{version}}
%changelog %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 * Mon Jun 20 2022 Sérgio Basto <sergio@serjux.com> - 4.6.0-2
- Rebuilt for Python 3.11 (is just arrived to rawhide) - Rebuilt for Python 3.11 (is just arrived to rawhide)

Loading…
Cancel
Save