From f6365162dd3e3aeb50d562be2ac970f2e755bcd8a791dff4faf037dfc44f3a21 Mon Sep 17 00:00:00 2001 From: Atri Bhattacharya Date: Fri, 4 Feb 2022 01:29:26 +0000 Subject: [PATCH] Accepting request 950908 from home:Guillaume_G:ITK - Do not use system eigen on aarch64 until fixed upstream: https://github.com/InsightSoftwareConsortium/ITK/issues/2903 OBS-URL: https://build.opensuse.org/request/show/950908 OBS-URL: https://build.opensuse.org/package/show/Application:Geo/insighttoolkit?expand=0&rev=43 --- insighttoolkit.changes | 6 ++++++ insighttoolkit.spec | 15 ++++++++++++++- 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/insighttoolkit.changes b/insighttoolkit.changes index c62ac0e..6c2590d 100644 --- a/insighttoolkit.changes +++ b/insighttoolkit.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Feb 3 09:32:31 UTC 2022 - Guillaume GARDET + +- Do not use system eigen on aarch64 until fixed upstream: + https://github.com/InsightSoftwareConsortium/ITK/issues/2903 + ------------------------------------------------------------------- Mon Aug 16 15:10:29 UTC 2021 - Atri Bhattacharya diff --git a/insighttoolkit.spec b/insighttoolkit.spec index a7314d1..bf6d6d0 100644 --- a/insighttoolkit.spec +++ b/insighttoolkit.spec @@ -1,7 +1,7 @@ # # spec file for package insighttoolkit # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2022 SUSE LLC # Copyright (c) 2016 Angelos Tzotsos . # # All modifications and additions to the file contributed by third parties @@ -21,6 +21,14 @@ %define tarname ITK %define libname lib%{name}5 +# Do not use system eigen on aarch64 until fixed upstream: +# https://github.com/InsightSoftwareConsortium/ITK/issues/2903 +%ifarch aarch64 +%bcond_with system_eigen +%else +%bcond_without system_eigen +%endif + Name: insighttoolkit Version: 5.2.1 Release: 0 @@ -47,7 +55,9 @@ BuildRequires: vtk-devel BuildRequires: vtk-qt BuildRequires: xz BuildRequires: cmake(double-conversion) +%if %{with system_eigen} BuildRequires: pkgconfig(eigen3) +%endif BuildRequires: pkgconfig(expat) BuildRequires: pkgconfig(fftw3) BuildRequires: pkgconfig(libjpeg) @@ -126,6 +136,9 @@ This package provides the modules for ITK's python bindings. -DITK_USE_SYSTEM_LIBRARIES:BOOL=ON \ -DITK_USE_SYSTEM_CASTXML:BOOL=ON \ -DITK_USE_SYSTEM_GDCM:BOOL=ON \ +%if %{without system_eigen} + -DITK_USE_SYSTEM_EIGEN:BOOL=OFF \ +%endif -DITK_USE_SYSTEM_SWIG:BOOL=ON \ -DITK_USE_SYSTEM_VXL:BOOL=OFF \ -DVXL_BUILD_CORE_NUMERICS:BOOL=OFF \