diff --git a/openexr.spec b/openexr.spec index 8ffbd0e..9d4ad13 100644 --- a/openexr.spec +++ b/openexr.spec @@ -19,6 +19,7 @@ # perhaps you want to build against corresponding ilmbase build %define asan_build 0 %define debug_build 0 +%define sonum 24 %global so_suffix -2_3-24 # tests should run at least during local build # but do expect a HUGE number of memory, so beware @@ -41,6 +42,14 @@ BuildRequires: gcc-c++ BuildRequires: pkgconfig BuildRequires: pkgconfig(IlmBase) >= 2.2.0 BuildRequires: pkgconfig(zlib) +%if %{asan_build} || %{debug_build} +BuildRequires: ilmbase-debugsource +BuildRequires: libHalf%{sonum}-debuginfo +BuildRequires: libIex%{so_suffix}-debuginfo +BuildRequires: libIexMath%{so_suffix}-debuginfo +BuildRequires: libIlmThread%{so_suffix}-debuginfo +BuildRequires: libImath%{so_suffix}-debuginfo +%endif Obsoletes: OpenEXR <= 1.6.1 Provides: OpenEXR = %{version}