From d285f7c38a84971ab40d2a6a7dfedf4b11e169a47cb7e77d7c24161cb7ebb5ed Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Sat, 23 Dec 2023 10:17:49 +0000 Subject: [PATCH] Accepting request 1134722 from home:gladiac:branches:graphics:darktable Build with system libraw OBS-URL: https://build.opensuse.org/request/show/1134722 OBS-URL: https://build.opensuse.org/package/show/graphics:darktable/darktable?expand=0&rev=69 --- darktable.changes | 5 +++++ darktable.spec | 12 ++++++++++++ 2 files changed, 17 insertions(+) diff --git a/darktable.changes b/darktable.changes index 616cd57..8cd7fe6 100644 --- a/darktable.changes +++ b/darktable.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sat Dec 23 09:58:05 UTC 2023 - Andreas Schneider + +- Build with system libraw + ------------------------------------------------------------------- Sat Dec 23 09:32:45 UTC 2023 - Andreas Schneider diff --git a/darktable.spec b/darktable.spec index 4a396e2..18146f4 100644 --- a/darktable.spec +++ b/darktable.spec @@ -72,6 +72,14 @@ %bcond_with libheif %endif +%if 0%{?suse_version} >= 1550 || 0%{?fedora} >= 38 +%bcond_without libraw +%global _use_system_libraw "ON" +%else +%bcond_with libraw +%global _use_system_libraw "ON" +%endif + %ifarch ppc64le # The OpenCL kernels don't compile on ppc64le and if you get # them compiled there are funny runtime issues. @@ -193,6 +201,9 @@ BuildRequires: pkgconfig(libheif) %if %{with jxl} BuildRequires: pkgconfig(libjxl) >= 0.7.0 %endif +%if %{with libraw} +BuildRequires: pkgconfig(libraw) >= 0.21 +%endif BuildRequires: pkgconfig(librsvg-2.0) BuildRequires: pkgconfig(libsecret-1) BuildRequires: pkgconfig(libwebp) @@ -299,6 +310,7 @@ rm -rf src/external/lua/ -DUSE_OPENMP="%{_use_openmp}" \\\ -DUSE_GMIC="%{_use_gmic}" \\\ -DUSE_AVIF="%{_use_avif}" \\\ + -DDONT_USE_INTERNAL_LIBRAW="%{_use_system_libraw}" \\\ -DBUILD_NOISE_TOOLS=ON \\\ -DBUILD_CURVE_TOOLS=ON