diff --git a/RT_5.8_fix_canon_sraw.patch b/RT_5.8_fix_canon_sraw.patch new file mode 100644 index 0000000..285bfef --- /dev/null +++ b/RT_5.8_fix_canon_sraw.patch @@ -0,0 +1,22 @@ +From 4221fdf31e43658cef98ad660ad398b8ae81b8d7 Mon Sep 17 00:00:00 2001 +From: Ingo Weyrich +Date: Fri, 7 Feb 2020 13:52:25 +0100 +Subject: [PATCH] fix regression in Canon sRAW/mRAW black level computation, + taken from ART, fixes #5638 + +--- + rtengine/dcraw.cc | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/rtengine/dcraw.cc b/rtengine/dcraw.cc +index 812f122b3..0284b3f1d 100644 +--- a/rtengine/dcraw.cc ++++ b/rtengine/dcraw.cc +@@ -9868,6 +9868,7 @@ void CLASS identify() + filters = 0; + tiff_samples = colors = 3; + load_raw = &CLASS canon_sraw_load_raw; ++ FORC4 cblack[c] = 0; // ALB + } else if (!strcmp(model,"PowerShot 600")) { + height = 613; + width = 854; diff --git a/rawtherapee.spec b/rawtherapee.spec index 9cbb6a9..b5dc621 100644 --- a/rawtherapee.spec +++ b/rawtherapee.spec @@ -11,14 +11,18 @@ Source0: https://github.com/Beep6581/RawTherapee/releases/download/%{vers # Fix linking against system's KLT # Upstream PR https://github.com/Beep6581/RawTherapee/pull/5539 -Patch0: RT_5.8_system_klt.patch +Patch: RT_5.8_system_klt.patch # Backport patch for fixing rhbz#1820907 -Patch1: RT_5.8_fix_crop.patch +Patch: RT_5.8_fix_crop.patch # Backport patch for fixing build with glibc 2.34 # https://github.com/Beep6581/RawTherapee/issues/6324 -Patch2: RT_5.8_glibc234.patch +Patch: RT_5.8_glibc234.patch + +# Backport patch for fixing Canon sRAW/mRAW +# https://github.com/Beep6581/RawTherapee/issues/5898 +Patch: RT_5.8_fix_canon_sraw.patch BuildRequires: cmake @@ -115,4 +119,4 @@ appstream-util validate-relax --nonet %{buildroot}/%{_datadir}/metainfo/com.%{na %changelog -%autochangelog \ No newline at end of file +%autochangelog